/* Set the default PRIMARY_TARGET (WEPS) directory structure here */ PRIMARY_TARGET = weps; /* Primary target of build (weps here) */ #ifndef TARGET_BIN TARGET_BIN = bin; /* Primary target(weps) default "bin" (relative) path/name */ #endif #ifndef TARGET_INC TARGET_INC = inc; /* Primary target (weps) default include (relative) 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 all PRIMARY_TARGET (WEPS) submodel src directories */ src_dirs = crop decomp hydro main manage mproc soil erosion; src_dirs += asd util/date util/math util/misc util/unix; /* list possible dirs with include files beside [src_dirs] */ inc_dirs = [INC] [addprefix [INC]/ [src_dirs]] util; #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]; }