comptut

view Makefile @ 3:f167a743f348

tutor3.txt completed minus the multi-char tokens bit
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 15 Mar 2015 13:48:04 +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)