Created py-bindings.

This commit is contained in:
jordi.saludes committed 2010-06-10 14:54:18 +00:00
1 parent 4fdd21f127
commit 0aedd7b218
3 files changed
+168

No files matched your search

+22
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