mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 19:42:50 -06:00
Setting Query.pgf as separate dependency in py-bindings.
This commit is contained in:
@@ -9,11 +9,11 @@ conf:
|
|||||||
ln -s $(cbind)/pgf.h
|
ln -s $(cbind)/pgf.h
|
||||||
build: gf.so
|
build: gf.so
|
||||||
|
|
||||||
gf.so: PGFFFI.hs gfmodule.c
|
gf.so: PGFFFI.hs gfmodule.c Query.pgf
|
||||||
gf --make $(exdir)/QueryEng.gf $(exdir)/QuerySpa.gf
|
|
||||||
ghc $(import) --make -fglasgow-exts -O2 -no-hs-main -c $<
|
ghc $(import) --make -fglasgow-exts -O2 -no-hs-main -c $<
|
||||||
ghc -O2 --make -fglasgow-exts -no-hs-main -optl '-shared' \
|
ghc -O2 --make -fglasgow-exts -no-hs-main -optl '-shared' \
|
||||||
-optc '-DMODULE=PGFFFI' $(debug) -optc '-I$(pythoninc)' -o $@ $^
|
-optc '-DMODULE=PGFFFI' $(debug) -optc '-I$(pythoninc)' -o $@ \
|
||||||
|
$(filter-out %.pgf, $^)
|
||||||
clean:
|
clean:
|
||||||
rm -f *.hi *.o
|
rm -f *.hi *.o
|
||||||
rm -f *_stub.*
|
rm -f *_stub.*
|
||||||
@@ -28,7 +28,11 @@ superclean:
|
|||||||
PyGF.hs: PyGF.hsc
|
PyGF.hs: PyGF.hsc
|
||||||
hsc2hs -I$(pythoninc) $<
|
hsc2hs -I$(pythoninc) $<
|
||||||
|
|
||||||
mtest: PyGF.hs mtest.c
|
Query.pgf:
|
||||||
|
gf --make $(exdir)/QueryEng.gf $(exdir)/QuerySpa.gf
|
||||||
|
|
||||||
|
mtest: PyGF.hs mtest.c Query.pgf
|
||||||
ghc $(import) --make -fglasgow-exts -O2 -no-hs-main -c $<
|
ghc $(import) --make -fglasgow-exts -O2 -no-hs-main -c $<
|
||||||
ghc -O2 --make -fglasgow-exts -no-hs-main \
|
ghc -O2 --make -fglasgow-exts -no-hs-main \
|
||||||
-optc '-DMODULE=PyGF' -optc '-I$(pythoninc)' -o $@ $^
|
-optc '-DMODULE=PyGF' -optc '-I$(pythoninc)' -o $@ \
|
||||||
|
$(filter-out %.pgf, $^)
|
||||||
Reference in New Issue
Block a user