summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Dyer <prguest11@taipan.cs>2012-02-02 17:47:00 +0000
committerChris Dyer <prguest11@taipan.cs>2012-02-02 17:47:00 +0000
commite158354f893c4720f7f5f1d9b18c62a40ad10f79 (patch)
tree5e332e7014eb3b22890ec728c952c5fb74bceb71
parent8e5fad9bcbadf36bbab3c1c5b053e3c8f7dddbce (diff)
forgotten makefile
-rw-r--r--sa-extract/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/sa-extract/Makefile b/sa-extract/Makefile
new file mode 100644
index 00000000..e2b6158d
--- /dev/null
+++ b/sa-extract/Makefile
@@ -0,0 +1,18 @@
+PYVER=python2.7
+PYDIR=/usr
+PYINCLUDE=$(PYDIR)/include/$(PYVER)
+CYTHON=/usr/bin/cython
+PYTHON=$(PYDIR)/bin/python
+
+%.c: %.pyx
+ $(CYTHON) $< -o $@
+
+%.o: %.cc
+ g++ -O6 -g -fPIC -c $<
+
+all: cstrmap.c strmap.cc rule.c sym.c cdat.c cintlist.c cfloatlist.c calignment.c csuf.c clex.c rulefactory.c cveb.c lcp.c precomputation.c
+ $(PYTHON) setup.py build
+
+clean:
+ rm -f cdat.c cstrmap.c sym.c rule.c cintlist.c cfloatlist.c calignment.c csuf.c clex.c rulefactory.c cveb.c lcp.c precomputation.c *.so *.o *.cxx *~ *.pyc
+ rm -rf build