diff options
| author | jordi.saludes <jordi.saludes@upc.edu> | 2010-06-10 14:54:18 +0000 |
|---|---|---|
| committer | jordi.saludes <jordi.saludes@upc.edu> | 2010-06-10 14:54:18 +0000 |
| commit | 0aedd7b2181c507db489ff2a6ec0511df06f8144 (patch) | |
| tree | 4cf307c8c3e5206077dca4682bb8d4981c64c791 /contrib/py-bindings/Makefile | |
| parent | 4fdd21f1273e75b84e87c49b95b02e9fc149b5c0 (diff) | |
Created py-bindings.
Diffstat (limited to 'contrib/py-bindings/Makefile')
| -rw-r--r-- | contrib/py-bindings/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/py-bindings/Makefile b/contrib/py-bindings/Makefile new file mode 100644 index 000000000..fafbdbb2b --- /dev/null +++ b/contrib/py-bindings/Makefile @@ -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
\ No newline at end of file |
