# Copyright (C) 2007  Marcel Unbehaun <frostworks@gmx.de>
# Copyright (C) 2007  Miriam Ruiz <little_miry@yahoo.es>
# Distributed under the same license as the game. See debian/copyright.

Index: tatan-1.0/Makefile
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ tatan-1.0/Makefile	2007-09-05 11:50:48.000000000 +0000
@@ -0,0 +1,23 @@
+DC=gdmd-v1
+DFLAGS=-g -O -d -release
+DOUT=-of
+
+DSRC=$(shell find src/ -name "*.d")
+SOURCES=$(DSRC) import/SDL_video.d import/SDL_mouse.d import/hell2.d import/SDL_mixer.d
+OBJS=$(SOURCES:.d=.o)
+EXE=tatan
+
+all: $(EXE)
+
+$(EXE): $(OBJS)
+	gdc-v1 -o $@ $(OBJS) -lSDL -lGL -lGLU -lSDL_mixer
+
+$(OBJS): %.o: %.d
+	$(DC) -c $(DOUT)$@ $(DFLAGS) -Iimport -Isrc $<
+
+clean:
+	$(RM) -f src/*.o
+	$(RM) -f src/br/*.o
+	$(RM) -f src/util/*.o
+	$(RM) -f src/util/sdl/*.o
+	$(RM) -f import/*.o
