summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 93e8654..9b9f2de 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -9,20 +9,22 @@ unexport C_INCLUDE_PATH # Remove from shell environment; confuses gcc.
export LANG = C
export LC_ALL = C
-TOP_LEVEL_TARGETS = lscp tsttopng gallant.bdf gallant.fnt
+TOP_LEVEL_TARGETS = lscp tsttopng gallant.bdf gallant.fnt srctohex
.PHONY: all
all: $(TOP_LEVEL_TARGETS)
lscp: lscp.o
+srctohex: srctohex.o
+
tsttopng: tsttopng.o
gallant.bdf: gallant.hex
./hex2bdf.pl $^ > $@
gallant.hex: gallant.src
- ./src2hex.pl < $^ > $@
+ ./srctohex < $^ > $@
gallant.fnt: gallant.hex
vtfontcvt -v -o $@ $^
@@ -44,10 +46,11 @@ APP_WARNS += -Wcast-align
APP_WARNS += -Wcast-qual
APP_WARNS += -Wfloat-equal
APP_WARNS += -Wformat=2
+APP_WARNS += -Wno-format-nonliteral
APP_WARNS += -Winline
APP_WARNS += -Wstrict-prototypes
APP_WARNS += -Wmissing-prototypes
-APP_WARNS += -Wunused
+APP_WARNS += -Wno-unused
APP_WARNS += -Wold-style-definition
APP_WARNS += -Wpedantic
APP_WARNS += -Wpointer-arith
@@ -67,6 +70,9 @@ APP_LIBDIRS = -L /usr/local/lib
lscp: lscp.o
$(CC) -o $@ $(APP_LIBDIRS) -luninameslist -lunistring $^
+srctohex: srctohex.o
+ $(CC) -o $@ $^
+
txttopng: txttopng.o
$(CC) -o $@ $(APP_LIBDIRS) -lpng $^