deepstone

view firstp/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
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)