summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2024-07-16 11:39:09 +0200
committerjaseg <git@jaseg.de>2024-07-16 11:39:09 +0200
commit621b604edd146343c5d43fe5d889287edb4531a5 (patch)
tree4b6ed7566962bb68084a4b2fc54e9eaa2e0f10a8 /Makefile
parent1ea54a14d5705cd0bd2959acbe77941bff484661 (diff)
downloadlolcat-621b604edd146343c5d43fe5d889287edb4531a5.tar.gz
lolcat-621b604edd146343c5d43fe5d889287edb4531a5.tar.bz2
lolcat-621b604edd146343c5d43fe5d889287edb4531a5.zip
Add CPPFLAGS and LDFLAGS to compiler invocation
Fixes #57
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9ce889d..c89fcf8 100644
--- a/Makefile
+++ b/Makefile
@@ -16,10 +16,10 @@ xterm256lut.h: xterm256lut_gen.py
python $< > $@
lolcat: lolcat.c xterm256lut.h
- $(CC) $(CFLAGS) -o $@ $< $(LIBS)
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
censor: censor.c
- $(CC) $(CFLAGS) -o $@ $< $(LIBS)
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
install: lolcat censor
install lolcat $(DESTDIR)/lolcat