deepstone
annotate Makefile @ 2:8c9a63a902d5
added palman to the dos makefile
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 21 Nov 2011 10:15:37 +0200 |
parents | f04884489bad |
children | 0e781cc43178 |
rev | line source |
---|---|
nuclear@0 | 1 obj = src/test.o \ |
nuclear@0 | 2 src/mingl.o src/mglrast.o src/mglgen.o \ |
nuclear@1 | 3 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) |