]> git.saurik.com Git - apple/configd.git/blob - Plugins/IPMonitor/Makefile
configd-395.11.tar.gz
[apple/configd.git] / Plugins / IPMonitor / Makefile
1 EXTRA_CFLAGS=
2
3 all: test_proxy
4
5 # ----------
6
7 shared_dns_info.h shared_dns_infoUser.c: ../../dnsinfo/shared_dns_info.defs
8 mig ../../dnsinfo/shared_dns_info.defs
9
10 shared_dns_infoUser.o: shared_dns_info.h shared_dns_infoUser.c
11 cc -I../../dnsinfo -Wall -O0 -g -c shared_dns_infoUser.c
12
13 dnsinfo_create.o: shared_dns_info.h ../../dnsinfo/dnsinfo_create.h ../../dnsinfo/dnsinfo_create.c
14 cc -I. -I../../dnsinfo -Wall -O0 -g -c ../../dnsinfo/dnsinfo_create.c
15
16 dnsinfo_flatfile.o: ../../dnsinfo/dnsinfo_copy.c ../../dnsinfo/dnsinfo_flatfile.c shared_dns_info.h
17 cc -I../../dnsinfo -D_PATH_RESOLVER_DIR='"/var/tmp/resolver"' -Wall -O0 -g -c ../../dnsinfo/dnsinfo_flatfile.c
18
19 dnsinfo_private.o: ../../dnsinfo/dnsinfo_private.h ../../dnsinfo/dnsinfo_private.c
20 cc -I../../dnsinfo -Wall -O0 -g -c ../../dnsinfo/dnsinfo_private.c
21
22 dns-configuration.o: dns-configuration.h dns-configuration.c dnsinfo_create.o
23 cc -I. -I../../dnsinfo -DMAIN -Wall -O0 -g -c dns-configuration.c
24
25 proxy-configuration.o: proxy-configuration.h proxy-configuration.c
26 cc -I. -Wall -O0 -g -c proxy-configuration.c
27
28 smb-configuration.o: smb-configuration.c
29 cc -I. -Wall -O0 -g -c smb-configuration.c
30
31 # ----------
32
33 test_dns: Makefile dnsinfo_create.o dnsinfo_flatfile.o dnsinfo_private.o shared_dns_infoUser.o dns-configuration.o
34 cc -o test_dns dnsinfo_create.o dnsinfo_flatfile.o dnsinfo_private.o shared_dns_infoUser.o dns-configuration.o ${EXTRA_CFLAGS} -framework SystemConfiguration -framework CoreFoundation
35
36 # ----------
37
38 test_proxy: Makefile proxy-configuration.h proxy-configuration.c
39 cc -Wall -O0 -g -o test_proxy -DMAIN -DDEBUG proxy-configuration.c ${EXTRA_CFLAGS} -framework SystemConfiguration -framework CoreFoundation
40
41 # ----------
42
43 test_smb: Makefile smb-configuration.h smb-configuration.c
44 cc -Wall -O0 -g -o test_smb -DMAIN -DDEBUG smb-configuration.c ${EXTRA_CFLAGS} -framework SystemConfiguration -framework CoreFoundation
45
46 # ----------
47
48 test_ipv4_routelist.o: ip_plugin.c
49 cc -I. -I../../dnsinfo -DTEST_IPV4_ROUTELIST -Wall -O0 -g -c -o test_ipv4_routelist.o ip_plugin.c
50
51 test_ipv4_routelist: test_ipv4_routelist.o dnsinfo_create.o dnsinfo_flatfile.o dnsinfo_private.o shared_dns_infoUser.o smb-configuration.o
52 cc -Wall -O0 -g -o test_ipv4_routelist test_ipv4_routelist.o dnsinfo_create.o dnsinfo_flatfile.o dnsinfo_private.o shared_dns_infoUser.o smb-configuration.o -framework SystemConfiguration -framework CoreFoundation
53
54 test_ipv4_routelist_reference.txt: test_ipv4_routelist
55 sh test_reference.sh create test_ipv4_routelist test_ipv4_routelist_reference.txt test_ipv4_routelist_filter.sh
56
57 test_ipv4_routelist_test: test_ipv4_routelist
58 sh test_reference.sh test test_ipv4_routelist test_ipv4_routelist_reference.txt test_ipv4_routelist_filter.sh
59
60 # ----------
61
62 IPMonitor.o: ip_plugin.c
63 cc -I. -I../../dnsinfo -DTEST_IPMONITOR -Wall -O0 -g -c -o IPMonitor.o ip_plugin.c
64
65 IPMonitor: IPMonitor.o dnsinfo_create.o dnsinfo_flatfile.o dnsinfo_private.o shared_dns_infoUser.o smb-configuration.o
66 cc -Wall -O0 -g -o IPMonitor IPMonitor.o dnsinfo_create.o dnsinfo_flatfile.o dnsinfo_private.o shared_dns_infoUser.o smb-configuration.o -framework SystemConfiguration -framework CoreFoundation
67
68 # ----------
69
70 clean:
71 rm -rf *.o \
72 shared_dns_info.h shared_dns_infoServer.c shared_dns_infoUser.c \
73 test_dns test_dns.dSYM \
74 test_proxy test_proxy.dSYM \
75 test_smb test_smb.dSYM \
76 test_ipv4_routelist test_ipv4_routelist.dSYM \
77 IPMonitor IPMonitor.dSYM