2015-12-05 09:16:17 +01:00
|
|
|
PROG = tbftss.exe
|
2015-11-24 23:46:52 +01:00
|
|
|
CC = x86_64-w64-mingw32-gcc
|
2015-12-05 09:16:17 +01:00
|
|
|
SDLC = /usr/x86_64-w64-mingw32/bin/sdl2-config
|
|
|
|
LIBPATH = /usr/x86_64-w64-mingw32/lib
|
2016-02-27 13:14:05 +01:00
|
|
|
LOCALE_DIR = locale
|
2015-11-24 23:46:52 +01:00
|
|
|
|
|
|
|
SEARCHPATH += src/plat/win32
|
2018-04-29 17:44:06 +02:00
|
|
|
_OBJS += win32Init.o
|
2015-11-23 09:42:39 +01:00
|
|
|
|
2019-10-22 19:48:11 +02:00
|
|
|
NPROCS = $(shell grep -c 'processor' /proc/cpuinfo)
|
|
|
|
MAKEFLAGS += -j$(NPROCS)
|
|
|
|
|
2016-02-27 13:14:05 +01:00
|
|
|
CXXFLAGS += `$(SDLC) --cflags` -DVERSION=$(VERSION) -DREVISION=$(REVISION) -DDATA_DIR=\"$(DATA_DIR)\" -DLOCALE_DIR=\"$(LOCALE_DIR)\"
|
2019-11-22 08:30:03 +01:00
|
|
|
CXXFLAGS += -Wall -Wempty-body -ansi -pedantic -Werror -Wstrict-prototypes -Werror=maybe-uninitialized -Warray-bounds
|
2015-12-05 09:16:17 +01:00
|
|
|
|
2017-08-26 14:00:51 +02:00
|
|
|
LDFLAGS += `$(SDLC) --libs` -lm -lSDL2_mixer -lSDL2_image -lSDL2_ttf -lSDL2main
|
2015-12-05 09:16:17 +01:00
|
|
|
|
2015-11-23 09:42:39 +01:00
|
|
|
include common.mk
|
2015-12-05 09:16:17 +01:00
|
|
|
|
|
|
|
# linking the program.
|
|
|
|
$(PROG): $(OBJS)
|
2017-08-26 14:00:51 +02:00
|
|
|
$(CC) -o $@ $(OBJS) $(LDFLAGS) -L$(LIBPATH)
|