dos3d

view Makefile @ 23:f2c2e45e8edd

reverted the mistaken push from the deepstone branch
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 21 Sep 2013 18:22:11 +0300
parents c8ffdbc6139e
children 698c4d07702d
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)