summaryrefslogtreecommitdiff
path: root/compile.mk
diff options
context:
space:
mode:
authorAndrew Belt <andrewpbelt@gmail.com>2018-06-04 19:34:42 -0400
committerAndrew Belt <andrewpbelt@gmail.com>2018-06-04 19:34:42 -0400
commite4a7e7ddfe4e62dabd625fc3a93d357d564360c5 (patch)
tree1596ca9a5b9c08650638d57f63036ae5f7a50e22 /compile.mk
parentb72bf930a4b2e9dd30b56ef184cbf8583f1bd2ec (diff)
Add ARCH_* to arch.mk
Diffstat (limited to 'compile.mk')
-rw-r--r--compile.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/compile.mk b/compile.mk
index 85ac74f3..fae30fb0 100644
--- a/compile.mk
+++ b/compile.mk
@@ -22,10 +22,10 @@ endif
CXXFLAGS += -std=c++11
-ifeq ($(ARCH), lin)
+ifdef ARCH_LIN
FLAGS += -DARCH_LIN
endif
-ifeq ($(ARCH), mac)
+ifdef ARCH_MAC
FLAGS += -DARCH_MAC
CXXFLAGS += -stdlib=libc++
LDFLAGS += -stdlib=libc++
@@ -33,7 +33,7 @@ ifeq ($(ARCH), mac)
FLAGS += $(MAC_SDK_FLAGS)
LDFLAGS += $(MAC_SDK_FLAGS)
endif
-ifeq ($(ARCH), win)
+ifdef ARCH_WIN
FLAGS += -DARCH_WIN
FLAGS += -D_USE_MATH_DEFINES
endif