# InspIRCd Main Makefile # # (C) InspIRCd Development Team, 2002-2009 # This file is automagically generated by configure, from # .Makefile.inc. Any changes made will go away! :P # Please do not edit unless you know what you're doing. # @GNU_ONLY COMPILE_ROOT = $(shell pwd) @BSD_ONLY COMPILE_ROOT != pwd @IFDEF D NICEFLAGS = @DEVELOPER@ HEADER = debug-header @ENDIF @IFNDEF NICEFLAGS NICEFLAGS = @FLAGS@ @ENDIF @IFNDEF HEADER HEADER = std-header @ENDIF NICEFLAGS += -I$(COMPILE_ROOT)/include CC = @CC@ FLAGS = $(NICEFLAGS) -pedantic LDLIBS = @LDLIBS@ BASE = "@BASE_DIR@" CONPATH = "@CONFIG_DIR@" MODPATH = "@MODULE_DIR@" BINPATH = "@BINARY_DIR@" LAUNCHDPATH = "/System/Library/LaunchDaemons" LIBPATH = "@LIBRARY_DIR@" MODULES = @MODULES@ INSTMODE = 0755 @GNU_ONLY MAKEFLAGS += --no-print-directory @IFDEF V RUNCC = $(CC) @ELSE @GNU_ONLY MAKEFLAGS += --silent RUNCC = $(COMPILE_ROOT)/make/run-cc.pl $(CC) @ENDIF @GNU_ONLY export COMPILE_ROOT RUNCC FLAGS NICEFLAGS CC LDLIBS MODULES MODPATH LIBPATH INSTMODE @BSD_ONLY MAKEARGS = -s 'RUNCC=${RUNCC}' 'FLAGS=${FLAGS}' 'NICEFLAGS=${NICEFLAGS}' 'CC=${CC}' 'LDLIBS=${LDLIBS}' 'MODULES=${MODULES}' 'MODPATH=${MODPATH}' 'LIBPATH=${LIBPATH}' 'INSTMODE=${INSTMODE}' all: ircd mods finishmessage debug: @${MAKE} D=1 all debug-header: @echo "*************************************" @echo "* BUILDING WITH DEBUG SYMBOLS *" @echo "* *" @echo "* This will take a *long* time. *" @echo "* Please be aware that this build *" @echo "* will consume a very large amount *" @echo "* of disk space (150MB+), and can *" @echo "* run slower. Use the debug build *" @echo "* for module development or if you *" @echo "* are experiencing problems. *" @echo "* *" @echo "*************************************" std-header: @echo "*************************************" @echo "* BUILDING INSPIRCD *" @echo "* *" @echo "* This will take a *long* time. *" @echo "* Why not read our wiki at *" @echo "* http://wiki.inspircd.org *" @echo "* while you wait for make to run? *" @echo "*************************************" ircd: $(HEADER) @${MAKE} -C src $(MAKEARGS) inspircd commands mods: $(HEADER) @${MAKE} -C src/modules $(MAKEARGS) # Make this depend on 'ircd' and 'mods', so its always output last even with -j finishmessage: ircd mods @echo "" @echo "*************************************" @echo "* BUILD COMPLETE! *" @echo "* *" @echo "* To install InspIRCd, type: *" @echo "* make install *" @echo "*************************************" install: ircd mods@EXTRA_DIR@ @-install -d -m $(INSTMODE) $(BASE) @-install -d -m $(INSTMODE) $(LIBPATH) @-install -d -m $(INSTMODE) $(BINPATH) @-install -d -m $(INSTMODE) $(CONPATH) @-install -d -m $(INSTMODE) $(MODPATH) -install -m $(INSTMODE) @STARTSCRIPT@ $(@DESTINATION@) 2>/dev/null @INSTALL_LIST@ @echo "" @echo "*************************************" @echo "* INSTALL COMPLETE! *" @echo "* *" @echo "* It is safe to ignore any messages *" @echo "* related to copying of conf files. *" @echo "* *" @echo "* REMEMBER TO EDIT YOUR CONFIG FILE *" @echo "*************************************" module: @${MAKE} -C src/modules $(MAKEARGS) ${name} clean: @echo Cleaning... @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 @echo Completed. modclean: rm -rf modules/*.so rm -rf src/modules/*.so rm -rf src/modules/*.o rm -rf src/modules/*/*.so rm -rf src/modules/*/*.o rm -rf lib/*.so rm -f bin/inspircd deinstall: @UNINSTALL_LIST@ squeakyclean: distclean launchd_dir: @-install -d -m $(INSTMODE) ${LAUNCHDPATH} configureclean: rm -f .config.cache rm -f src/modules/Makefile rm -f src/commands/Makefile rm -f src/Makefile rm -f Makefile rm -f include/inspircd_config.h rm -f include/inspircd_se_config.h distclean: modclean clean configureclean .PHONY: all debug debug-header std-header ircd mods finishmessage install module clean modclean deinstall squeakyclean launchd_dir configureclean