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 -m 0700 src/libIRCDaes.so $(LIBPATH)
41 -install -m 0700 src/libIRCDasyncdns.so $(LIBPATH)
42 -install -m 0700 src/libIRCDbase.so $(LIBPATH)
43 -install -m 0700 src/libIRCDchannels.so $(LIBPATH)
44 -install -m 0700 src/libIRCDcommand_parse.so $(LIBPATH)
45 -install -m 0700 src/libIRCDcommands.so $(LIBPATH)
46 -install -m 0700 src/libIRCDconfigreader.so $(LIBPATH)
47 -install -m 0700 src/libIRCDcull_list.so $(LIBPATH)
48 -install -m 0700 src/libIRCDdynamic.so $(LIBPATH)
49 -install -m 0700 src/libIRCDhash.so $(LIBPATH)
50 -install -m 0700 src/libIRCDhelper.so $(LIBPATH)
51 -install -m 0700 src/libIRCDinspsocket.so $(LIBPATH)
52 -install -m 0700 src/libIRCDmode.so $(LIBPATH)
53 -install -m 0700 src/libIRCDmodules.so $(LIBPATH)
54 -install -m 0700 src/libIRCDsocket.so $(LIBPATH)
55 -install -m 0700 src/libIRCDsocketengine.so $(LIBPATH)
56 -install -m 0700 src/libIRCDstring.so $(LIBPATH)
57 -install -m 0700 src/libIRCDuserprocess.so $(LIBPATH)
58 -install -m 0700 src/libIRCDusers.so $(LIBPATH)
59 -install -m 0700 src/libIRCDwildcard.so $(LIBPATH)
60 -install -m 0700 src/libIRCDxline.so $(LIBPATH)
61 -install -m 0700 src/libIRCDtimer.so $(LIBPATH)
62 -install -m 0700 src/libIRCDsnomasks.so $(LIBPATH)
63 -install -m 0700 src/inspircd $(BINPATH)
64 -install -m 0700 inspircd $(BASE) 2>/dev/null
65 -install -m 0700 src/cmd_admin.so $(LIBPATH)
66 -install -m 0700 src/cmd_away.so $(LIBPATH)
67 -install -m 0700 src/cmd_commands.so $(LIBPATH)
68 -install -m 0700 src/cmd_connect.so $(LIBPATH)
69 -install -m 0700 src/cmd_die.so $(LIBPATH)
70 -install -m 0700 src/cmd_eline.so $(LIBPATH)
71 -install -m 0700 src/cmd_gline.so $(LIBPATH)
72 -install -m 0700 src/cmd_info.so $(LIBPATH)
73 -install -m 0700 src/cmd_invite.so $(LIBPATH)
74 -install -m 0700 src/cmd_ison.so $(LIBPATH)
75 -install -m 0700 src/cmd_join.so $(LIBPATH)
76 -install -m 0700 src/cmd_kick.so $(LIBPATH)
77 -install -m 0700 src/cmd_kill.so $(LIBPATH)
78 -install -m 0700 src/cmd_kline.so $(LIBPATH)
79 -install -m 0700 src/cmd_links.so $(LIBPATH)
80 -install -m 0700 src/cmd_list.so $(LIBPATH)
81 -install -m 0700 src/cmd_loadmodule.so $(LIBPATH)
82 -install -m 0700 src/cmd_lusers.so $(LIBPATH)
83 -install -m 0700 src/cmd_map.so $(LIBPATH)
84 -install -m 0700 src/cmd_modules.so $(LIBPATH)
85 -install -m 0700 src/cmd_motd.so $(LIBPATH)
86 -install -m 0700 src/cmd_names.so $(LIBPATH)
87 -install -m 0700 src/cmd_nick.so $(LIBPATH)
88 -install -m 0700 src/cmd_notice.so $(LIBPATH)
89 -install -m 0700 src/cmd_oper.so $(LIBPATH)
90 -install -m 0700 src/cmd_part.so $(LIBPATH)
91 -install -m 0700 src/cmd_pass.so $(LIBPATH)
92 -install -m 0700 src/cmd_ping.so $(LIBPATH)
93 -install -m 0700 src/cmd_pong.so $(LIBPATH)
94 -install -m 0700 src/cmd_privmsg.so $(LIBPATH)
95 -install -m 0700 src/cmd_qline.so $(LIBPATH)
96 -install -m 0700 src/cmd_quit.so $(LIBPATH)
97 -install -m 0700 src/cmd_rehash.so $(LIBPATH)
98 -install -m 0700 src/cmd_restart.so $(LIBPATH)
99 -install -m 0700 src/cmd_rules.so $(LIBPATH)
100 -install -m 0700 src/cmd_server.so $(LIBPATH)
101 -install -m 0700 src/cmd_squit.so $(LIBPATH)
102 -install -m 0700 src/cmd_stats.so $(LIBPATH)
103 -install -m 0700 src/cmd_summon.so $(LIBPATH)
104 -install -m 0700 src/cmd_time.so $(LIBPATH)
105 -install -m 0700 src/cmd_topic.so $(LIBPATH)
106 -install -m 0700 src/cmd_trace.so $(LIBPATH)
107 -install -m 0700 src/cmd_unloadmodule.so $(LIBPATH)
108 -install -m 0700 src/cmd_user.so $(LIBPATH)
109 -install -m 0700 src/cmd_userhost.so $(LIBPATH)
110 -install -m 0700 src/cmd_users.so $(LIBPATH)
111 -install -m 0700 src/cmd_version.so $(LIBPATH)
112 -install -m 0700 src/cmd_wallops.so $(LIBPATH)
113 -install -m 0700 src/cmd_who.so $(LIBPATH)
114 -install -m 0700 src/cmd_whois.so $(LIBPATH)
115 -install -m 0700 src/cmd_whowas.so $(LIBPATH)
116 -install -m 0700 src/cmd_zline.so $(LIBPATH)
117 -install -m 0700 src/cmd_mode.so $(LIBPATH)
118 @-cp .gdbargs $(BASE)
119 @-cp conf/inspircd.quotes.example $(CONPATH)
120 @-cp conf/inspircd.rules.example $(CONPATH)
121 @-cp conf/key.pem $(CONPATH)
122 @-cp conf/cert.pem $(CONPATH)
123 @-cp docs/inspircd.conf.example $(CONPATH)
124 ${MAKE} -C src/modules DIRNAME="src/modules" $(MAKEARGS) modinst
125 @echo "*************************************"
126 @echo "* INSTALL COMPLETE! *"
127 @echo "* It is safe to ignore any messages *"
128 @echo "* related to copying of files. *"
130 @echo "* REMEMBER TO EDIT YOUR CONFIG FILE *"
131 @echo "*************************************"
135 @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
140 rm -rf src/modules/*.so
141 rm -rf src/modules/*.o
143 squeakyclean: distclean
145 distclean: modclean clean