DEBUG mode added.

This commit is contained in:
jordi.saludes
2010-06-13 17:07:49 +00:00
parent be77286bbb
commit e18d121315
3 changed files with 18 additions and 3 deletions

View File

@@ -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
rm -f gf.so