deepstone
view firstp/Makefile @ 24:ad6b185723cd
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 21 Sep 2013 20:18:28 +0300 |
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)