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@
23 MAKEARGS = 'PROGS=${PROGS}' 'FLAGS=${FLAGS}' 'CC=${CC}' 'LDLIBS=${LDLIBS}' 'MODULES=${MODULES}' 'MODPATH=${MODPATH}' 'LIBPATH=${LIBPATH}' 'STATICLIBS=${STATICLIBS}'
25 all : @MAKEORDER@ finishmessage
28 @echo "Making modules..."
29 ${MAKE} -C src/modules DIRNAME="src/modules" $(MAKEARGS)
31 # Make this depend on 'ircd' and 'mods', so its always output last even with -j
32 finishmessage: ircd mods
34 @echo "*************************************"
35 @echo "* BUILD COMPLETE! *"
36 @echo "* To install InspIRCd, type: *"
37 @echo "* make install *"
38 @echo "*************************************"
41 @echo "Making ircd..."
42 ${MAKE} -C src DIRNAME="src" $(MAKEARGS)
50 -install -m $(INSTMODE) src/libIRCDaes.so $(LIBPATH)
51 -install -m $(INSTMODE) src/libIRCDasyncdns.so $(LIBPATH)
52 -install -m $(INSTMODE) src/libIRCDbase.so $(LIBPATH)
53 -install -m $(INSTMODE) src/libIRCDchannels.so $(LIBPATH)
54 -install -m $(INSTMODE) src/libIRCDcommand_parse.so $(LIBPATH)
55 -install -m $(INSTMODE) src/libIRCDcommands.so $(LIBPATH)
56 -install -m $(INSTMODE) src/libIRCDconfigreader.so $(LIBPATH)
57 -install -m $(INSTMODE) src/libIRCDcull_list.so $(LIBPATH)
58 -install -m $(INSTMODE) src/libIRCDdynamic.so $(LIBPATH)
59 -install -m $(INSTMODE) src/libIRCDhash.so $(LIBPATH)
60 -install -m $(INSTMODE) src/libIRCDhelper.so $(LIBPATH)
61 -install -m $(INSTMODE) src/libIRCDinspsocket.so $(LIBPATH)
62 -install -m $(INSTMODE) src/libIRCDmode.so $(LIBPATH)
63 -install -m $(INSTMODE) src/libIRCDmodules.so $(LIBPATH)
64 -install -m $(INSTMODE) src/libIRCDsocket.so $(LIBPATH)
65 -install -m $(INSTMODE) src/libIRCDsocketengine.so $(LIBPATH)
66 -install -m $(INSTMODE) src/libIRCDstring.so $(LIBPATH)
67 -install -m $(INSTMODE) src/libIRCDuserprocess.so $(LIBPATH)
68 -install -m $(INSTMODE) src/libIRCDusers.so $(LIBPATH)
69 -install -m $(INSTMODE) src/libIRCDwildcard.so $(LIBPATH)
70 -install -m $(INSTMODE) src/libIRCDxline.so $(LIBPATH)
71 -install -m $(INSTMODE) src/libIRCDtimer.so $(LIBPATH)
72 -install -m $(INSTMODE) src/libIRCDsnomasks.so $(LIBPATH)
73 -install -m $(INSTMODE) src/inspircd $(BINPATH)
74 -install -m $(INSTMODE) inspircd $(BASE) 2>/dev/null
75 -install -m $(INSTMODE) src/cmd_admin.so $(LIBPATH)
76 -install -m $(INSTMODE) src/cmd_away.so $(LIBPATH)
77 -install -m $(INSTMODE) src/cmd_commands.so $(LIBPATH)
78 -install -m $(INSTMODE) src/cmd_connect.so $(LIBPATH)
79 -install -m $(INSTMODE) src/cmd_die.so $(LIBPATH)
80 -install -m $(INSTMODE) src/cmd_eline.so $(LIBPATH)
81 -install -m $(INSTMODE) src/cmd_gline.so $(LIBPATH)
82 -install -m $(INSTMODE) src/cmd_info.so $(LIBPATH)
83 -install -m $(INSTMODE) src/cmd_invite.so $(LIBPATH)
84 -install -m $(INSTMODE) src/cmd_ison.so $(LIBPATH)
85 -install -m $(INSTMODE) src/cmd_join.so $(LIBPATH)
86 -install -m $(INSTMODE) src/cmd_kick.so $(LIBPATH)
87 -install -m $(INSTMODE) src/cmd_kill.so $(LIBPATH)
88 -install -m $(INSTMODE) src/cmd_kline.so $(LIBPATH)
89 -install -m $(INSTMODE) src/cmd_links.so $(LIBPATH)
90 -install -m $(INSTMODE) src/cmd_list.so $(LIBPATH)
91 -install -m $(INSTMODE) src/cmd_loadmodule.so $(LIBPATH)
92 -install -m $(INSTMODE) src/cmd_lusers.so $(LIBPATH)
93 -install -m $(INSTMODE) src/cmd_map.so $(LIBPATH)
94 -install -m $(INSTMODE) src/cmd_modules.so $(LIBPATH)
95 -install -m $(INSTMODE) src/cmd_motd.so $(LIBPATH)
96 -install -m $(INSTMODE) src/cmd_names.so $(LIBPATH)
97 -install -m $(INSTMODE) src/cmd_nick.so $(LIBPATH)
98 -install -m $(INSTMODE) src/cmd_notice.so $(LIBPATH)
99 -install -m $(INSTMODE) src/cmd_oper.so $(LIBPATH)
100 -install -m $(INSTMODE) src/cmd_part.so $(LIBPATH)
101 -install -m $(INSTMODE) src/cmd_pass.so $(LIBPATH)
102 -install -m $(INSTMODE) src/cmd_ping.so $(LIBPATH)
103 -install -m $(INSTMODE) src/cmd_pong.so $(LIBPATH)
104 -install -m $(INSTMODE) src/cmd_privmsg.so $(LIBPATH)
105 -install -m $(INSTMODE) src/cmd_qline.so $(LIBPATH)
106 -install -m $(INSTMODE) src/cmd_quit.so $(LIBPATH)
107 -install -m $(INSTMODE) src/cmd_rehash.so $(LIBPATH)
108 -install -m $(INSTMODE) src/cmd_restart.so $(LIBPATH)
109 -install -m $(INSTMODE) src/cmd_rules.so $(LIBPATH)
110 -install -m $(INSTMODE) src/cmd_server.so $(LIBPATH)
111 -install -m $(INSTMODE) src/cmd_squit.so $(LIBPATH)
112 -install -m $(INSTMODE) src/cmd_stats.so $(LIBPATH)
113 -install -m $(INSTMODE) src/cmd_summon.so $(LIBPATH)
114 -install -m $(INSTMODE) src/cmd_time.so $(LIBPATH)
115 -install -m $(INSTMODE) src/cmd_topic.so $(LIBPATH)
116 -install -m $(INSTMODE) src/cmd_trace.so $(LIBPATH)
117 -install -m $(INSTMODE) src/cmd_unloadmodule.so $(LIBPATH)
118 -install -m $(INSTMODE) src/cmd_user.so $(LIBPATH)
119 -install -m $(INSTMODE) src/cmd_userhost.so $(LIBPATH)
120 -install -m $(INSTMODE) src/cmd_users.so $(LIBPATH)
121 -install -m $(INSTMODE) src/cmd_version.so $(LIBPATH)
122 -install -m $(INSTMODE) src/cmd_wallops.so $(LIBPATH)
123 -install -m $(INSTMODE) src/cmd_who.so $(LIBPATH)
124 -install -m $(INSTMODE) src/cmd_whois.so $(LIBPATH)
125 -install -m $(INSTMODE) src/cmd_whowas.so $(LIBPATH)
126 -install -m $(INSTMODE) src/cmd_zline.so $(LIBPATH)
127 -install -m $(INSTMODE) src/cmd_mode.so $(LIBPATH)
128 @-cp .gdbargs $(BASE)
129 @-cp conf/inspircd.quotes.example $(CONPATH)
130 @-cp conf/inspircd.rules.example $(CONPATH)
131 @-cp conf/key.pem $(CONPATH)
132 @-cp conf/cert.pem $(CONPATH)
133 @-cp docs/inspircd.conf.example $(CONPATH)
134 ${MAKE} -C src/modules DIRNAME="src/modules" $(MAKEARGS) modinst
136 @echo "*************************************"
137 @echo "* INSTALL COMPLETE! *"
138 @echo "* It is safe to ignore any messages *"
139 @echo "* related to copying of files. *"
141 @echo "* REMEMBER TO EDIT YOUR CONFIG FILE *"
142 @echo "*************************************"
146 @rm -rvf src/*.so src/*.o src/inspircd src/modules/*.so src/modules/*.o *~ src/*~ src/modules/*~ src/modules/extra/*~ src/modes/*~ src/modes/*.o src/modes/*.a
151 rm -rf src/modules/*.so
152 rm -rf src/modules/*.o
154 squeakyclean: distclean
156 distclean: modclean clean