4
mirror of git://git.acid.vegas/unrealircd.git synced 2024-12-26 16:26:38 +00:00
unrealircd/src/Makefile.in

99 lines
3.2 KiB
Makefile
Raw Normal View History

2020-03-29 09:16:53 +00:00
#************************************************************************
#* 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 ===="
2022-04-03 15:09:29 +00:00
OBJS=ircd_vars.o dns.o auth.o channel.o crule.o dbuf.o \
fdlist.o hash.o ircsprintf.o list.o \
2020-03-29 09:16:53 +00:00
match.o modules.o parse.o mempool.o operclass.o \
2022-04-03 15:09:29 +00:00
conf_preprocessor.o conf.o proc_io_server.o debug.o dispatch.o \
2022-11-20 04:12:40 +00:00
securitygroup.o misc.o serv.o aliases.o socket.o \
2020-03-29 09:16:53 +00:00
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 \
2023-05-05 22:12:01 +00:00
api-event.o api-rpc.o \
2022-01-15 05:16:34 +00:00
crypt_blowfish.o unrealdb.o crashreport.o modulemanager.o \
2023-05-05 22:12:01 +00:00
utf8.o json.o log.o \
2020-03-29 09:16:53 +00:00
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 \
2022-01-15 05:16:34 +00:00
../include/numeric.h \
2020-03-29 09:16:53 +00:00
../include/resource.h ../include/setup.h \
../include/struct.h ../include/sys.h \
2022-01-15 05:16:34 +00:00
../include/types.h \
2020-03-29 09:16:53 +00:00
../include/version.h ../include/whowas.h \
../include/openssl_hostname_validation.h
2022-01-15 05:16:34 +00:00
.SUFFIXES:
.SUFFIXES: .c .h .o
2020-03-29 09:16:53 +00:00
all: build
build:
# Force build of 'ircd', before we start building any modules:
2022-04-03 15:09:29 +00:00
$(MAKE) ircd unrealircdctl
2020-03-29 09:16:53 +00:00
$(MAKE) mods
custommodule:
+cd modules/third; $(MAKE) MODULEFILE=$(MODULEFILE) 'EXLIBS=$(EXLIBS)' custommodule
2022-04-03 15:09:29 +00:00
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)
2020-03-29 09:16:53 +00:00
mods:
@if [ ! -r include ] ; then \
ln -s ../include include; \
fi
+cd modules; $(MAKE) all
version.c: version.c.SH
$(SHELL) version.c.SH
2022-01-15 05:16:34 +00:00
%.o: %.c $(INCLUDES)
$(CC) $(CFLAGS) $(BINCFLAGS) -c $<
2020-03-29 09:16:53 +00:00
clean:
$(RM) -f *.o *.so *~ core ircd version.c; \
2022-01-15 05:16:34 +00:00
cd modules; ${MAKE} clean
2020-03-29 09:16:53 +00:00
cleandir: clean
depend:
makedepend -I${INCLUDEDIR} ${SRC}
# DO NOT DELETE THIS LINE -- make depend depends on it.