comptut

view Makefile @ 0:10f07b308aab

tutor2.txt completed
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 15 Mar 2015 05:47:44 +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)