Migrated from Make to Cabal

This commit is contained in:
Matthias Schiffer 2010-03-09 02:00:21 +01:00
parent e03de6bfe6
commit d3e50ab004
5 changed files with 28 additions and 26 deletions

7
.gitignore vendored
View file

@ -1,7 +1,2 @@
*.hi
*.o
*~ *~
*.chs.h dist
Bindings/*.hs
HTanks

View file

@ -1,13 +0,0 @@
HSCFILES = Bindings/GLX.hsc Bindings/GLPng.hsc
HSFILES = $(HSCFILES:%.hsc=%.hs) GLDriver.hs GLX.hs Texture.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)

3
Setup.lhs Normal file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env runhaskell
> import Distribution.Simple
> main = defaultMain

17
htanks.cabal Normal file
View file

@ -0,0 +1,17 @@
name: htanks
version: 0.0
synopsis: <Project description>
description: <Project description>
category: Game
license: GPL-3
license-file: LICENSE
author: Matthias Schiffer
maintainer: matthias@gamezock.de
build-depends: base >= 4, syb, containers, mtl, time, X11, OpenGL
build-type: Simple
executable: HTanks
main-is: HTanks.hs
other-modules: Bindings.GLX, Bindings.GLPng
ghc-options: -threaded
extra-libraries: glpng