deepstone

view GNUmakefile @ 31:d0164235bfd1

changed the linux/mac makefile name to GNUmakefile
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 22 Sep 2013 18:37:07 +0300
parents Makefile@11d14f688485
children 1870c4ef8b76
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 $(add_cflags) -DRAST_FLOAT -DDBG_USE_FLOAT
11 LDFLAGS = `pkg-config --libs sdl` -lm
13 ifeq ($(shell uname -s), Darwin)
14 add_cflags = -Dmain=SDL_main
15 endif
17 $(bin): $(obj)
18 $(CC) -o $@ $(obj) $(LDFLAGS)
20 -include $(dep)
22 %.d: %.c
23 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
25 .PHONY: clean
26 clean:
27 rm -f $(obj) $(bin)
29 .PHONY: cleandep
30 cleandep:
31 rm -f $(dep)