maybe building again, patched references to old core folder.
[feisty_meow.git] / scripts / clam / cpp / variables.def
index a89040719f26b1350c3c9bfbdfa7e9ee002aa7c2..97f96fbabc5c2e1dfa590d450101acc0f8c644f3 100644 (file)
@@ -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
@@ -241,8 +235,8 @@ 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 "$(REPOSITORY_DIR)/nucleus" ]; then \
+      echo "$(REPOSITORY_DIR)/nucleus" "$(REPOSITORY_DIR)/octopi" "$(REPOSITORY_DIR)/graphiq" ; \
     else \
       echo ""; \
     fi | sed -e "s/\([a-zA-Z]\):\/\(.*\)/\/\1\/\2/" ')