Browse Source

build: Cleanup, add qspn to default build

Alexander von Gluck IV 9 years ago
parent
commit
5d78d45402
2 changed files with 19 additions and 21 deletions
  1. 19
    17
      src/SConscript
  2. 0
    4
      src/qspn-empiric.c

+ 19
- 17
src/SConscript View File

@@ -26,22 +26,24 @@ NTK_VERSION="0.0.9b"
26 26
 #	Sources and libs
27 27
 #
28 28
 
29
-sources_common    = Split('xmalloc.c log.c misc.c buffer.c endianness.c')
30
-sources_qspn      = Split('qspn-empiric.c') + sources_common
31
-sources_netsukuku = Split("""accept.c llist.c ipv6-gmp.c inet.c request.c map.c
32
-		   gmap.c bmap.c pkts.c radar.c hook.c rehook.c tracer.c qspn.c 
33
-		   hash.c daemon.c crypto.c snsd_cache.c
34
-		   andna_cache.c andna.c andns_lib.c err_errno.c
35
-		   dnslib.c andns.c andns_net.c andns_snsd.c
36
-		   ll_map.c libnetlink.c if.c krnl_route.c krnl_rule.c
37
-		   iptunnel.c route.c conf.c dns_wrapper.c igs.c mark.c 
38
-		   libiptc/libip4tc.c libping.c ntk-console-server.c
39
-		   netsukuku.c""") + sources_common
40
-sources_ntkresolv = sources_common + Split("""andns_lib.c ntkresolv.c andns_net.c
41
-					      crypto.c snsd_cache.c inet.c
42
-					      ll_map.c libnetlink.c
43
-					      err_errno.c""") 
44
-sources_ntkconsole = Split('ntk-console.c')
29
+sources_common    = ['xmalloc.c', 'log.c', 'misc.c', 'buffer.c', 'endianness.c']
30
+
31
+sources_qspn      = ['qspn-empiric.c'] + sources_common
32
+sources_netsukuku = ['accept.c', 'llist.c', 'ipv6-gmp.c', 'inet.c', 'request.c',
33
+					 'map.c', 'gmap.c', 'bmap.c', 'pkts.c', 'radar.c', 'hook.c',
34
+					 'rehook.c', 'tracer.c', 'qspn.c', 'hash.c', 'daemon.c',
35
+					 'crypto.c', 'snsd_cache.c', 'andna_cache.c', 'andna.c',
36
+					 'andns_lib.c', 'err_errno.c', 'dnslib.c', 'andns.c',
37
+					 'andns_net.c', 'andns_snsd.c', 'll_map.c', 'libnetlink.c',
38
+					 'if.c', 'krnl_route.c', 'krnl_rule.c', 'iptunnel.c',
39
+					 'route.c', 'conf.c', 'dns_wrapper.c', 'igs.c', 'mark.c',
40
+					 'libiptc/libip4tc.c', 'libping.c', 'ntk-console-server.c',
41
+					 'netsukuku.c'] + sources_common
42
+sources_ntkresolv = ['andns_lib.c', 'andns_net.c', 'crypto.c', 'snsd_cache.c',
43
+					 'inet.c', 'll_map.c', 'libnetlink.c', 'err_errno.c',
44
+					 'ntkresolv.c'] + sources_common
45
+
46
+sources_ntkconsole = ['ntk-console.c']
45 47
 
46 48
 libs = ['gmp', 'pthread', 'crypto', 'z']
47 49
 
@@ -157,7 +159,7 @@ qspn  		= env.Program('qspn-empiric', sources_qspn, LIBS = libs, CPPPATH = '.')
157 159
 ntkresolv 	= env.Program('ntk-resolv', sources_ntkresolv, LIBS = libs, CPPPATH = '.')
158 160
 ntkconsole 	= env.Program('ntk-console', sources_ntkconsole, LIBS = libs, CPPPATH = '.', CFLAGS = '-std=c99')
159 161
 
160
-Default(ntkd, ntkresolv, ntkconsole)
162
+Default(ntkd, ntkresolv, ntkconsole, qspn)
161 163
 
162 164
 
163 165
 #

+ 0
- 4
src/qspn-empiric.c View File

@@ -1164,10 +1164,6 @@ int main(int argc, char **argv)
1164 1164
 	log_init(argv[0], 1, 1);
1165 1165
 	clear_all();
1166 1166
 
1167
-#ifndef QSPN_EMPIRIC
1168
-	fatal("QSPN_EMPIRIC is not enabled! Aborting.");
1169
-#endif
1170
-	
1171 1167
 	for(i=0; i<MAXGROUPNODE; i++) 
1172 1168
 		pthread_mutex_init(&mutex[i], NULL);
1173 1169
 

Loading…
Cancel
Save