unrealircd

- supernets unrealircd source & configuration
git clone git://git.acid.vegas/unrealircd.git
Log | Files | Refs | Archive | README | LICENSE

Makefile.in (3274B)

      1 #************************************************************************
      2 #*   IRC - Internet Relay Chat, src/Makefile
      3 #*   Copyright (C) 1990 Jarkko Oikarinen
      4 #*
      5 #*   This program is free software; you can redistribute it and/or modify
      6 #*   it under the terms of the GNU General Public License as published by
      7 #*   the Free Software Foundation; either version 1, or (at your option)
      8 #*   any later version.
      9 #*
     10 #*   This program is distributed in the hope that it will be useful,
     11 #*   but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 #*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 #*   GNU General Public License for more details.
     14 #*
     15 #*   You should have received a copy of the GNU General Public License
     16 #*   along with this program; if not, write to the Free Software
     17 #*   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
     18 #*   
     19 #*   $Id$
     20 #*/
     21 
     22 CC = "==== DO NOT RUN MAKE FROM THIS DIRECTORY ===="
     23 
     24 OBJS=ircd_vars.o dns.o auth.o channel.o crule.o dbuf.o \
     25 	fdlist.o hash.o ircsprintf.o list.o \
     26 	match.o modules.o parse.o mempool.o operclass.o \
     27 	conf_preprocessor.o conf.o proc_io_server.o debug.o dispatch.o \
     28 	securitygroup.o misc.o serv.o aliases.o socket.o \
     29 	tls.o user.o scache.o send.o support.o \
     30 	version.o whowas.o random.o api-usermode.o api-channelmode.o \
     31 	api-moddata.o api-extban.o api-isupport.o api-command.o \
     32 	api-clicap.o api-messagetag.o api-history-backend.o api-efunctions.o \
     33 	api-event.o api-rpc.o \
     34 	crypt_blowfish.o unrealdb.o crashreport.o modulemanager.o \
     35 	utf8.o json.o log.o \
     36 	openssl_hostname_validation.o $(URL)
     37 
     38 SRC=$(OBJS:%.o=%.c)
     39 
     40 # Flags specific for the ircd binary (and it's object files)...
     41 # .. but NOT for modules.
     42 BINCFLAGS=@HARDEN_BINCFLAGS@
     43 BINLDFLAGS=@DYNAMIC_LDFLAGS@ @HARDEN_BINLDFLAGS@
     44 
     45 INCLUDES = ../include/channel.h \
     46 	../include/common.h ../include/config.h ../include/dbuf.h \
     47 	../include/dynconf.h ../include/fdlist.h ../include/h.h \
     48 	../include/ircsprintf.h \
     49 	../include/license.h \
     50 	../include/modules.h ../include/modversion.h ../include/msg.h \
     51 	../include/numeric.h \
     52 	../include/resource.h ../include/setup.h \
     53 	../include/struct.h ../include/sys.h \
     54 	../include/types.h \
     55 	../include/version.h ../include/whowas.h \
     56 	../include/openssl_hostname_validation.h
     57 
     58 .SUFFIXES:
     59 .SUFFIXES: .c .h .o
     60 
     61 all: build
     62 
     63 build:
     64 	# Force build of 'ircd', before we start building any modules:
     65 	$(MAKE) ircd unrealircdctl
     66 	$(MAKE) mods
     67 
     68 custommodule:
     69 	+cd modules/third; $(MAKE) MODULEFILE=$(MODULEFILE) 'EXLIBS=$(EXLIBS)' custommodule
     70 
     71 ircd: $(OBJS) ircd.o
     72 	$(CC) $(CFLAGS) $(BINCFLAGS) $(CRYPTOLIB) -o ircd ircd.o $(OBJS) $(LDFLAGS) $(BINLDFLAGS) $(IRCDLIBS) $(CRYPTOLIB)
     73 
     74 unrealircdctl: $(OBJS) unrealircdctl.o proc_io_client.o
     75 	$(CC) $(CFLAGS) $(BINCFLAGS) $(CRYPTOLIB) -o unrealircdctl unrealircdctl.o proc_io_client.o $(OBJS) $(LDFLAGS) $(BINLDFLAGS) $(IRCDLIBS) $(CRYPTOLIB)
     76 
     77 mods:
     78 	@if [ ! -r include ] ; then \
     79 		ln -s ../include include; \
     80 	fi
     81 	+cd modules; $(MAKE) all
     82 
     83 version.c: version.c.SH
     84 	$(SHELL) version.c.SH
     85 
     86 %.o:	%.c $(INCLUDES)
     87 	$(CC) $(CFLAGS) $(BINCFLAGS) -c $<
     88 
     89 clean:
     90 	$(RM) -f *.o *.so *~ core ircd version.c; \
     91 	cd modules; ${MAKE} clean
     92 
     93 cleandir: clean
     94 
     95 depend:
     96 	makedepend -I${INCLUDEDIR} ${SRC}
     97 
     98 # DO NOT DELETE THIS LINE -- make depend depends on it.