dos3d
annotate Makefile @ 6:7f12c7d084d5
fixed a small error in palman
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 21 Nov 2011 12:11:41 +0200 |
parents | 0e781cc43178 |
children | be61704c4cc8 |
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@0 | 4 dosemu/dosemu.o |
nuclear@0 | 5 dep = $(obj:.o=.d) |
nuclear@0 | 6 bin = test |
nuclear@0 | 7 |
nuclear@0 | 8 CC = gcc |
nuclear@0 | 9 CFLAGS = -pedantic -Wall -g `pkg-config --cflags sdl` -Isrc -Idosemu |
nuclear@0 | 10 LDFLAGS = `pkg-config --libs sdl` |
nuclear@0 | 11 |
nuclear@0 | 12 $(bin): $(obj) |
nuclear@0 | 13 $(CC) -o $@ $(obj) $(LDFLAGS) |
nuclear@0 | 14 |
nuclear@0 | 15 -include $(dep) |
nuclear@0 | 16 |
nuclear@0 | 17 %.d: %.c |
nuclear@0 | 18 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@ |
nuclear@0 | 19 |
nuclear@0 | 20 .PHONY: clean |
nuclear@0 | 21 clean: |
nuclear@0 | 22 rm -f $(obj) $(bin) |
nuclear@5 | 23 |
nuclear@5 | 24 .PHONY: cleandep |
nuclear@5 | 25 cleandep: |
nuclear@5 | 26 rm -f $(dep) |