diff options
Diffstat (limited to 'skeletons/Makefile.erb')
-rw-r--r-- | skeletons/Makefile.erb | 6 |
1 files 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) |