From 36977b0022dede80950f94d98e92d9ba8e71f1c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 28 Nov 2013 17:00:13 +0100 Subject: update Makefile skeleton --- skeletons/Makefile.erb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/skeletons/Makefile.erb b/skeletons/Makefile.erb index 6db30f9..ac7e0a6 100644 --- a/skeletons/Makefile.erb +++ b/skeletons/Makefile.erb @@ -6,11 +6,13 @@ OBJS = A.o test.o B.o CFLAGS = -D__TZURTCH__ BIN = binary +.PHONY: clean + .c.o: - $(CC) -c -Wall -I. $(CFLAGS) -D$(STD) $< + $(CC) -c -Wall -I. $(CFLAGS) -D$(STD) -o $@ $< all: $(OBJS) - $(CC) $(OBJS) -o $(BIN) + $(CC) $(OBJS) -o $@ clean: rm -f *~ *.o core $(BIN) -- cgit v1.1-2-g2b99