deepstone
view Makefile @ 23:4ad71b558ab2
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 21 Sep 2013 19:09:03 +0300 |
parents | c8ffdbc6139e |
children | 5ff8ce78059a |
line source
1 obj = src/test.o \
2 src/mingl.o src/mglrast.o src/mglgen.o \
3 src/texture.o src/palman.o \
4 src/scene.o src/cvec.o \
5 dosemu/dosemu.o
6 dep = $(obj:.o=.d)
7 bin = test
9 CC = gcc
10 CFLAGS = -pedantic -Wall -g `pkg-config --cflags sdl` -Isrc -Idosemu
11 LDFLAGS = `pkg-config --libs sdl`
13 $(bin): $(obj)
14 $(CC) -o $@ $(obj) $(LDFLAGS)
16 -include $(dep)
18 %.d: %.c
19 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
21 .PHONY: clean
22 clean:
23 rm -f $(obj) $(bin)
25 .PHONY: cleandep
26 cleandep:
27 rm -f $(dep)