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 += -Wall -Wempty-body -ansi -pedantic -Werror -Wstrict-prototypes -Werror=uninitialized -Warray-bounds CXXFLAGS += -g LDFLAGS += `sdl2-config --libs` -lSDL2_mixer -lSDL2_image -lSDL2_ttf -lm # linking the program. $(PROG): $(OBJS) $(CC) -o $@ $(OBJS) $(LDFLAGS)