deepstone

annotate Makefile @ 25:5ff8ce78059a

first pass at converting the rasterizer to fixed point
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 22 Sep 2013 02:21:30 +0300
parents be61704c4cc8
children 61d97b17cd2b
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@25 4 src/scene.o src/cvec.o src/fixed_point.o \
nuclear@0 5 dosemu/dosemu.o
nuclear@0 6 dep = $(obj:.o=.d)
nuclear@25 7 bin = deepstone
nuclear@0 8
nuclear@0 9 CC = gcc
nuclear@0 10 CFLAGS = -pedantic -Wall -g `pkg-config --cflags sdl` -Isrc -Idosemu
nuclear@25 11 #-DRAST_FLOAT -DDBG_USE_FLOAT
nuclear@25 12 LDFLAGS = `pkg-config --libs sdl` -lm
nuclear@0 13
nuclear@0 14 $(bin): $(obj)
nuclear@0 15 $(CC) -o $@ $(obj) $(LDFLAGS)
nuclear@0 16
nuclear@0 17 -include $(dep)
nuclear@0 18
nuclear@0 19 %.d: %.c
nuclear@0 20 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
nuclear@0 21
nuclear@0 22 .PHONY: clean
nuclear@0 23 clean:
nuclear@0 24 rm -f $(obj) $(bin)
nuclear@5 25
nuclear@5 26 .PHONY: cleandep
nuclear@5 27 cleandep:
nuclear@5 28 rm -f $(dep)