deepstone
annotate GNUmakefile @ 37:e5e01cd2c995
changed the VC project file to use the non-dll versions of msvcrt
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 23 Sep 2013 08:06:04 +0300 |
parents | 1870c4ef8b76 |
children | 17a5107b6fa4 |
rev | line source |
---|---|
nuclear@27 | 1 obj = src/main.o \ |
nuclear@28 | 2 src/mingl.o src/mglrast.o src/mglclip.o src/mglgen.o \ |
nuclear@3 | 3 src/texture.o src/palman.o \ |
nuclear@26 | 4 src/scene.o src/cvec.o src/fixedp.o \ |
nuclear@35 | 5 src/dosemu/dosemu.o |
nuclear@0 | 6 dep = $(obj:.o=.d) |
nuclear@25 | 7 bin = deepstone |
nuclear@0 | 8 |
nuclear@35 | 9 dbg = -g |
nuclear@35 | 10 #opt = -O3 -ffast-math |
nuclear@35 | 11 |
nuclear@0 | 12 CC = gcc |
nuclear@36 | 13 CFLAGS = -pedantic -Wall $(dbg) $(opt) `pkg-config --cflags sdl` -Isrc -Isrc/dosemu $(add_cflags) -DRAST_FLOAT -DDBG_USE_FLOAT |
nuclear@25 | 14 LDFLAGS = `pkg-config --libs sdl` -lm |
nuclear@35 | 15 #LDFLAGS = -Llib64 -Wl,-rpath=./lib64 -lSDL -lm |
nuclear@35 | 16 #LDFLAGS = -m32 -Llib32 -Wl,-rpath=./lib32 -lSDL-1.2 -lm |
nuclear@0 | 17 |
nuclear@31 | 18 ifeq ($(shell uname -s), Darwin) |
nuclear@31 | 19 add_cflags = -Dmain=SDL_main |
nuclear@31 | 20 endif |
nuclear@31 | 21 |
nuclear@0 | 22 $(bin): $(obj) |
nuclear@0 | 23 $(CC) -o $@ $(obj) $(LDFLAGS) |
nuclear@0 | 24 |
nuclear@0 | 25 -include $(dep) |
nuclear@0 | 26 |
nuclear@0 | 27 %.d: %.c |
nuclear@0 | 28 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@ |
nuclear@0 | 29 |
nuclear@0 | 30 .PHONY: clean |
nuclear@0 | 31 clean: |
nuclear@0 | 32 rm -f $(obj) $(bin) |
nuclear@5 | 33 |
nuclear@5 | 34 .PHONY: cleandep |
nuclear@5 | 35 cleandep: |
nuclear@5 | 36 rm -f $(dep) |