mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-02 16:53:14 +02:00
39688517b0
"./unrealircd reloadtls" and there is now also a "./unrealircd status" The output is colorized if the terminal supports it (just like on the boot screen) and also the exit status is 0 for success and non-0 for failure. The purpose of all this is that you can easily detect rehash errors on the command line. These three commands communicate to UnrealIRCd via the new control UNIX socket, which is in ~/data/unrealircd.ctl. This also does a lot of other stuff because we now have an internal tool called bin/unrealircdctl which is called by ./unrealircd for some of the commands to communicate to the unrealircd.ctl socket. Later on more of the existing functionality may be moved to that tool and we may also provide it on Windows in CLI mode so people have more of the same functionality as on *NIX.
99 lines
3.2 KiB
Makefile
99 lines
3.2 KiB
Makefile
#************************************************************************
|
|
#* IRC - Internet Relay Chat, src/Makefile
|
|
#* Copyright (C) 1990 Jarkko Oikarinen
|
|
#*
|
|
#* This program is free software; you can redistribute it and/or modify
|
|
#* it under the terms of the GNU General Public License as published by
|
|
#* the Free Software Foundation; either version 1, or (at your option)
|
|
#* any later version.
|
|
#*
|
|
#* This program is distributed in the hope that it will be useful,
|
|
#* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
#* GNU General Public License for more details.
|
|
#*
|
|
#* You should have received a copy of the GNU General Public License
|
|
#* along with this program; if not, write to the Free Software
|
|
#* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
#*
|
|
#* $Id$
|
|
#*/
|
|
|
|
CC = "==== DO NOT RUN MAKE FROM THIS DIRECTORY ===="
|
|
|
|
OBJS=ircd_vars.o dns.o auth.o channel.o crule.o dbuf.o \
|
|
fdlist.o hash.o ircsprintf.o list.o \
|
|
match.o modules.o parse.o mempool.o operclass.o \
|
|
conf_preprocessor.o conf.o proc_io_server.o debug.o dispatch.o \
|
|
misc.o serv.o aliases.o socket.o \
|
|
tls.o user.o scache.o send.o support.o \
|
|
version.o whowas.o random.o api-usermode.o api-channelmode.o \
|
|
api-moddata.o api-extban.o api-isupport.o api-command.o \
|
|
api-clicap.o api-messagetag.o api-history-backend.o api-efunctions.o \
|
|
api-event.o \
|
|
crypt_blowfish.o unrealdb.o crashreport.o modulemanager.o \
|
|
utf8.o log.o \
|
|
openssl_hostname_validation.o $(URL)
|
|
|
|
SRC=$(OBJS:%.o=%.c)
|
|
|
|
# Flags specific for the ircd binary (and it's object files)...
|
|
# .. but NOT for modules.
|
|
BINCFLAGS=@HARDEN_BINCFLAGS@
|
|
BINLDFLAGS=@DYNAMIC_LDFLAGS@ @HARDEN_BINLDFLAGS@
|
|
|
|
INCLUDES = ../include/channel.h \
|
|
../include/common.h ../include/config.h ../include/dbuf.h \
|
|
../include/dynconf.h ../include/fdlist.h ../include/h.h \
|
|
../include/ircsprintf.h \
|
|
../include/license.h \
|
|
../include/modules.h ../include/modversion.h ../include/msg.h \
|
|
../include/numeric.h \
|
|
../include/resource.h ../include/setup.h \
|
|
../include/struct.h ../include/sys.h \
|
|
../include/types.h \
|
|
../include/version.h ../include/whowas.h \
|
|
../include/openssl_hostname_validation.h
|
|
|
|
.SUFFIXES:
|
|
.SUFFIXES: .c .h .o
|
|
|
|
all: build
|
|
|
|
build:
|
|
# Force build of 'ircd', before we start building any modules:
|
|
$(MAKE) ircd unrealircdctl
|
|
$(MAKE) mods
|
|
|
|
custommodule:
|
|
+cd modules/third; $(MAKE) MODULEFILE=$(MODULEFILE) 'EXLIBS=$(EXLIBS)' custommodule
|
|
|
|
ircd: $(OBJS) ircd.o
|
|
$(CC) $(CFLAGS) $(BINCFLAGS) $(CRYPTOLIB) -o ircd ircd.o $(OBJS) $(LDFLAGS) $(BINLDFLAGS) $(IRCDLIBS) $(CRYPTOLIB)
|
|
|
|
unrealircdctl: $(OBJS) unrealircdctl.o proc_io_client.o
|
|
$(CC) $(CFLAGS) $(BINCFLAGS) $(CRYPTOLIB) -o unrealircdctl unrealircdctl.o proc_io_client.o $(OBJS) $(LDFLAGS) $(BINLDFLAGS) $(IRCDLIBS) $(CRYPTOLIB)
|
|
|
|
mods:
|
|
@if [ ! -r include ] ; then \
|
|
ln -s ../include include; \
|
|
fi
|
|
+cd modules; $(MAKE) all
|
|
|
|
version.c: version.c.SH
|
|
$(SHELL) version.c.SH
|
|
|
|
%.o: %.c $(INCLUDES)
|
|
$(CC) $(CFLAGS) $(BINCFLAGS) -c $<
|
|
|
|
clean:
|
|
$(RM) -f *.o *.so *~ core ircd version.c; \
|
|
cd modules; ${MAKE} clean
|
|
|
|
cleandir: clean
|
|
|
|
depend:
|
|
makedepend -I${INCLUDEDIR} ${SRC}
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|