/* Set the default PRIMARY_TARGET (WEPS) directory structure here */ PRIMARY_TARGET = tsterode; /* Primary target of build */ WEPS_ROOT = ../..; /* relative path to WEPS root src tree */ WEPS_INC = [WEPS_ROOT]/inc; /* relative path to WEPS inc dirs */ #ifndef TARGET_BIN TARGET_BIN = bin; /* Primary target default "bin" path/name */ #endif #ifndef TARGET_INC TARGET_INC = inc; /* Primary target default include path */ #endif BIN = [TARGET_BIN]; INC = [TARGET_INC]; /* Note: No suffixes in dir names are currently allowed, ie: (dir1.src and dir2/dir1.abc not allowed) Note: Directory names currently must be unique, ie: (both dir1 and dir2/dir1 not allowed) */ /* list tsterode and pertinent WEPS submodel src directories */ target_dir = testmain; /* primary target src dir */ weps_src_dirs = erosion util/misc util/math; /* WEPS src dirs (w/o path) */ /* all src dirs */ src_dirs = [target_dir] [addprefix [WEPS_ROOT] [weps_src_dirs]]; /* list possible dirs with include files besides [src_dirs] */ inc_dirs = [INC]; /* TARGET inc's */ inc_dirs += [WEPS_INC]; /* WEPS root inc dir */ inc_dirs += [addprefix [WEPS_INC]/ [weps_src_dirs]];/* WEPS submodel inc dirs */ #include "cookbook/compiler.weps" /* determine host/compiler */ #include "cookbook/cook.weps" #include "cookbook/recipes.weps" /* determines the correct recipe file */ #include "cookbook/recipes.dep" /* recipes for dependency files */ #include "cookbook/target.weps" show: { echo "src_dirs: " [src_dirs]; echo "inc_dirs: " [inc_dirs]; echo "manifest: " [manifest]; echo "src_files: " [src_files]; echo "inc_files: " [inc_files]; echo "obj_files: " [obj_files]; echo "dep_files: " [dep_files]; }