1 # Inspircd Main Makefile
3 # (C) ChatSpike development team
4 # DO NOT MODIFY UNLESS YOU KNOW WHAT YOU ARE DOING!
6 # Original Makefile & ./configure by <Craig@ChatSpike.net>
7 # Small modifications by <brain@ChatSpike.net>
16 CONPATH = @CONFIG_DIR@
17 MODPATH = @MODULE_DIR@
18 BINPATH = @BINARY_DIR@
19 LIBPATH = @LIBRARY_DIR@
21 STATICLIBS = @STATICLIBS@
22 MAKEARGS = 'PROGS=${PROGS}' 'FLAGS=${FLAGS}' 'CC=${CC}' 'LDLIBS=${LDLIBS}' 'MODULES=${MODULES}' 'MODPATH=${MODPATH}' 'LIBPATH=${LIBPATH}' 'STATICLIBS=${STATICLIBS}'
27 @echo "Making modules..."
28 ${MAKE} -C src/modules DIRNAME="src/modules" $(MAKEARGS)
29 @echo "*************************************"
30 @echo "* BUILD COMPLETE! *"
31 @echo "* To install InspIRCd, type: *"
32 @echo "* make install *"
33 @echo "*************************************"
36 @echo "Making ircd..."
37 ${MAKE} -C src DIRNAME="src" $(MAKEARGS)
40 @-install -v -m 0700 src/libIRCDaes.so $(LIBPATH)
41 @-install -v -m 0700 src/libIRCDasyncdns.so $(LIBPATH)
42 @-install -v -m 0700 src/libIRCDbase.so $(LIBPATH)
43 @-install -v -m 0700 src/libIRCDchannels.so $(LIBPATH)
44 @-install -v -m 0700 src/libIRCDcommand_parse.so $(LIBPATH)
45 @-install -v -m 0700 src/libIRCDcommands.so $(LIBPATH)
46 @-install -v -m 0700 src/libIRCDconfigreader.so $(LIBPATH)
47 @-install -v -m 0700 src/libIRCDcull_list.so $(LIBPATH)
48 @-install -v -m 0700 src/libIRCDdnsqueue.so $(LIBPATH)
49 @-install -v -m 0700 src/libIRCDdynamic.so $(LIBPATH)
50 @-install -v -m 0700 src/libIRCDhash.so $(LIBPATH)
51 @-install -v -m 0700 src/libIRCDhelper.so $(LIBPATH)
52 @-install -v -m 0700 src/libIRCDinspsocket.so $(LIBPATH)
53 @-install -v -m 0700 src/libIRCDmessage.so $(LIBPATH)
54 @-install -v -m 0700 src/libIRCDmode.so $(LIBPATH)
55 @-install -v -m 0700 src/libIRCDmodules.so $(LIBPATH)
56 @-install -v -m 0700 src/libIRCDsocket.so $(LIBPATH)
57 @-install -v -m 0700 src/libIRCDsocketengine.so $(LIBPATH)
58 @-install -v -m 0700 src/libIRCDstring.so $(LIBPATH)
59 @-install -v -m 0700 src/libIRCDuserprocess.so $(LIBPATH)
60 @-install -v -m 0700 src/libIRCDusers.so $(LIBPATH)
61 @-install -v -m 0700 src/libIRCDwildcard.so $(LIBPATH)
62 @-install -v -m 0700 src/libIRCDxline.so $(LIBPATH)
63 @-install -v -m 0700 src/libIRCDtimer.so $(LIBPATH)
64 @-install -v -m 0700 src/libIRCDsnomasks.so $(LIBPATH)
65 @-install -v -m 0700 src/inspircd $(BINPATH)
66 @-install -v -m 0700 inspircd $(BASE) 2>/dev/null
67 @-cp conf/inspircd.quotes.example $(CONPATH)
68 @-cp conf/inspircd.rules.example $(CONPATH)
69 @-cp conf/key.pem $(CONPATH)
70 @-cp conf/cert.pem $(CONPATH)
71 @-cp docs/inspircd.conf.example $(CONPATH)
72 ${MAKE} -C src/modules DIRNAME="src/modules" $(MAKEARGS) modinst
73 @echo "*************************************"
74 @echo "* INSTALL COMPLETE! *"
75 @echo "* It is safe to ignore any messages *"
76 @echo "* related to copying of files. *"
78 @echo "* REMEMBER TO EDIT YOUR CONFIG FILE *"
79 @echo "*************************************"
83 @rm -rvf src/*.so src/*.o src/inspircd src/modules/*.so src/modules/*.o *~ src/*~ src/modules/*~ src/modules/extra/*~
88 rm -rf src/modules/*.so
89 rm -rf src/modules/*.o
91 squeakyclean: modclean clean