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