deepstone

view Makefile @ 16:cb676ff89e69

added missing cvec and scene files
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 29 Nov 2011 07:23:57 +0200
parents c8ffdbc6139e
children 5ff8ce78059a
line source
1 obj = src/test.o \
2 src/mingl.o src/mglrast.o src/mglgen.o \
3 src/texture.o src/palman.o \
4 src/scene.o src/cvec.o \
5 dosemu/dosemu.o
6 dep = $(obj:.o=.d)
7 bin = test
9 CC = gcc
10 CFLAGS = -pedantic -Wall -g `pkg-config --cflags sdl` -Isrc -Idosemu
11 LDFLAGS = `pkg-config --libs sdl`
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)