]> jfr.im git - irc/quakenet/newserv.git/blob - trusts/Makefile
Build .d files in a separate directory.
[irc/quakenet/newserv.git] / trusts / Makefile
1 include ../build.mk
2
3 TRUSTSDIRS=newsearch
4
5 .PHONY: all dirs $(TRUSTSDIRS) clean distclean
6
7 all: trusts.so trusts_commands.so trusts_policy.so trusts_migration.so trusts_db.so trusts_management.so trusts_master.so trusts_slave.so trusts_api.so dirs
8
9 trusts.so: trusts.o data.o formats.o events.o
10
11 trusts_db.so: trusts_db.o
12
13 trusts_commands.so: trusts_commands.o
14
15 trusts_policy.so: trusts_policy.o
16
17 trusts_migration.so: trusts_migration.o db-migration.o migration.o
18
19 trusts_management.so: trusts_management.o
20
21 trusts_master.so: trusts_master.o
22
23 trusts_slave.so: trusts_slave.o db-slave.o
24
25 trusts_api.so: trusts_api.o
26
27 dirs: $(TRUSTSDIRS)
28 ln -sf */*.so .
29
30 $(TRUSTSDIRS):
31 cd $@ && $(MAKE) $(MFLAGS) all
32
33 clean:
34 rm -f */*.o */*.d */*.so *.o *.d *.so
35 rm -rf */.deps .deps
36
37 distclean:
38