diff options
author | Andrew Belt <andrewpbelt@gmail.com> | 2018-06-04 19:34:42 -0400 |
---|---|---|
committer | Andrew Belt <andrewpbelt@gmail.com> | 2018-06-04 19:34:42 -0400 |
commit | e4a7e7ddfe4e62dabd625fc3a93d357d564360c5 (patch) | |
tree | 1596ca9a5b9c08650638d57f63036ae5f7a50e22 /compile.mk | |
parent | b72bf930a4b2e9dd30b56ef184cbf8583f1bd2ec (diff) |
Add ARCH_* to arch.mk
Diffstat (limited to 'compile.mk')
-rw-r--r-- | compile.mk | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |