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