comptut
annotate Makefile @ 5:bebbe71ba949
mostly completed tutor5.txt, without the hundred different looping constructs, which I don't care about
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 16 Mar 2015 01:06:49 +0200 |
parents | |
children |
rev | line source |
---|---|
nuclear@0 | 1 src = $(wildcard src/*.c) |
nuclear@0 | 2 obj = $(src:.c=.o) |
nuclear@0 | 3 bin = test |
nuclear@0 | 4 |
nuclear@0 | 5 CFLAGS = -pedantic -Wall -g |
nuclear@0 | 6 |
nuclear@0 | 7 $(bin): $(obj) |
nuclear@0 | 8 $(CC) -o $@ $(obj) $(LDFLAGS) |
nuclear@0 | 9 |
nuclear@0 | 10 .PHONY: clean |
nuclear@0 | 11 clean: |
nuclear@0 | 12 rm -f $(obj) $(bin) |