From b9b5f03a321b570dc34f28f0f3d41c38aee869f1 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 25 Feb 2010 15:48:47 +0100 Subject: Tidied up makefile and added clean target --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d8a62ca..8de3dc4 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,13 @@ +HSCFILES = Bindings/GLX.hsc Bindings/GLPng.hsc +HSFILES = $(HSCFILES:%.hsc=%.hs) GLDriver.hs GLX.hs Texture.hs Tank.hs Level.hs Game.hs Render.hs HTanks.hs + all: HTanks -HTanks : Bindings/GLX.hs Bindings/GLPng.hs GLDriver.hs GLX.hs Texture.hs Tank.hs Level.hs Game.hs Render.hs HTanks.hs +HTanks : $(HSFILES) ghc -threaded --make HTanks -lGL -lglpng %.hs : %.hsc hsc2hs $< + +clean : + rm -f HTanks $(HSFILES:%.hs=%.o) $(HSFILES:%.hs=%.hi) $(HSCFILES:%.hsc=%.hs) \ No newline at end of file -- cgit v1.2.3