From b0b86a30e09c91118e8e87a4fcbfbd94f53150ca Mon Sep 17 00:00:00 2001 From: Jens Schweikhardt Date: Wed, 20 Aug 2025 19:41:47 +0200 Subject: Complete Specials. Implement srctohex in C. --- GNUmakefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'GNUmakefile') 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 $^ -- cgit v1.2.3