X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fclam%2Fcpp%2Fvariables.def;h=2a7b21ac7048a363d4f2ee915487de8d5c13efc9;hb=6bac9446c8b7c594001ea05afc4b425a10a49113;hp=a89040719f26b1350c3c9bfbdfa7e9ee002aa7c2;hpb=2952ccf47b80174880141a7ecfa122089f349b8d;p=feisty_meow.git diff --git a/scripts/clam/cpp/variables.def b/scripts/clam/cpp/variables.def index a8904071..2a7b21ac 100644 --- a/scripts/clam/cpp/variables.def +++ b/scripts/clam/cpp/variables.def @@ -11,7 +11,7 @@ ifneq "$(BUILD_PARAMETER_FILE)" "" endif ifeq "$(PARAMETER_FILE)" "" # last ditch attempt to get one that will work. - export PARAMETER_FILE = $(REPOSITORY_DIR)/build.ini + export PARAMETER_FILE = $(PRODUCTION_DIR)/build.ini endif ############################################################################### @@ -22,12 +22,12 @@ include variables.def ############################################################################### #no # set the repository directory if it's still set to the base version. -#ifeq "$(REPOSITORY_DIR)" "" +#ifeq "$(FEISTY_MEOW_DIR)" "" # ifeq "$(OP_SYSTEM)" "UNIX" -# export REPOSITORY_DIR = $(HOME)/hoople +# export FEISTY_MEOW_DIR = $(HOME)/hoople # endif # ifeq "$(OP_SYSTEM)" "WIN32" -# export REPOSITORY_DIR = l: +# export FEISTY_MEOW_DIR = l: # endif #endif @@ -42,17 +42,18 @@ export BASE_CPU # set the CPU to a default if it has not been set previously. ifeq "$(BASE_CPU)" "" - ifneq "$(OP_SYSTEM)" "WIN32" - BASE_CPU := $(shell machine 2>/dev/null || arch 2>/dev/null || echo i686) - endif - ifeq "$(BASE_CPU)" "" +# ifneq "$(OP_SYSTEM)" "WIN32" + BASE_CPU := $(shell machine 2>/dev/null || arch 2>/dev/null || uname -m 2>/dev/null || echo i686) +# endif + +# ifeq "$(BASE_CPU)" "" # BASE_CPU := $(shell uname -m) - BASE_CPU := $(shell arch) - ifeq "$(BASE_CPU)" "" - # failed to get the cpu type. - BASE_CPU := x86 - endif - endif +# BASE_CPU := $(shell arch) +# ifeq "$(BASE_CPU)" "" +# # failed to get the cpu type. +# BASE_CPU := x86 +# endif +# endif endif # COMPILER is a flag that specifies the compiler that will be used to build @@ -183,14 +184,7 @@ FLAG_FILES += $(BUILD_LIST_FILE) $(BUILD_WHACK_FILE) # "THIRD_PARTY_DIR" is the root of our support libraries. export THIRD_PARTY_DIR ifeq "$(THIRD_PARTY_DIR)" "" - export THIRD_PARTY_DIR := $(shell bash -c '\ - if [ -d "$(REPOSITORY_DIR)/3rdparty" ]; then \ - echo "$(REPOSITORY_DIR)/3rdparty"; \ - elif [ -d "$(REPOSITORY_DIR)/libraries/3rdparty" ]; then \ - echo "$(REPOSITORY_DIR)/libraries/3rdparty"; \ - else \ - echo ""; \ - fi') + export THIRD_PARTY_DIR := "$(PRODUCTION_DIR)/3rdparty" endif # "OUTPUT_ROOT" is the root of all output directories for objects and other @@ -215,7 +209,7 @@ export BASE_OUTPUT_PATH = $(OUTPUT_ROOT)/$(CPU_BUILD_DIR) # special case when doing arm-linux builds ifeq "$(COMPILER)" "GNU_ARM_LINUX" - export TARGETS_DIR = $(REPOSITORY_DIR)/$(CPU_BUILD_DIR) + export TARGETS_DIR = $(FEISTY_MEOW_DIR)/$(CPU_BUILD_DIR) # special output directory for firmware doesn't include CPU name because # the repository already include the CPU name BASE_OUTPUT_PATH = $(OUTPUT_ROOT) @@ -232,7 +226,6 @@ export OBJECT_DIR = $(OUTPUT_PATH) export EXECUTABLE_DIR = $(TARGETS_DIR) export DYNAMIC_LIBRARY_DIR = $(TARGETS_DIR) export STATIC_LIBRARY_DIR = $(TARGETS_DIR) -#export TESTS_DIR = $(TARGETS_DIR)/tests # "HEADER_SEARCH_PATH" is where the class interface files are to be found. #HEADER_SEARCH_PATH = @@ -241,11 +234,12 @@ export STATIC_LIBRARY_DIR = $(TARGETS_DIR) ifeq "$(HOOPLE_HEADERS)" "" #seems like some of this is redundant with earlier 3rdparty exploring. LOCUS_LIBRARY_HEADERS = $(shell bash -c '\ - if [ -d "$(REPOSITORY_DIR)/core" ]; then \ - echo "$(REPOSITORY_DIR)/core" "$(REPOSITORY_DIR)/octopi" "$(REPOSITORY_DIR)/graphiq" ; \ + if [ -d "$(FEISTY_MEOW_DIR)/nucleus" ]; then \ + echo "$(FEISTY_MEOW_DIR)/nucleus" "$(FEISTY_MEOW_DIR)/octopi" "$(FEISTY_MEOW_DIR)/graphiq" ; \ else \ echo ""; \ - fi | sed -e "s/\([a-zA-Z]\):\/\(.*\)/\/\1\/\2/" ') + fi | tr "\\\\" / | sed -e "s/\([a-zA-Z]\):\/\([^ ]*\)/\/cygdrive\/\1\/\2/g" ') + # above assumes cygwin support for windows! was assuming msys support. HOOPLE_HEADERS := $(shell $(FIND) $(LOCUS_LIBRARY_HEADERS) -mindepth 1 -maxdepth 1 -type d ) endif @@ -469,10 +463,7 @@ ifeq "$(COMPILER)" "GNU_LINUX" DEFINITIONS += _FILE_OFFSET_BITS=64 DEPENDENCY_DEFINITIONS += NO_VERSION - DEPENDENCY_ADDITIONS = -X/usr/include -X/usr/include/c++/$(COMPILER_VERSION) -X/usr/include/c++/$(COMPILER_VERSION)/tr1 -X/usr/local/include -X/usr/include/linux -X/usr/include/wx-2.8 -X/usr/lib/gcc/i586-suse-linux/$(COMPILER_VERSION)/include -X/usr/lib/gcc/i486-linux-gnu/$(COMPILER_VERSION)/include -X/usr/lib/gcc/i686-linux-gnu/$(COMPILER_VERSION)/include - -#protect other additions to make them only for debian? -# COMPILER_HEADER_DIR := /usr/include /usr/local/include + DEPENDENCY_ADDITIONS = -X/usr/include -X/usr/include/c++/$(COMPILER_VERSION) -X/usr/include/c++/$(COMPILER_VERSION)/tr1 -X/usr/local/include -X/usr/include/linux -X/usr/include/wx-2.8 -X/usr/lib/gcc/i586-suse-linux/$(COMPILER_VERSION)/include -X/usr/lib/gcc/i486-linux-gnu/$(COMPILER_VERSION)/include -X/usr/lib/gcc/i686-linux-gnu/$(COMPILER_VERSION)/include -X/usr/lib/gcc/x86_64-linux-gnu/$(COMPILER_VERION)/include -X/usr/include/x86_64-linux-gnu # "USE_XWIN" specifies that this project needs X window system support. #USE_XWIN = @@ -664,7 +655,7 @@ ifeq "$(COMPILER)" "VISUAL_CPP" export VIS_STU_ROOT := $(shell $(SHELL) $(CLAM_DIR)/cpp/ms_root_dir.sh ) endif ifneq "$(VIS_STU_ROOT)" "" - export COMPILER_ROOT_DIR = $(VIS_STU_ROOT)/vc + export COMPILER_ROOT_DIR = $(VIS_STU_ROOT)/VC endif ifeq "$(COMPILER_ROOT_DIR)" "" HOSEUP = $(shell echo The compiler directory is not set. Please define the environment variable) @@ -681,8 +672,9 @@ ifeq "$(COMPILER)" "VISUAL_CPP" export PDB_DIR = $(TARGETS_DIR) # set these way up here so we can override them later. - CC = $(COMPILER_ROOT_DIR)/bin/cl - LINK_TOOL = $(COMPILER_ROOT_DIR)/bin/link + CC = $(BUILD_SCRIPTS_DIR)/wrapdoze.sh $(COMPILER_ROOT_DIR)/bin/cl.exe + LINK_TOOL = $(BUILD_SCRIPTS_DIR)/wrapdoze.sh $(COMPILER_ROOT_DIR)/bin/link.exe + LIBRARY_TOOL = $(BUILD_SCRIPTS_DIR)/wrapdoze.sh $(COMPILER_ROOT_DIR)/bin/lib # This is needed to protect against the use of 64-bit time_t structure # on windows. We are casting to time_t from a 32-bit structure. @@ -692,19 +684,19 @@ ifeq "$(COMPILER)" "VISUAL_CPP" ifeq "$(COMPILER_VERSION)" "6" COMPILER_HEADER_DIR = $(COMPILER_ROOT_DIR)/include $(COMPILER_ROOT_DIR)/atl/include COMPILER_LIBRARY_DIR = $(COMPILER_ROOT_DIR)/lib $(COMPILER_ROOT_DIR)/atl/lib - RC = $(COMPILER_ROOT_DIR)/../common/msdev98/bin/rc + RC = $(BUILD_SCRIPTS_DIR)/wrapdoze.sh $(COMPILER_ROOT_DIR)/../common/msdev98/bin/rc endif ifeq "$(COMPILER_VERSION)" "7" COMPILER_HEADER_DIR = $(COMPILER_ROOT_DIR)/include $(COMPILER_ROOT_DIR)/atlmfc/include $(COMPILER_ROOT_DIR)/platformsdk/include $(FRAMEWORK_DIR) COMPILER_LIBRARY_DIR = $(COMPILER_ROOT_DIR)/lib $(COMPILER_ROOT_DIR)/atlmfc/lib $(COMPILER_ROOT_DIR)/platformsdk/lib - RC = $(COMPILER_ROOT_DIR)/bin/rc + RC = $(BUILD_SCRIPTS_DIR)/wrapdoze.sh $(COMPILER_ROOT_DIR)/bin/rc COMPILER_FLAGS += -Zc:forScope # turn on proper loop scoping. endif ifeq "$(COMPILER_VERSION)" "8" COMPILER_HEADER_DIR = $(COMPILER_ROOT_DIR)/include $(COMPILER_ROOT_DIR)/atlmfc/include $(COMPILER_ROOT_DIR)/platformsdk/include $(FRAMEWORK_DIR) COMPILER_LIBRARY_DIR = $(COMPILER_ROOT_DIR)/lib $(COMPILER_ROOT_DIR)/atlmfc/lib $(COMPILER_ROOT_DIR)/platformsdk/lib - RC = $(COMPILER_ROOT_DIR)/bin/rc + RC = $(BUILD_SCRIPTS_DIR)/wrapdoze.sh $(COMPILER_ROOT_DIR)/bin/rc COMPILER_FLAGS += -Zc:forScope # turn on proper loop scoping. DEFINITIONS += _WIN32_WINNT=0x501 @@ -720,7 +712,7 @@ ifeq "$(COMPILER)" "VISUAL_CPP" COMPILER_LIBRARY_DIR = $(COMPILER_ROOT_DIR)/lib $(COMPILER_ROOT_DIR)/atlmfc/lib $(PLATYPUS)/lib DEFINITIONS += _WIN32_WINNT=0x501 DEPENDENCY_DEFINITIONS += _WIN32_WINNT=0x501 - RC = $(PLATYPUS)/bin/rc + RC = $(BUILD_SCRIPTS_DIR)/wrapdoze.sh $(PLATYPUS)/bin/rc COMPILER_FLAGS += -Zc:forScope # turn on proper loop scoping. endif @@ -740,7 +732,6 @@ ifeq "$(COMPILER)" "VISUAL_CPP" DEFINITIONS += _Windows _WINDOWS WIN32 __WIN32__ __FLAT__ VC_EXTRALEAN WIN32_LEAN_AND_MEAN ATL_NO_LEAN_AND_MEAN DEF_FILE = - LIBRARY_TOOL = $(COMPILER_ROOT_DIR)/bin/lib LOAD_FLAG_PREFIX = -subsystem:windows -machine:X86 -nologo LOAD_FLAG_SUFFIX =