diff options
author | twinaphex | 2017-08-11 17:43:00 +0200 |
---|---|---|
committer | twinaphex | 2017-08-11 17:43:00 +0200 |
commit | b9c74ceb1352c8f433cf6bf2c446ae07457c5267 (patch) | |
tree | afd398fed3d08c81957373be55a12284cb932ab6 /Makefile.common | |
parent | 1aecedc999445e9a27e04f665fd562b576775d08 (diff) | |
download | snesemu-b9c74ceb1352c8f433cf6bf2c446ae07457c5267.tar.gz snesemu-b9c74ceb1352c8f433cf6bf2c446ae07457c5267.tar.bz2 snesemu-b9c74ceb1352c8f433cf6bf2c446ae07457c5267.zip |
Start making this suitable for MSVC and C89
Diffstat (limited to 'Makefile.common')
-rw-r--r-- | Makefile.common | 30 |
1 files changed, 3 insertions, 27 deletions
diff --git a/Makefile.common b/Makefile.common index 83a0fdc..e62fabb 100644 --- a/Makefile.common +++ b/Makefile.common @@ -1,4 +1,6 @@ -INCFLAGS := -I$(CORE_DIR) -I$(LIBRETRO_DIR) +LIBRETRO_COMM_DIR := $(LIBRETRO_DIR)/libretro-common + +INCFLAGS := -I$(CORE_DIR) -I$(LIBRETRO_DIR) -I$(LIBRETRO_COMM_DIR)/include ifeq ($(HAVE_GRIFFIN), 1) SOURCES_C := $(CORE_DIR)/catsfc_griffin.c @@ -44,16 +46,6 @@ SOURCES_C := \ $(LIBRETRO_DIR)/libretro.c endif -ifeq ($(DEBUG),1) - FLAGS += -O0 -g -else - FLAGS += -O3 -DNDEBUG -endif - -ifeq ($(PERF_TEST),1) - FLAGS += -DPERF_TEST -endif - ifeq ($(USE_BLARGG_APU),1) FLAGS += -DUSE_BLARGG_APU endif @@ -62,20 +54,4 @@ ifeq ($(LOAD_FROM_MEMORY_TEST),1) FLAGS += -DLOAD_FROM_MEMORY_TEST endif -ifeq ($(OLD_GCC), 1) - WARNINGS := -Wall -else ifeq ($(NO_GCC), 1) - WARNINGS := -else - WARNINGS := \ - -Wall \ - -Wno-sign-compare \ - -Wno-unused-variable \ - -Wno-unused-function \ - -Wno-uninitialized \ - -Wno-strict-aliasing \ - -Wno-overflow \ - -fno-strict-overflow -endif - FLAGS += $(DEFS) $(WARNINGS) $(INCFLAGS) |