newpoly

view Makefile @ 0:224206bc554a

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 15 Dec 2017 09:24:39 +0200
parents
children
line source
1 src = $(wildcard src/*.c)
2 obj = $(src:.c=.o)
3 dep = $(obj:.o=.d)
4 bin = test
6 CFLAGS = -pedantic -Wall -g `sdl-config --cflags`
7 LDFLAGS = `sdl-config --libs`
9 $(bin): $(obj)
10 $(CC) -o $@ $(obj) $(LDFLAGS)
12 -include $(dep)
14 %.d: %.c
15 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
17 .PHONY: clean
18 clean:
19 rm -f $(obj) $(bin)
21 .PHONY: cleandep
22 cleandep:
23 rm -f $(dep)