deepstone

annotate Makefile @ 0:f04884489bad

dos3d initial import
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 21 Nov 2011 06:14:01 +0200
parents
children 0b7f840afe4a
rev   line source
nuclear@0 1 obj = src/test.o \
nuclear@0 2 src/mingl.o src/mglrast.o src/mglgen.o \
nuclear@0 3 dosemu/dosemu.o
nuclear@0 4 dep = $(obj:.o=.d)
nuclear@0 5 bin = test
nuclear@0 6
nuclear@0 7 CC = gcc
nuclear@0 8 CFLAGS = -pedantic -Wall -g `pkg-config --cflags sdl` -Isrc -Idosemu
nuclear@0 9 LDFLAGS = `pkg-config --libs sdl`
nuclear@0 10
nuclear@0 11 $(bin): $(obj)
nuclear@0 12 $(CC) -o $@ $(obj) $(LDFLAGS)
nuclear@0 13
nuclear@0 14 -include $(dep)
nuclear@0 15
nuclear@0 16 %.d: %.c
nuclear@0 17 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
nuclear@0 18
nuclear@0 19 .PHONY: clean
nuclear@0 20 clean:
nuclear@0 21 rm -f $(obj) $(bin)