deepstone

view Makefile @ 29:5fa2983bfe61

watcom makefile changes
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 22 Sep 2013 18:09:44 +0300
parents dcfe615c4c5f
children
line source
1 obj = src/main.o \
2 src/mingl.o src/mglrast.o src/mglclip.o src/mglgen.o \
3 src/texture.o src/palman.o \
4 src/scene.o src/cvec.o src/fixedp.o \
5 dosemu/dosemu.o
6 dep = $(obj:.o=.d)
7 bin = deepstone
9 CC = gcc
10 CFLAGS = -pedantic -Wall -g `pkg-config --cflags sdl` -Isrc -Idosemu -DRAST_FLOAT -DDBG_USE_FLOAT
11 LDFLAGS = `pkg-config --libs sdl` -lm
13 $(bin): $(obj)
14 $(CC) -o $@ $(obj) $(LDFLAGS)
16 -include $(dep)
18 %.d: %.c
19 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
21 .PHONY: clean
22 clean:
23 rm -f $(obj) $(bin)
25 .PHONY: cleandep
26 cleandep:
27 rm -f $(dep)