dos3d
view firstp/Makefile @ 15:4a0e9ab12ad0
separated vec2/vec3/vec4 in a different header file
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 29 Nov 2011 07:23:12 +0200 |
parents | |
children |
line source
1 mgldir = ../src
2 demudir = ../dosemu
4 obj = firstp.o \
5 $(mgldir)/mingl.o $(mgldir)/mglrast.o $(mgldir)/mglgen.o \
6 $(mgldir)/texture.o $(mgldir)/palman.o \
7 $(mgldir)/cvec.o $(mgldir)/scene.o \
8 $(demudir)/dosemu.o
9 dep = $(obj:.o=.d)
10 bin = firstp
12 CC = gcc
13 CFLAGS = -pedantic -Wall -g `pkg-config --cflags sdl` -I$(mgldir) -I$(demudir)
14 LDFLAGS = `pkg-config --libs sdl`
16 $(bin): $(obj)
17 $(CC) -o $@ $(obj) $(LDFLAGS)
19 -include $(dep)
21 %.d: %.c
22 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
24 .PHONY: clean
25 clean:
26 rm -f $(obj) $(bin)
28 .PHONY: cleandep
29 cleandep:
30 rm -f $(dep)