]>
Commit | Line | Data |
---|---|---|
6bb65964 A |
1 | EXTRA_CFLAGS= |
2 | ||
5e9ce69e | 3 | TEST_INCLUDE=-I. -I../common -I../../dnsinfo -I../../nwi -I../../libSystemConfiguration -I../../SystemConfiguration.fproj |
6bb65964 | 4 | |
5e9ce69e | 5 | all: test_ipv4_routelist |
6bb65964 | 6 | |
5e9ce69e | 7 | # ---------- |
6bb65964 | 8 | |
5e9ce69e A |
9 | dnsinfo_create.o: ../../dnsinfo/dnsinfo_create.h ../../dnsinfo/dnsinfo_create.c |
10 | cc ${TEST_INCLUDE} -Wall -O0 -g -c ../../dnsinfo/dnsinfo_create.c | |
6bb65964 | 11 | |
5e9ce69e A |
12 | dnsinfo_flatfile.o: ../../dnsinfo/dnsinfo_copy.c ../../dnsinfo/dnsinfo_flatfile.c |
13 | cc ${TEST_INCLUDE} -D_PATH_RESOLVER_DIR='"/var/tmp/resolver"' -Wall -O0 -g -c ../../dnsinfo/dnsinfo_flatfile.c | |
6bb65964 | 14 | |
5e9ce69e A |
15 | dnsinfo_server.o: ../../dnsinfo/dnsinfo_copy.c ../../dnsinfo/dnsinfo_server.c |
16 | cc ${TEST_INCLUDE} -Wall -O0 -g -c ../../dnsinfo/dnsinfo_server.c | |
6bb65964 A |
17 | |
18 | dns-configuration.o: dns-configuration.h dns-configuration.c dnsinfo_create.o | |
5e9ce69e | 19 | cc ${TEST_INCLUDE} ${EXTRA_CFLAGS} -Wall -O0 -g -c dns-configuration.c |
17d3ee29 A |
20 | |
21 | network_information_priv.o: ../../nwi/network_information_priv.h ../../nwi/network_information_priv.c | |
5e9ce69e A |
22 | cc ${TEST_INCLUDE} -Wall -O0 -g -c ../../nwi/network_information_priv.c |
23 | ||
24 | network_information_server.o: ../../nwi/network_information_server.h ../../nwi/network_information_server.c | |
25 | cc ${TEST_INCLUDE} -Wall -O0 -g -c ../../nwi/network_information_server.c | |
6bb65964 A |
26 | |
27 | proxy-configuration.o: proxy-configuration.h proxy-configuration.c | |
5e9ce69e A |
28 | cc ${TEST_INCLUDE} -Wall -O0 -g -c proxy-configuration.c |
29 | ||
30 | set-hostname.o: set-hostname.c | |
31 | cc ${TEST_INCLUDE} -Wall -O0 -g -c set-hostname.c | |
6bb65964 A |
32 | |
33 | smb-configuration.o: smb-configuration.c | |
5e9ce69e A |
34 | cc ${TEST_INCLUDE} -Wall -O0 -g -c smb-configuration.c |
35 | ||
36 | libSystemConfiguration_client.o: ../../libSystemConfiguration/libSystemConfiguration_client.h ../../libSystemConfiguration/libSystemConfiguration_client.c | |
37 | cc ${TEST_INCLUDE} -Wall -O0 -g -c ../../libSystemConfiguration/libSystemConfiguration_client.c | |
38 | ||
39 | libSystemConfiguration_server.o: ../../libSystemConfiguration/libSystemConfiguration_server.h ../../libSystemConfiguration/libSystemConfiguration_server.c | |
40 | cc ${TEST_INCLUDE} -Wall -O0 -g -c ../../libSystemConfiguration/libSystemConfiguration_server.c | |
41 | ||
42 | IPMonitorControlPrefs.o: ../common/IPMonitorControlPrefs.h ../common/IPMonitorControlPrefs.c | |
43 | cc ${TEST_INCLUDE} -Wall -O0 -g -c ../common/IPMonitorControlPrefs.c | |
6bb65964 A |
44 | |
45 | # ---------- | |
46 | ||
5e9ce69e A |
47 | dns-configurationX.o: dns-configuration.h dns-configuration.c dnsinfo_create.o |
48 | cc -DMAIN ${TEST_INCLUDE} ${EXTRA_CFLAGS} -Wall -O0 -g -c -o dns-configurationX.o dns-configuration.c | |
49 | ||
50 | ip_pluginX.o: ip_plugin.c | |
51 | cc ${TEST_INCLUDE} ${EXTRA_CFLAGS} -Wall -O0 -g -c -o ip_pluginX.o ip_plugin.c | |
52 | ||
53 | test_dns: Makefile dnsinfo_create.o dnsinfo_flatfile.o dnsinfo_server.o ip_pluginX.o IPMonitorControlPrefs.o network_information_priv.o network_information_server.o dns-configurationX.o proxy-configuration.o set-hostname.o smb-configuration.o libSystemConfiguration_client.o libSystemConfiguration_server.o | |
54 | cc -Wall -O0 -g -o test_dns dnsinfo_create.o dnsinfo_flatfile.o dnsinfo_server.o ip_pluginX.o IPMonitorControlPrefs.o network_information_priv.o network_information_server.o dns-configurationX.o proxy-configuration.o set-hostname.o smb-configuration.o libSystemConfiguration_client.o libSystemConfiguration_server.o ${EXTRA_CFLAGS} -framework SystemConfiguration -framework CoreFoundation | |
6bb65964 A |
55 | |
56 | # ---------- | |
57 | ||
58 | test_proxy: Makefile proxy-configuration.h proxy-configuration.c | |
5e9ce69e | 59 | cc -DMAIN -DDEBUG -Wall -O0 -g -o test_proxy proxy-configuration.c ${EXTRA_CFLAGS} -framework SystemConfiguration -framework CoreFoundation |
6bb65964 A |
60 | |
61 | # ---------- | |
a40a14f8 | 62 | |
5e9ce69e A |
63 | smb-configurationX.o: smb-configuration.h smb-configuration.c |
64 | cc -DMAIN ${TEST_INCLUDE} ${EXTRA_CFLAGS} -Wall -O0 -g -c -o smb-configurationX.o smb-configuration.c | |
65 | ||
66 | test_smb: Makefile dnsinfo_create.o dnsinfo_flatfile.o dnsinfo_server.o ip_pluginX.o IPMonitorControlPrefs.o network_information_priv.o network_information_server.o dns-configuration.o smb-configurationX.o proxy-configuration.o set-hostname.o libSystemConfiguration_client.o libSystemConfiguration_server.o | |
67 | cc -Wall -O0 -g -o test_smb dnsinfo_create.o dnsinfo_flatfile.o dnsinfo_server.o ip_pluginX.o IPMonitorControlPrefs.o network_information_priv.o network_information_server.o dns-configuration.o smb-configurationX.o proxy-configuration.o set-hostname.o libSystemConfiguration_client.o libSystemConfiguration_server.o ${EXTRA_CFLAGS} -framework SystemConfiguration -framework CoreFoundation | |
a40a14f8 | 68 | |
6bb65964 | 69 | # ---------- |
a40a14f8 | 70 | |
6bb65964 | 71 | test_ipv4_routelist.o: ip_plugin.c |
5e9ce69e | 72 | cc -DTEST_IPV4_ROUTELIST ${TEST_INCLUDE} ${EXTRA_CFLAGS} -Wall -O0 -g -c -o test_ipv4_routelist.o ip_plugin.c |
6bb65964 | 73 | |
5e9ce69e A |
74 | test_ipv4_routelist: test_ipv4_routelist.o IPMonitorControlPrefs.o dnsinfo_create.o dnsinfo_flatfile.o dnsinfo_server.o network_information_priv.o network_information_server.o smb-configuration.o proxy-configuration.o libSystemConfiguration_server.o |
75 | cc -Wall -O0 -g -o test_ipv4_routelist test_ipv4_routelist.o IPMonitorControlPrefs.o dnsinfo_create.o dnsinfo_flatfile.o dnsinfo_server.o network_information_priv.o network_information_server.o smb-configuration.o proxy-configuration.o libSystemConfiguration_server.o ${EXTRA_CFLAGS} -framework SystemConfiguration -framework CoreFoundation | |
a40a14f8 A |
76 | |
77 | test_ipv4_routelist_reference.txt: test_ipv4_routelist | |
78 | sh test_reference.sh create test_ipv4_routelist test_ipv4_routelist_reference.txt test_ipv4_routelist_filter.sh | |
79 | ||
80 | test_ipv4_routelist_test: test_ipv4_routelist | |
81 | sh test_reference.sh test test_ipv4_routelist test_ipv4_routelist_reference.txt test_ipv4_routelist_filter.sh | |
82 | ||
6bb65964 A |
83 | # ---------- |
84 | ||
85 | IPMonitor.o: ip_plugin.c | |
5e9ce69e | 86 | cc -DTEST_IPMONITOR ${TEST_INCLUDE} ${EXTRA_CFLAGS} -Wall -O0 -g -c -o IPMonitor.o ip_plugin.c |
6bb65964 | 87 | |
5e9ce69e A |
88 | IPMonitor: IPMonitor.o IPMonitorControlPrefs.o dnsinfo_create.o dnsinfo_flatfile.o dnsinfo_server.o network_information_priv.o network_information_server.o proxy-configuration.o smb-configuration.o libSystemConfiguration_client.o libSystemConfiguration_server.o |
89 | cc -Wall -O0 -g -o IPMonitor IPMonitor.o IPMonitorControlPrefs.o dnsinfo_create.o dnsinfo_flatfile.o dnsinfo_server.o network_information_priv.o network_information_server.o proxy-configuration.o smb-configuration.o libSystemConfiguration_client.o libSystemConfiguration_server.o ${EXTRA_CFLAGS} -framework SystemConfiguration -framework CoreFoundation | |
6bb65964 A |
90 | |
91 | # ---------- | |
a40a14f8 A |
92 | |
93 | clean: | |
6bb65964 | 94 | rm -rf *.o \ |
6bb65964 A |
95 | test_dns test_dns.dSYM \ |
96 | test_proxy test_proxy.dSYM \ | |
97 | test_smb test_smb.dSYM \ | |
98 | test_ipv4_routelist test_ipv4_routelist.dSYM \ | |
a40a14f8 | 99 | IPMonitor IPMonitor.dSYM |