1
0
forked from GitHub/gf-core

Created py-bindings.

This commit is contained in:
jordi.saludes
2010-06-10 14:54:18 +00:00
parent b57dda5d94
commit 4a1f2cf626
3 changed files with 168 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
src=../../src
import=-i$src/runtime/haskell:$src/compiler
cbind=../c-bindings
pythoninc=/usr/include/python2.5
conf:
ln -s $(cbind)/PGFFFI.hs
ln -s $(cbind)/pgf.h
Build: gf.so
gf.so: PGFFFI.hs gfmodule.c
gf --make ../../examples/tutorial/embedded/QueryEng.gf
ghc $(import) --make -fglasgow-exts -O2 -no-hs-main -c $<
ghc -O2 --make -fglasgow-exts -no-hs-main -optl '-shared' \
-optc '-DMODULE=PGFFFI' -optc '-I$(pythoninc)' -o $@ $^
clean:
rm -f *.hi *.o
rm -f *_stub.*
superclean:
rm -f PGFFFI.hs pgf.h Query.pgf
rm -f gf.so