dos3d
diff firstp/Makefile @ 14:be61704c4cc8
added initial firstp
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 29 Nov 2011 07:22:49 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/firstp/Makefile Tue Nov 29 07:22:49 2011 +0200 1.3 @@ -0,0 +1,30 @@ 1.4 +mgldir = ../src 1.5 +demudir = ../dosemu 1.6 + 1.7 +obj = firstp.o \ 1.8 + $(mgldir)/mingl.o $(mgldir)/mglrast.o $(mgldir)/mglgen.o \ 1.9 + $(mgldir)/texture.o $(mgldir)/palman.o \ 1.10 + $(mgldir)/cvec.o $(mgldir)/scene.o \ 1.11 + $(demudir)/dosemu.o 1.12 +dep = $(obj:.o=.d) 1.13 +bin = firstp 1.14 + 1.15 +CC = gcc 1.16 +CFLAGS = -pedantic -Wall -g `pkg-config --cflags sdl` -I$(mgldir) -I$(demudir) 1.17 +LDFLAGS = `pkg-config --libs sdl` 1.18 + 1.19 +$(bin): $(obj) 1.20 + $(CC) -o $@ $(obj) $(LDFLAGS) 1.21 + 1.22 +-include $(dep) 1.23 + 1.24 +%.d: %.c 1.25 + @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@ 1.26 + 1.27 +.PHONY: clean 1.28 +clean: 1.29 + rm -f $(obj) $(bin) 1.30 + 1.31 +.PHONY: cleandep 1.32 +cleandep: 1.33 + rm -f $(dep)