comptut

view 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
line source
1 src = $(wildcard src/*.c)
2 obj = $(src:.c=.o)
3 bin = test
5 CFLAGS = -pedantic -Wall -g
7 $(bin): $(obj)
8 $(CC) -o $@ $(obj) $(LDFLAGS)
10 .PHONY: clean
11 clean:
12 rm -f $(obj) $(bin)