2 # prepares the project for compilation by creating the appropriate directories.
4 # make sure the top-level repository exists.
5 if [ ! -d $FEISTY_MEOW_APEX ]; then mkdir -p $FEISTY_MEOW_APEX; fi
6 # make sure our temp directory is there.
7 if [ ! -d $CLAM_TMP ]; then mkdir -p $CLAM_TMP; fi
8 # make sure the generated files have a home.
9 if [ ! -d $TARGETS_STORE ]; then mkdir -p $TARGETS_STORE; fi
10 # create the generated files storage area.
11 if [ ! -d $OUTPUT_ROOT ]; then mkdir -p $OUTPUT_ROOT; fi
12 # create the top level object directory if it doesn't exist.
13 if [ ! -d $BASE_OUTPUT_PATH ]; then mkdir -p $BASE_OUTPUT_PATH; fi
14 # create the project level object directory if it is non-existent.
15 if [ ! -d $OUTPUT_PATH ]; then mkdir -p $OUTPUT_PATH; fi
16 # create a directory to hold any debugging files, if necessary.
17 if [ ! -d $PDB_DIR ]; then mkdir -p $PDB_DIR; fi
19 if [ ! -d $TESTS_DIR ]; then mkdir -p $TESTS_DIR; fi
21 if [ ! -d $EXECUTABLE_DIR ]; then mkdir -p $EXECUTABLE_DIR; fi
23 if [ ! -d $DYNAMIC_LIBRARY_DIR ]; then mkdir -p $DYNAMIC_LIBRARY_DIR; fi
25 if [ ! -d $STATIC_LIBRARY_DIR ]; then mkdir -p $STATIC_LIBRARY_DIR; fi
27 # set versions on any extras that were specified in the makefile.
28 if [ ! -z "$EXTRA_VERSIONS" ]; then
29 for i in $EXTRA_VERSIONS; do $CLAM_BINARIES/version_stamper$EXE_END $i $PARAMETER_FILE; done
32 # create all the directories that objects will go into.
33 ###for i in $OUTPUT_DIRECTORY_LIST; do
34 ### if [ ! -d "$OUTPUT_PATH/$i" ]; then mkdir "$OUTPUT_PATH/$i"; fi
37 # for firmware compilations set the compiler to the correct processor platform
38 if [ "$COMPILER" = "DIAB" ]; then
39 $COMPILER_CONTROL $COMPILER_CONTROL_FLAGS