import os

output    = "libilnetwork"
src_dir   = "#src/network"
inputs    = "*.c"

Import("build_dir")
Import("platform", "env", "libilutil")

ilnet = env.Clone()

ilnet.Append(CPPPATH = src_dir, LIBS=["ilutil"])

if platform=="mingw":
    ilnet.Append(LIBS=["ws2_32"])

sources = []
for module in Split(inputs) :
    sources.extend(Glob(module))

#objects = ilmath.Object(source = sources)

libilnetwork = ilnet.SharedLibrary(target = build_dir + "/" + output, 
                                   source = sources) #objects)
Depends(libilnetwork, libilutil)

Return("libilnetwork")

