summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortwinaphex2021-02-14 22:27:53 +0100
committertwinaphex2021-02-14 22:27:53 +0100
commit6d4c2c9b14b626df0fa71cb1869770d2923a470d (patch)
treecfe5425622c73e15447de796a47db1eef02c9040
parenta861a33eb111903500db45da1d95ff50ce754b32 (diff)
downloadsnes9x2002-6d4c2c9b14b626df0fa71cb1869770d2923a470d.tar.gz
snes9x2002-6d4c2c9b14b626df0fa71cb1869770d2923a470d.tar.bz2
snes9x2002-6d4c2c9b14b626df0fa71cb1869770d2923a470d.zip
(MSVC) embed MSVCRT runtime
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1e533bf..dfc9a19 100644
--- a/Makefile
+++ b/Makefile
@@ -386,6 +386,14 @@ else
DEFINES += -O3 -DNDEBUG=1
endif
+ifneq (,$(findstring msvc,$(platform)))
+ifeq ($(DEBUG),1)
+DEFINES += -MTd
+else
+DEFINES += -MT
+endif
+endif
+
LDFLAGS += $(LIBM)
include Makefile.common