aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortwinaphex2018-02-21 13:49:45 +0100
committertwinaphex2018-02-21 13:49:45 +0100
commitea4775801b424594e309a3413815b67cc53d6ac1 (patch)
tree8b4e8b427cfca7128c8058da25591046ecb8da98 /Makefile
parentb2859c8e0d5a7799058de685451ab8257d61ddcb (diff)
downloadsnes9x2005-ea4775801b424594e309a3413815b67cc53d6ac1.tar.gz
snes9x2005-ea4775801b424594e309a3413815b67cc53d6ac1.tar.bz2
snes9x2005-ea4775801b424594e309a3413815b67cc53d6ac1.zip
Update for MSVC
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f5891c4..e51d126 100644
--- a/Makefile
+++ b/Makefile
@@ -47,7 +47,13 @@ ifneq ($(GIT_VERSION)," unknown")
endif
DEFS :=
+ifneq (,$(findstring msvc,$(platform)))
+LIBM :=
+else
LIBM := -lm
+endif
+LDFLAGS :=
+LIBS :=
ifeq ($(platform), unix)
TARGET := $(TARGET_NAME)_libretro.so
@@ -350,7 +356,7 @@ $(TARGET): $(OBJECTS)
ifeq ($(STATIC_LINKING), 1)
$(AR) rcs $@ $(OBJECTS)
else
- $(CC) $(LINKOUT)$@ $(OBJECTS) $(LDFLAGS)
+ $(CC) $(LINKOUT)$@ $(OBJECTS) $(LDFLAGS) $(LIBS)
endif
clean: