@@ -121,22 +121,6 @@ ifeq ($(NO_NEOGEO), 1)
121
121
NEOGEO_DIR :=
122
122
endif
123
123
124
- ifeq ($(INCLUDE_CPLUSPLUS11_FILES), 1)
125
- ifeq (,$(findstring msvc,$(platform)))
126
- CXXFLAGS += -std=gnu++11
127
- endif
128
- ifeq ($(BUILD_X64_EXE), 1)
129
- FBA_DEFINES += -DXBYAK_NO_OP_NAMES -DMIPS3_X64_DRC
130
- else
131
- MIPS3_X64_DYNAREC_DIR :=
132
- endif
133
- else
134
- ifeq (,$(findstring msvc,$(platform)))
135
- CXXFLAGS += -std=gnu++98
136
- endif
137
- MIPS3_X64_DYNAREC_DIR :=
138
- endif
139
-
140
124
FBA_BURN_DRIVERS_DIRS := $(CAPCOM_DIR) \
141
125
$(ATARI_DIR) \
142
126
$(FBA_BURN_DRIVERS_DIR)/cave \
@@ -185,7 +169,6 @@ FBA_CPU_DIRS := $(FBA_CPU_DIR) \
185
169
$(FBA_CPU_DIR)/m6809 \
186
170
$(M68K_DIR) \
187
171
$(MIPS3_DIR) \
188
- $(MIPS3_X64_DYNAREC_DIR) \
189
172
$(FBA_CPU_DIR)/nec \
190
173
$(FBA_CPU_DIR)/pic16c5x \
191
174
$(FBA_CPU_DIR)/s2650 \
@@ -203,31 +186,6 @@ FBA_INTERFACE_DIRS := $(FBA_INTERFACE_DIR)/audio
203
186
204
187
FBA_SRC_DIRS := $(FBA_BURNER_DIR) $(FBA_BURN_DIRS) $(FBA_CPU_DIRS) $(FBA_BURNER_DIRS) $(FBA_INTERFACE_DIRS)
205
188
206
- ifeq ($(EXTERNAL_ZLIB), 1)
207
- FBA_DEFINES += -DEXTERNAL_ZLIB
208
- LDFLAGS += -lz
209
- else
210
- FBA_SRC_DIRS += $(FBA_LIB_DIR)/zlib
211
- endif
212
-
213
- ifeq ($(INCLUDE_7Z_SUPPORT), 1)
214
- FBA_DEFINES += -DINCLUDE_7Z_SUPPORT
215
- FBA_SRC_DIRS += $(FBA_LIB_DIR)/lib7z
216
- BURN_BLACKLIST += $(FBA_LIB_DIR)/lib7z/LzFindMt.c \
217
- $(FBA_LIB_DIR)/lib7z/LzmaEnc.c \
218
- $(FBA_LIB_DIR)/lib7z/MtCoder.c \
219
- $(FBA_LIB_DIR)/lib7z/Lzma2Enc.c \
220
- $(FBA_LIB_DIR)/lib7z/Bcj2Enc.c \
221
- $(FBA_LIB_DIR)/lib7z/Threads.c \
222
- $(FBA_LIB_DIR)/lib7z/Lzma86Enc.c \
223
- $(FBA_LIB_DIR)/lib7z/LzmaLib.c \
224
- $(FBA_LIB_DIR)/lib7z/XzEnc.c
225
- else
226
- BURN_BLACKLIST += $(FBA_BURNER_DIR)/un7z.cpp
227
- endif
228
-
229
- SOURCES_C += $(filter-out $(BURN_BLACKLIST),$(foreach dir,$(FBA_SRC_DIRS),$(wildcard $(dir)/*.c)))
230
-
231
189
ifneq ($(STATIC_LINKING), 1)
232
190
SOURCES_C += $(LIBRETRO_COMM_DIR)/file/file_path.c \
233
191
$(LIBRETRO_COMM_DIR)/encodings/encoding_utf.c \
@@ -292,6 +250,18 @@ INCLUDE_DIRS := $(FBA_BURNER_DIR)/win32 \
292
250
293
251
ARM_FLAGS =
294
252
253
+ ifeq ($(USE_X64_DRC), 1)
254
+ FBA_DEFINES += -DXBYAK_NO_OP_NAMES -DMIPS3_X64_DRC
255
+ FBA_SRC_DIRS += $(MIPS3_X64_DYNAREC_DIR)
256
+ ifeq (,$(findstring msvc,$(platform)))
257
+ CXXFLAGS += -std=gnu++11
258
+ endif
259
+ else
260
+ ifeq (,$(findstring msvc,$(platform)))
261
+ CXXFLAGS += -std=gnu++98
262
+ endif
263
+ endif
264
+
295
265
ifeq ($(USE_CYCLONE), 1)
296
266
FBA_DEFINES += -DUSE_CYCLONE
297
267
INCLUDE_DIRS += $(FBA_CPU_DIR)/cyclone
@@ -309,7 +279,6 @@ ifeq ($(USE_CYCLONE), 1)
309
279
CXXFLAGS += -fno-optimize-sibling-calls -funsafe-math-optimizations -fsingle-precision-constant
310
280
else
311
281
BURN_BLACKLIST += $(FBA_CPU_DIR)/c68000_intf.cpp
312
- SOURCES_S :=
313
282
endif
314
283
315
284
NEON_FLAGS=
@@ -326,6 +295,30 @@ ifeq ($(HAVE_NEON), 1)
326
295
SOURCES_S += $(LIBRETRO_COMM_DIR)/audio/resampler/drivers/sinc_resampler_neon.S
327
296
endif
328
297
298
+ ifeq ($(EXTERNAL_ZLIB), 1)
299
+ FBA_DEFINES += -DEXTERNAL_ZLIB
300
+ LDFLAGS += -lz
301
+ else
302
+ FBA_SRC_DIRS += $(FBA_LIB_DIR)/zlib
303
+ endif
304
+
305
+ ifeq ($(INCLUDE_7Z_SUPPORT), 1)
306
+ FBA_DEFINES += -DINCLUDE_7Z_SUPPORT
307
+ FBA_SRC_DIRS += $(FBA_LIB_DIR)/lib7z
308
+ BURN_BLACKLIST += $(FBA_LIB_DIR)/lib7z/LzFindMt.c \
309
+ $(FBA_LIB_DIR)/lib7z/LzmaEnc.c \
310
+ $(FBA_LIB_DIR)/lib7z/MtCoder.c \
311
+ $(FBA_LIB_DIR)/lib7z/Lzma2Enc.c \
312
+ $(FBA_LIB_DIR)/lib7z/Bcj2Enc.c \
313
+ $(FBA_LIB_DIR)/lib7z/Threads.c \
314
+ $(FBA_LIB_DIR)/lib7z/Lzma86Enc.c \
315
+ $(FBA_LIB_DIR)/lib7z/LzmaLib.c \
316
+ $(FBA_LIB_DIR)/lib7z/XzEnc.c
317
+ else
318
+ BURN_BLACKLIST += $(FBA_BURNER_DIR)/un7z.cpp
319
+ endif
320
+
321
+ SOURCES_C += $(filter-out $(BURN_BLACKLIST),$(foreach dir,$(FBA_SRC_DIRS),$(wildcard $(dir)/*.c)))
329
322
SOURCES_CXX += $(filter-out $(BURN_BLACKLIST),$(foreach dir,$(FBA_SRC_DIRS),$(wildcard $(dir)/*.cpp)))
330
323
SOURCES_CXX += $(LIBRETRO_DIR)/libretro.cpp \
331
324
$(LIBRETRO_DIR)/cd_emu.cpp \
0 commit comments