diff options
| author | jordi.saludes <jordi.saludes@upc.edu> | 2010-06-13 17:07:49 +0000 |
|---|---|---|
| committer | jordi.saludes <jordi.saludes@upc.edu> | 2010-06-13 17:07:49 +0000 |
| commit | d8c65b97329baee16351cd2043e3f07d26fe723b (patch) | |
| tree | 432c51d2a3d2c40ff555750b1a5ee5bfae67c5b9 /contrib/py-bindings/Makefile | |
| parent | ccbbd4e848ce711c967ca8e98e211c49f5d022fa (diff) | |
DEBUG mode added.
Diffstat (limited to 'contrib/py-bindings/Makefile')
| -rw-r--r-- | contrib/py-bindings/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/py-bindings/Makefile b/contrib/py-bindings/Makefile index f68ac43cc..01b703698 100644 --- a/contrib/py-bindings/Makefile +++ b/contrib/py-bindings/Makefile @@ -2,6 +2,7 @@ src=../../src import=-i$src/runtime/haskell:$src/compiler cbind=../c-bindings pythoninc=/usr/include/python2.5 +debug=-optc '-DDEBUG=1' conf: ln -s $(cbind)/PGFFFI.hs @@ -12,7 +13,7 @@ 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 $@ $^ + -optc '-DMODULE=PGFFFI' $(debug) -optc '-I$(pythoninc)' -o $@ $^ clean: rm -f *.hi *.o rm -f *_stub.* @@ -20,4 +21,4 @@ clean: superclean: make clean rm -f PGFFFI.hs pgf.h Query.pgf - rm -f gf.so
\ No newline at end of file + rm -f gf.so |
