Completely refactor install targets
[senf.git] / Socket / Protocols / INet / SConscript
index 4e77b00..e48d809 100644 (file)
@@ -5,15 +5,12 @@ import SENFSCons, glob
 
 ###########################################################################
 
-sources = SENFSCons.GlobSources()
+SConscript(glob.glob("*/SConscript"))
 
-allob = []
+SENFSCons.AllIncludesHH(env, [ f for f in glob.glob("*.hh")
+                               if f not in ('all_includes.hh','INet.hh') and not f.endswith('.test.hh') ])
 
-allob.extend(
-    SENFSCons.Objects( env, sources = sources, LIBS = [ 'Socket', 'Utils' ] ) )
+sources, includes = SENFSCons.Glob(env)
 
-for sc in glob.glob("*/SConscript"):
-    ob = SConscript(sc)
-    if ob : allob.extend(ob)
-
-Return('allob')
+SENFSCons.Lib(env, sources)
+SENFSCons.InstallIncludeFiles(env, includes)