dos3d

annotate Makefile @ 4:c3e0bccd673e

added texture mapping
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 21 Nov 2011 11:51:23 +0200
parents 0b7f840afe4a
children c8ffdbc6139e
rev   line source
nuclear@0 1 obj = src/test.o \
nuclear@0 2 src/mingl.o src/mglrast.o src/mglgen.o \
nuclear@3 3 src/texture.o src/palman.o \
nuclear@0 4 dosemu/dosemu.o
nuclear@0 5 dep = $(obj:.o=.d)
nuclear@0 6 bin = test
nuclear@0 7
nuclear@0 8 CC = gcc
nuclear@0 9 CFLAGS = -pedantic -Wall -g `pkg-config --cflags sdl` -Isrc -Idosemu
nuclear@0 10 LDFLAGS = `pkg-config --libs sdl`
nuclear@0 11
nuclear@0 12 $(bin): $(obj)
nuclear@0 13 $(CC) -o $@ $(obj) $(LDFLAGS)
nuclear@0 14
nuclear@0 15 -include $(dep)
nuclear@0 16
nuclear@0 17 %.d: %.c
nuclear@0 18 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
nuclear@0 19
nuclear@0 20 .PHONY: clean
nuclear@0 21 clean:
nuclear@0 22 rm -f $(obj) $(bin)