diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -1,7 +1,5 @@ CC ?= gcc -LOLCAT_SRC ?= lolcat.c -CENSOR_SRC ?= censor.c CFLAGS ?= -std=c11 -Wall -Wextra -O3 -Wno-sign-compare LIBS := -lm @@ -14,11 +12,14 @@ debug: all .PHONY: install clean debug -lolcat: $(LOLCAT_SRC) - $(CC) $(CFLAGS) -o $@ $^ $(LIBS) +xterm256lut.h: xterm256lut_gen.py + python $< > $@ -censor: $(CENSOR_SRC) - $(CC) $(CFLAGS) -o $@ $^ $(LIBS) +lolcat: lolcat.c xterm256lut.h + $(CC) $(CFLAGS) -o $@ $< $(LIBS) + +censor: censor.c + $(CC) $(CFLAGS) -o $@ $< $(LIBS) install: lolcat censor install lolcat $(DESTDIR)/lolcat |