summaryrefslogtreecommitdiff
path: root/contrib/py-bindings/Makefile
diff options
context:
space:
mode:
authorjordi.saludes <jordi.saludes@upc.edu>2010-07-15 08:15:41 +0000
committerjordi.saludes <jordi.saludes@upc.edu>2010-07-15 08:15:41 +0000
commit9608af8423cbb924141d976e8d280aa25319f85c (patch)
treecd987c59d6734e4e9c10734386265c117ae02017 /contrib/py-bindings/Makefile
parentb128872e2d3af3fcf83e4cc4b7d56799e40904cf (diff)
New interface to gf based in Storable.
Diffstat (limited to 'contrib/py-bindings/Makefile')
-rw-r--r--contrib/py-bindings/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/contrib/py-bindings/Makefile b/contrib/py-bindings/Makefile
index 707c6925e..51380c06c 100644
--- a/contrib/py-bindings/Makefile
+++ b/contrib/py-bindings/Makefile
@@ -1,5 +1,5 @@
src=../../src
-import=-i$src/runtime/haskell:$src/compiler
+import=-i$(src)/runtime/haskell:$(src)/compiler
cbind=../c-bindings
pythoninc=/usr/include/python2.5
debug= #-optc '-DDEBUG=1'
@@ -22,3 +22,11 @@ superclean:
make clean
rm -f PGFFFI.hs pgf.h Query.pgf
rm -f gf.so
+
+PyGF.hs: PyGF.hsc
+ hsc2hs -I$(pythoninc) $<
+
+mtest: PyGF.hs mtest.c
+ ghc $(import) --make -fglasgow-exts -O2 -no-hs-main -c $<
+ ghc -O2 --make -fglasgow-exts -no-hs-main \
+ -optc '-DMODULE=PyGF' -optc '-I$(pythoninc)' -o $@ $^ \ No newline at end of file