summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2013-10-05 22:33:21 -0700
committerKaz Kylheku <kaz@kylheku.com>2013-10-05 22:33:21 -0700
commit46880ecfd7592efdfc7af09a594fd4e01e8388c8 (patch)
treeb02e05525dbd62693b7fe90292271cca911e496f
parent205cd4b3427c5569af071f08d6078a8f021c6f82 (diff)
downloadhc-master.tar.gz
hc-master.tar.bz2
hc-master.zip
The correct SUFFIXES trick.HEADmaster
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f9e1cc5..2a599d0 100644
--- a/Makefile
+++ b/Makefile
@@ -2,14 +2,14 @@ CFLAGS := -g -Wall -W -ansi -D_XOPEN_SOURCE=500 $(EXTRA_CFLAGS)
.SUFFIXES:
+.SUFFIXES: .c .o
+
hc: lex.yy.o hc.o
$(CC) $(CFLAGS) $^ -o $@ -lfl
lex.yy.o: lex.yy.c hc.h
- $(CC) $(CFLAGS) $< -c
hc.o: hc.c hc.h wl.h
- $(CC) $(CFLAGS) $< -c
lex.yy.c: hc.l hc.h
$(LEX) -i -8 hc.l