1 # InspIRCd Main Makefile
3 # (C) InspIRCd Development Team, 2002-2009
4 # This file is automagically generated by configure, from
5 # .Makefile.inc. Any changes made will go away! :P
6 # Please do not edit unless you know what you're doing.
9 @GNU_ONLY COMPILE_ROOT = $(shell pwd)
10 @BSD_ONLY COMPILE_ROOT != pwd
13 NICEFLAGS = @DEVELOPER@
25 NICEFLAGS += -I$(COMPILE_ROOT)/include
28 FLAGS = $(NICEFLAGS) -pedantic
31 CONPATH = "@CONFIG_DIR@"
32 MODPATH = "@MODULE_DIR@"
33 BINPATH = "@BINARY_DIR@"
34 LAUNCHDPATH = "/System/Library/LaunchDaemons"
35 LIBPATH = "@LIBRARY_DIR@"
38 @GNU_ONLY MAKEFLAGS += --no-print-directory
43 @GNU_ONLY MAKEFLAGS += --silent
44 RUNCC = $(COMPILE_ROOT)/make/run-cc.pl $(CC)
47 @GNU_ONLY export COMPILE_ROOT RUNCC FLAGS NICEFLAGS CC LDLIBS MODULES MODPATH LIBPATH INSTMODE
48 @BSD_ONLY MAKEARGS = -s 'RUNCC=${RUNCC}' 'FLAGS=${FLAGS}' 'NICEFLAGS=${NICEFLAGS}' 'CC=${CC}' 'LDLIBS=${LDLIBS}' 'MODULES=${MODULES}' 'MODPATH=${MODPATH}' 'LIBPATH=${LIBPATH}' 'INSTMODE=${INSTMODE}'
50 all: ircd mods finishmessage
56 @echo "*************************************"
57 @echo "* BUILDING WITH DEBUG SYMBOLS *"
59 @echo "* This will take a *long* time. *"
60 @echo "* Please be aware that this build *"
61 @echo "* will consume a very large amount *"
62 @echo "* of disk space (150MB+), and can *"
63 @echo "* run slower. Use the debug build *"
64 @echo "* for module development or if you *"
65 @echo "* are experiencing problems. *"
67 @echo "*************************************"
70 @echo "*************************************"
71 @echo "* BUILDING INSPIRCD *"
73 @echo "* This will take a *long* time. *"
74 @echo "* Why not read our wiki at *"
75 @echo "* http://wiki.inspircd.org *"
76 @echo "* while you wait for make to run? *"
77 @echo "*************************************"
80 @${MAKE} -C src $(MAKEARGS) inspircd commands
83 @${MAKE} -C src/modules $(MAKEARGS)
85 # Make this depend on 'ircd' and 'mods', so its always output last even with -j
86 finishmessage: ircd mods
88 @echo "*************************************"
89 @echo "* BUILD COMPLETE! *"
91 @echo "* To install InspIRCd, type: *"
92 @echo "* make install *"
93 @echo "*************************************"
95 install: ircd mods@EXTRA_DIR@
96 @-install -d -m $(INSTMODE) $(BASE)
97 @-install -d -m $(INSTMODE) $(LIBPATH)
98 @-install -d -m $(INSTMODE) $(BINPATH)
99 @-install -d -m $(INSTMODE) $(CONPATH)
100 @-install -d -m $(INSTMODE) $(MODPATH)
101 -install -m $(INSTMODE) @STARTSCRIPT@ $(@DESTINATION@) 2>/dev/null
102 @INSTALL_LIST@ @echo ""
103 @echo "*************************************"
104 @echo "* INSTALL COMPLETE! *"
106 @echo "* It is safe to ignore any messages *"
107 @echo "* related to copying of conf files. *"
109 @echo "* REMEMBER TO EDIT YOUR CONFIG FILE *"
110 @echo "*************************************"
113 @${MAKE} -C src/modules $(MAKEARGS) ${name}
117 @rm -rf src/*.so src/*.dylib src/*.o src/inspircd src/modules/*.so src/modules/*.o *~ src/*~ src/modules/*~ src/modules/extra/*~ src/modes/*~ src/modes/*.o src/modes/*.a src/commands/*.so src/commands/*.o src/modules/*/*.o src/modules/*/*.so src/socketengines/*.o
122 rm -rf src/modules/*.so
123 rm -rf src/modules/*.o
124 rm -rf src/modules/*/*.so
125 rm -rf src/modules/*/*.o
132 squeakyclean: distclean
135 @-install -d -m $(INSTMODE) ${LAUNCHDPATH}
139 rm -f src/modules/Makefile
140 rm -f src/commands/Makefile
143 rm -f include/inspircd_config.h
144 rm -f include/inspircd_se_config.h
146 distclean: modclean clean configureclean
148 .PHONY: all debug debug-header std-header ircd mods finishmessage install module clean modclean deinstall squeakyclean launchd_dir configureclean