it feels still a bit hackish...
ghc --make $(DEBUGFLAGS) $(GHC_OPT) Mate.hs $(B_DEBUG)/ffi/trap.o -o $@ $(GHC_LD) -outputdir $(B_DEBUG)
clean:
- rm -rf $(BUILD) mate mate.dbg tags ffi/native.o tests/*.class Mate/*_stub.* \
+ rm -rf $(BUILD) mate mate.static mate.dbg tags ffi/native.o \
+ tests/*.class Mate/*_stub.* \
jmate/lang/*.class jmate/io/*.class java/io/*.class \
java/lang/{Integer,Character,String,System}.class
+++ /dev/null
-#!/usr/bin/runhaskell
-> module Main where
-> import Distribution.Simple
-> main :: IO ()
-> main = defaultMain
-
+++ /dev/null
-name: mate-common
-version: 0.0.1
-cabal-version: -any
-build-type: Simple
-license: GPL-2
-license-file: ""
-copyright:
-maintainer: lewurm@gmail.com, haraldsteinlechner@gmail.com
-build-depends: base -any, bytestring -any
-stability: none
-homepage:
-package-url:
-bug-reports:
-synopsis:
-description: Provides mostly FFI based utility functions for Mate, the glorious JVM written in Haskell
-category:
-author: Bernhard Urban, Harald Steinlechner
-tested-with:
-data-files:
-data-dir: ""
-extra-source-files:
-extra-tmp-files:
-exposed-modules: Signals
-exposed: True
-buildable: True
-build-tools:
-cpp-options:
-cc-options:
-ld-options:
-pkgconfig-depends:
-frameworks:
-c-sources: trap.c native.c
-default-language:
-other-languages:
-default-extensions:
-other-extensions:
-extensions:
-extra-libraries:
-extra-lib-dirs:
-includes:
-install-includes:
-include-dirs:
-hs-source-dirs: src
-other-modules:
-ghc-prof-options:
-ghc-shared-options:
-ghc-options:
-hugs-options:
-nhc98-options:
-jhc-options:
-
+++ /dev/null
------------------------------------------------------------------------------
---
--- Module : Signals
--- Copyright :
--- License : BSD
---
--- Maintainer : lewurm@gmail.com, haraldsteinlechner@gmail.com
--- Stability : none
--- Portability :
---
--- |
---
------------------------------------------------------------------------------
-
-module Signals (
-
-) where
-
-
-
name: mate
-version: 0.0.1
+version: 0.0.2
cabal-version: -any
build-type: Simple
license: GPL-3
copyright:
maintainer: lewurm@gmail.com, haraldsteinlechner@gmail.com
build-depends: base -any,
- mate-common -any,
- hs-java ==0.3.1,
+ hs-java ==0.3.3,
bytestring -any,
harpy == 0.5.0.0,
heap -any,
containers -any,
+ directory -any,
binary -any,
plugins ==1.5.*,
MissingH ==1.1.*,
ld-options:
pkgconfig-depends:
frameworks:
-c-sources:
+c-sources: ffi/trap.c ffi/native.c
default-language:
other-languages:
default-extensions:
extra-lib-dirs:
includes:
install-includes:
-include-dirs: .
+include-dirs: "."
hs-source-dirs:
other-modules:
ghc-prof-options:
hugs-options:
nhc98-options:
jhc-options:
+
+-- some todos
+-- o atm it's building twice. why?
+-- o although `cabal install' copies the binary, the java boot class files arn't copied.
+-- o fill it with more information (e.g. stability)