summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 316c9b8..9ce889d 100644
--- a/Makefile
+++ b/Makefile
@@ -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