aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortwinaphex2021-02-14 22:30:24 +0100
committertwinaphex2021-02-14 22:30:24 +0100
commit218be8ef543fc25a603f20a2a3ee79fc7cdad611 (patch)
treed5a2246e5b2e6a305459a8fb1a1e2ec5e93a74f1
parenta2f9a6f050f73df2c9ca4ee6964f9ac2ee10df26 (diff)
downloadsnes9x2005-218be8ef543fc25a603f20a2a3ee79fc7cdad611.tar.gz
snes9x2005-218be8ef543fc25a603f20a2a3ee79fc7cdad611.tar.bz2
snes9x2005-218be8ef543fc25a603f20a2a3ee79fc7cdad611.zip
(MVC) Embed MSVCRT runtime
-rw-r--r--Makefile10
-rw-r--r--Makefile.common4
2 files changed, 12 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 79b9ac2..beff1c9 100644
--- a/Makefile
+++ b/Makefile
@@ -572,6 +572,14 @@ else
FLAGS += -O2 -DNDEBUG
endif
+ifneq (,$(findstring msvc,$(platform)))
+ifeq ($(DEBUG),1)
+ FLAGS += -MTd
+else
+ FLAGS += -MT
+endif
+endif
+
ifeq ($(PERF_TEST),1)
FLAGS += -DPERF_TEST
endif
@@ -628,7 +636,7 @@ $(TARGET): $(OBJECTS)
ifeq ($(STATIC_LINKING), 1)
$(AR) rcs $@ $(OBJECTS)
else
- $(LD) $(fpic) $(SHARED) $(INCFLAGS) $(LDFLAGS) $(LINKOUT)$@ $(OBJECTS) $(LIBS)
+ $(LD) $(fpic) $(SHARED) $(LDFLAGS) $(LINKOUT)$@ $(OBJECTS) $(LIBS)
endif
clean:
diff --git a/Makefile.common b/Makefile.common
index adc3ef8..3247d4b 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -1,6 +1,8 @@
LIBRETRO_COMM_DIR := $(LIBRETRO_DIR)/libretro-common
-INCFLAGS := -I$(CORE_DIR) -I$(LIBRETRO_DIR) -I$(LIBRETRO_COMM_DIR)/include
+INCFLAGS := -I$(CORE_DIR) \
+ -I$(LIBRETRO_DIR) \
+ -I$(LIBRETRO_COMM_DIR)/include
SOURCES_C := \
$(CORE_DIR)/c4.c \