Fix compilation on older Mingw platform. Tested on api=SDL2
This commit is contained in:
parent
372fbc70d8
commit
00b42bb45b
@ -113,7 +113,7 @@ ifdef COMSPEC
|
|||||||
BIN = ../bin/grafx2-$(API).exe
|
BIN = ../bin/grafx2-$(API).exe
|
||||||
TESTSBIN = ../bin/tests-$(API).exe
|
TESTSBIN = ../bin/tests-$(API).exe
|
||||||
GENERATEDOCBIN = ../bin/generatedoc.exe
|
GENERATEDOCBIN = ../bin/generatedoc.exe
|
||||||
COPT = -W -Wall -Wdeclaration-after-statement -O$(OPTIM) -g -ggdb
|
COPT = -W -Wall -Wdeclaration-after-statement -O$(OPTIM) -g -ggdb -DWINVER=0x0500
|
||||||
COPT += $(LUACOPT)
|
COPT += $(LUACOPT)
|
||||||
LOPT = -mwindows
|
LOPT = -mwindows
|
||||||
LOPT += $(LUALOPT)
|
LOPT += $(LUALOPT)
|
||||||
@ -509,7 +509,7 @@ endif
|
|||||||
STRIP = $(CROSS_STRIP)
|
STRIP = $(CROSS_STRIP)
|
||||||
BIN = ../bin/grafx2-$(API).exe
|
BIN = ../bin/grafx2-$(API).exe
|
||||||
TESTSBIN = ../bin/tests-$(API).exe
|
TESTSBIN = ../bin/tests-$(API).exe
|
||||||
COPT = -W -Wall -Wdeclaration-after-statement -O$(OPTIM) -g -ggdb $(TTFCOPT)
|
COPT = -W -Wall -Wdeclaration-after-statement -O$(OPTIM) -g -ggdb $(TTFCOPT) -DWINVER=0x0500
|
||||||
LOPT = -mwindows -lmingw32 -lshlwapi -lmpr $(TTFLOPT)
|
LOPT = -mwindows -lmingw32 -lshlwapi -lmpr $(TTFLOPT)
|
||||||
ifeq ($(API),sdl)
|
ifeq ($(API),sdl)
|
||||||
COPT += -Dmain=SDL_main $(shell $(CROSS_SDLCONFIG) --cflags)
|
COPT += -Dmain=SDL_main $(shell $(CROSS_SDLCONFIG) --cflags)
|
||||||
@ -1171,7 +1171,7 @@ $(OBJDIR)/loadrecoil.o: recoil.c recoil.h
|
|||||||
../3rdparty/recoil-$(RECOILVER)/recoil.c:
|
../3rdparty/recoil-$(RECOILVER)/recoil.c:
|
||||||
if [ -d ../3rdparty ] ; then $(MAKE) -C ../3rdparty recoil ; fi
|
if [ -d ../3rdparty ] ; then $(MAKE) -C ../3rdparty recoil ; fi
|
||||||
|
|
||||||
$(OBJDIR)/recoil.o: CFLAGS += -Wno-declaration-after-statement -Wno-unused-parameter
|
$(OBJDIR)/recoil.o: CFLAGS += -Wno-declaration-after-statement -Wno-unused-parameter -std=gnu99
|
||||||
endif
|
endif
|
||||||
|
|
||||||
6502.h: 6502.c
|
6502.h: 6502.c
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user