]>
Commit | Line | Data |
---|---|---|
1 | include ../build.mk | |
2 | include build.mk | |
3 | ||
4 | CSDIRS=database chancmds usercmds authcmds authtracker newsearch | |
5 | CLEANDIRS=chancmds usercmds authcmds | |
6 | ||
7 | .PHONY: all dirs $(CSDIRS) clean distclean | |
8 | all: chanserv.so chanserv_protect.so chanserv_grep.so chanserv_relay.so chanserv_flags.so chanserv_cleanupdb.so dirs | |
9 | ||
10 | dirs: $(CSDIRS) | |
11 | ln -sf */*.so . | |
12 | ||
13 | $(CSDIRS): | |
14 | cd $@ && $(MAKE) $(MFLAGS) all | |
15 | ||
16 | clean: | |
17 | rm -f */*.o */*.so *.o *.so | |
18 | rm -rf */.deps .deps | |
19 | for i in $(CLEANDIRS) ; do $(MAKE) -C $$i $(MFLAGS) clean ; done | |
20 | ||
21 | distclean: | |
22 | rm -f */.autobuild.mk .autobuild.mk | |
23 | ||
24 | chanserv.so: chanservdb_updates.o chanserv.o chanservuser.o chanservnetevents.o chanservprivs.o chanservlog.o chanservstdcmds.o \ | |
25 | chanservdump.o chanservschedule.o chanservcrypto.o authlib.o q9snprintf.o | |
26 | ||
27 | chanserv_protect.so: chanserv_protect.o | |
28 | ||
29 | chanserv_grep.so: chanserv_grep.o | |
30 | ||
31 | chanserv_relay.so: chanserv_relay.o | |
32 | ||
33 | chanserv_flags.so: chanserv_flags.o | |
34 | ||
35 | chanserv_cleanupdb.so: chanserv_cleanupdb.o |