1
0
forked from GitHub/gf-core

New interface to gf based in Storable.

This commit is contained in:
jordi.saludes
2010-07-15 08:15:41 +00:00
parent 3a48cefc3a
commit 6ec8d1bd4f
4 changed files with 254 additions and 1 deletions

View File

@@ -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 $@ $^