2018-04-30 19:16:52 +02:00
|
|
|
PROG = tbftss
|
|
|
|
CC = gcc
|
|
|
|
PREFIX ?= /usr
|
|
|
|
BIN_DIR ?= $(PREFIX)/bin
|
|
|
|
DATA_DIR ?= /opt/$(PROG)
|
|
|
|
LOCALE_DIR = $(PREFIX)/share/locale
|
|
|
|
|
|
|
|
SEARCHPATH += src/plat/unix
|
|
|
|
_OBJS += unixInit.o
|
|
|
|
|
|
|
|
include common.mk
|
|
|
|
|
|
|
|
CXXFLAGS += `sdl2-config --cflags` -DVERSION=$(VERSION) -DREVISION=$(REVISION) -DDATA_DIR=\"$(DATA_DIR)\" -DLOCALE_DIR=\"$(LOCALE_DIR)\"
|
2018-07-07 15:47:48 +02:00
|
|
|
CXXFLAGS += -ansi -pedantic
|
2018-04-30 19:16:52 +02:00
|
|
|
CXXFLAGS += -g
|
|
|
|
|
|
|
|
LDFLAGS += `sdl2-config --libs` -lSDL2_mixer -lSDL2_image -lSDL2_ttf -lm
|
|
|
|
|
|
|
|
# linking the program.
|
|
|
|
$(PROG): $(OBJS)
|
|
|
|
$(CC) -o $@ $(OBJS) $(LDFLAGS)
|