Tidied up makefile and added clean target
This commit is contained in:
parent
bbed580653
commit
b9b5f03a32
1 changed files with 7 additions and 1 deletions
8
Makefile
8
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)
|
Reference in a new issue