deepstone

diff 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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile	Mon Nov 21 06:14:01 2011 +0200
     1.3 @@ -0,0 +1,21 @@
     1.4 +obj = src/test.o \
     1.5 +	  src/mingl.o src/mglrast.o src/mglgen.o \
     1.6 +	  dosemu/dosemu.o
     1.7 +dep = $(obj:.o=.d)
     1.8 +bin = test
     1.9 +
    1.10 +CC = gcc
    1.11 +CFLAGS = -pedantic -Wall -g `pkg-config --cflags sdl` -Isrc -Idosemu
    1.12 +LDFLAGS = `pkg-config --libs sdl`
    1.13 +
    1.14 +$(bin): $(obj)
    1.15 +	$(CC) -o $@ $(obj) $(LDFLAGS)
    1.16 +
    1.17 +-include $(dep)
    1.18 +
    1.19 +%.d: %.c
    1.20 +	@$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
    1.21 +
    1.22 +.PHONY: clean
    1.23 +clean:
    1.24 +	rm -f $(obj) $(bin)