You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
350 B

CC = gcc
#CFLAGS = -O2 -Wall -W -g
CFLAGS = -O0 -Wall -W -g
FONTDEFS = $(wildcard *.txt)
FONTS = $(FONTDEFS:.txt=.h) $(FONTDEFS:.txt=_r.h)
all: fontgen $(FONTS)
%.h: %.txt fontgen
./fontgen $(@:.h=) < $^ > $@
%_r.h: %.txt fontgen
./fontgen $(@:.h=) --rotate < $^ > $@
fontgen: fontgen.c
$(CC) $(CFLAGS) $< -o $@
clean:
-rm *.o fontgen