2005-04-05 21:17:33 +00:00
|
|
|
# Inspircd Main Makefile
|
|
|
|
#
|
|
|
|
# (C) ChatSpike development team
|
|
|
|
# DO NOT MODIFY UNLESS YOU KNOW WHAT YOU ARE DOING!
|
|
|
|
#####
|
|
|
|
# Original Makefile & ./configure by <Craig@ChatSpike.net>
|
|
|
|
# Small modifications by <brain@ChatSpike.net>
|
|
|
|
#
|
|
|
|
|
2005-05-19 03:08:57 +00:00
|
|
|
CC = @CC@
|
2005-04-05 21:17:33 +00:00
|
|
|
MAKE = @MAKEPROG@
|
|
|
|
PROGS = inspircd
|
|
|
|
FLAGS = @FLAGS@
|
|
|
|
LDLIBS = @LDLIBS@
|
2005-11-29 20:06:17 +00:00
|
|
|
BASE = @BASE_DIR@
|
2005-04-05 21:17:33 +00:00
|
|
|
CONPATH = @CONFIG_DIR@
|
|
|
|
MODPATH = @MODULE_DIR@
|
|
|
|
BINPATH = @BINARY_DIR@
|
2005-05-09 01:46:05 +00:00
|
|
|
LIBPATH = @LIBRARY_DIR@
|
2005-04-05 21:17:33 +00:00
|
|
|
MODULES = @MODULES@
|
2006-06-22 17:12:28 +00:00
|
|
|
DARWIN = @IS_DARWIN@
|
2005-05-20 21:52:25 +00:00
|
|
|
STATICLIBS = @STATICLIBS@
|
|
|
|
MAKEARGS = 'PROGS=${PROGS}' 'FLAGS=${FLAGS}' 'CC=${CC}' 'LDLIBS=${LDLIBS}' 'MODULES=${MODULES}' 'MODPATH=${MODPATH}' 'LIBPATH=${LIBPATH}' 'STATICLIBS=${STATICLIBS}'
|
2005-04-05 21:17:33 +00:00
|
|
|
|
2005-05-20 21:52:25 +00:00
|
|
|
all : @MAKEORDER@
|
2005-04-05 21:17:33 +00:00
|
|
|
|
|
|
|
mods:
|
2006-03-01 22:21:55 +00:00
|
|
|
@echo "Making modules..."
|
2005-04-05 21:17:33 +00:00
|
|
|
${MAKE} -C src/modules DIRNAME="src/modules" $(MAKEARGS)
|
2006-03-01 22:21:55 +00:00
|
|
|
@echo "*************************************"
|
|
|
|
@echo "* BUILD COMPLETE! *"
|
|
|
|
@echo "* To install InspIRCd, type: *"
|
|
|
|
@echo "* make install *"
|
|
|
|
@echo "*************************************"
|
2005-04-05 21:17:33 +00:00
|
|
|
|
2006-03-01 22:29:06 +00:00
|
|
|
ircd:
|
|
|
|
@echo "Making ircd..."
|
|
|
|
${MAKE} -C src DIRNAME="src" $(MAKEARGS)
|
|
|
|
|
2006-03-05 17:12:41 +00:00
|
|
|
install: all
|
2006-07-22 11:38:21 +00:00
|
|
|
@INSTALL_OUTPUT@
|
2006-03-19 18:41:47 +00:00
|
|
|
@-install -v -m 0700 src/inspircd $(BINPATH)
|
2006-02-02 23:24:37 +00:00
|
|
|
@-install -v -m 0700 inspircd $(BASE) 2>/dev/null
|
2006-08-06 22:19:31 +00:00
|
|
|
@-cp .gdbargs $(BASE)
|
2006-03-01 22:21:55 +00:00
|
|
|
@-cp conf/inspircd.quotes.example $(CONPATH)
|
|
|
|
@-cp conf/inspircd.rules.example $(CONPATH)
|
|
|
|
@-cp docs/inspircd.conf.example $(CONPATH)
|
2006-03-01 22:04:16 +00:00
|
|
|
${MAKE} -C src/modules DIRNAME="src/modules" $(MAKEARGS) modinst
|
2005-12-21 21:51:46 +00:00
|
|
|
@echo "*************************************"
|
2006-03-01 22:21:55 +00:00
|
|
|
@echo "* INSTALL COMPLETE! *"
|
2005-12-21 21:51:46 +00:00
|
|
|
@echo "* It is safe to ignore any messages *"
|
|
|
|
@echo "* related to copying of files. *"
|
2006-03-01 22:21:55 +00:00
|
|
|
@echo "* *"
|
|
|
|
@echo "* REMEMBER TO EDIT YOUR CONFIG FILE *"
|
2005-12-21 21:51:46 +00:00
|
|
|
@echo "*************************************"
|
2005-04-05 21:17:33 +00:00
|
|
|
|
|
|
|
clean:
|
2005-11-25 12:24:49 +00:00
|
|
|
@echo Cleaning...
|
2005-11-25 12:23:36 +00:00
|
|
|
@rm -rvf src/*.so src/*.o src/inspircd src/modules/*.so src/modules/*.o *~ src/*~ src/modules/*~ src/modules/extra/*~
|
2005-11-25 12:24:49 +00:00
|
|
|
@echo Completed.
|
2005-04-05 21:17:33 +00:00
|
|
|
|
|
|
|
modclean:
|
|
|
|
rm -rf modules/*.so
|
2005-04-14 13:27:27 +00:00
|
|
|
rm -rf src/modules/*.so
|
2005-05-09 03:57:13 +00:00
|
|
|
rm -rf src/modules/*.o
|
2005-04-05 21:17:33 +00:00
|
|
|
|
|
|
|
squeakyclean: modclean clean
|