tbftss/makefile.pandora

49 lines
1.2 KiB
Plaintext
Raw Normal View History

2016-03-03 08:54:49 +01:00
PROG = tbftss
CC = gcc
BIN_DIR = /mnt/utmp/tbftss/bin
DATA_DIR = /mnt/utmp/tbftss/data
LOCALE_DIR = /usr/share/locale
SEARCHPATH += src/plat/unix
2018-04-29 17:44:06 +02:00
_OBJS += unixInit.o
2016-03-03 08:54:49 +01:00
include common.mk
2016-03-03 19:03:07 +01:00
CXXFLAGS += `sdl2-config --cflags` -DVERSION=$(VERSION) -DREVISION=$(REVISION) -DDATA_DIR=\"$(DATA_DIR)\" -DLOCALE_DIR=\"$(LOCALE_DIR)\" -DFIXED_RESOLUTION=1
CXXFLAGS += -ansi
2016-03-03 08:54:49 +01:00
CXXFLAGS += -g -lefence -flto -flto-odr-type-merging
2017-08-26 14:00:51 +02:00
LDFLAGS += `sdl2-config --libs` -lSDL2_mixer -lSDL2_image -lSDL2_ttf -lm
2016-03-03 08:54:49 +01:00
DIST_FILES = data gfx manual music sound src LICENSE makefile* common.mk README.md CHANGELOG
# linking the program.
$(PROG): $(OBJS)
2017-08-26 14:00:51 +02:00
$(CC) -o $@ $(OBJS) $(LDFLAGS)
2016-03-03 08:54:49 +01:00
install:
cp $(PROG) $(BIN_DIR)
mkdir -p $(DATA_DIR)
cp -r data $(DATA_DIR)
cp -r gfx $(DATA_DIR)
cp -r manual $(DATA_DIR)
cp -r music $(DATA_DIR)
cp -r sound $(DATA_DIR)
@for f in $(LOCALE_MO); do \
lang=`echo $$f | sed -e 's/^locale\///;s/\.mo$$//'`; \
mkdir -p $(LOCALE_DIR)/$$lang/LC_MESSAGES; \
cp -v $$f $(LOCALE_DIR)/$$lang/LC_MESSAGES/$(PROG).mo; \
done
uninstall:
$(RM) $(BIN_DIR)/$(PROG)
$(RM) -rf $(DATA_DIR)
@for f in $(LOCALE_MO); do \
lang=`echo $$f | sed -e 's/^locale\///;s/\.mo$$//'`; \
$(RM) -v $(LOCALE_DIR)/$$lang/LC_MESSAGES/$(PROG).mo; \
done
.PHONY: dist