From 46880ecfd7592efdfc7af09a594fd4e01e8388c8 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 5 Oct 2013 22:33:21 -0700 Subject: The correct SUFFIXES trick. --- Makefile | 4 ++-- 1 file 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 -- cgit v1.2.3