summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: a396650c835982841b80e388b227761017adcad3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
HSCFILES = Bindings/GLX.hsc Bindings/GLPng.hsc
HSFILES = $(HSCFILES:%.hsc=%.hs) GLDriver.hs GLX.hs Texture.hs Tank.hs Player.hs DefaultPlayer.hs CPUPlayer.hs Level.hs Game.hs Render.hs HTanks.hs

all: HTanks

HTanks : $(HSFILES)
	ghc -threaded --make HTanks -lGL -lglpng

%.hs : %.hsc
	hsc2hs $<

clean :
	rm -f HTanks $(HSFILES:%.hs=%.o) $(HSFILES:%.hs=%.hi) $(HSCFILES:%.hsc=%.hs)