22 lines
520 B
Plaintext
22 lines
520 B
Plaintext
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)\"
|
|
CXXFLAGS += -ansi -pedantic
|
|
CXXFLAGS += -g
|
|
|
|
LDFLAGS += `sdl2-config --libs` -lSDL2_mixer -lSDL2_image -lSDL2_ttf -lm
|
|
|
|
# linking the program.
|
|
$(PROG): $(OBJS)
|
|
$(CC) -o $@ $(OBJS) $(LDFLAGS)
|