2018-03-23 19:38:12 +01:00
|
|
|
PROG = blobWarsAttrition.exe
|
|
|
|
CC = x86_64-w64-mingw32-gcc
|
|
|
|
SDLC = /usr/x86_64-w64-mingw32/bin/sdl2-config
|
|
|
|
LIBPATH = /usr/x86_64-w64-mingw32/lib
|
|
|
|
LOCALE_DIR = locale
|
|
|
|
|
|
|
|
SEARCHPATH += src/plat/win32
|
2018-03-24 17:58:04 +01:00
|
|
|
_OBJS += win32Init.o
|
|
|
|
|
|
|
|
include common.mk
|
2018-03-23 19:38:12 +01:00
|
|
|
|
|
|
|
CXXFLAGS += `$(SDLC) --cflags` -DVERSION=$(VERSION) -DREVISION=$(REVISION) -DDATA_DIR=\"$(DATA_DIR)\" -DLOCALE_DIR=\"$(LOCALE_DIR)\"
|
|
|
|
CXXFLAGS += -Wall -Wempty-body -ansi -pedantic -Werror -Wstrict-prototypes -Werror=maybe-uninitialized -Warray-bounds
|
|
|
|
CXXFLAGS += -g -lefence
|
|
|
|
CXXFLAGS += -fms-extensions -std=gnu11
|
|
|
|
|
2018-03-24 17:58:04 +01:00
|
|
|
LDFLAGS += `$(SDLC) --libs` -lm -lSDL2_mixer -lSDL2_image -lSDL2_ttf -lSDL2main -lpng -lz
|
2018-03-23 19:38:12 +01:00
|
|
|
|
|
|
|
# linking the program.
|
|
|
|
$(PROG): $(OBJS)
|
|
|
|
$(CC) -o $@ $(OBJS) $(LDFLAGS) -L$(LIBPATH)
|