3 # Process #################################################################
4 #pName = "example_<module>_<process>"
5 bnames = Dir('..').abspath.rsplit('/', 2)
6 pName = "example_" + bnames[-2] + "_" + bnames[-1]
7 pPath = pName.replace("_", "/") + "/"
9 # Anna modules ############################################################
10 pwd = str(Dir ('.').abspath);
13 modules = [ 'core', 'io', 'xml', 'time', 'diameter' ];
14 for module in modules:
15 anna_libs.append ("anna_" + module)
16 #module = module.replace("_", ".")
17 anna_libpaths.append (pwd.replace (pPath, ("source/" + module + "/")))
19 anna_rlibs = list(anna_libs)
22 # Libraries ###############################################################
23 # To avoid other libraries accumulation:
24 localEnv = env.Clone()
26 anna_library = { 'LIBS' : anna_rlibs }
27 localEnv.MergeFlags (anna_library)
29 system_library = { 'LIBS' : [ 'xml2', 'rt' ] }
30 localEnv.MergeFlags (system_library)
32 localEnv.Append(LIBPATH = anna_libpaths)
34 # Linking #################################################################
35 result = localEnv.Program (pName, Glob ('*.cpp'))