summaryrefslogtreecommitdiff
path: root/sa-extract/Makefile
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2012-03-13 09:24:47 +0100
committerPatrick Simianer <p@simianer.de>2012-03-13 09:24:47 +0100
commitc3a9ea64251605532c7954959662643a6a927bb7 (patch)
treefed6048a5acdaf3834740107771c2bc48f26fd4d /sa-extract/Makefile
parent867bca3e5fa0cdd63bf032e5859fb5092d9a4ca1 (diff)
parenta45af4a3704531a8382cd231f6445b3a33b598a3 (diff)
merge with upstream
Diffstat (limited to 'sa-extract/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..7b39ae4d
--- /dev/null
+++ b/sa-extract/Makefile
@@ -0,0 +1,18 @@
+PYVER=python2.7
+PYDIR=/usr/local/Cellar/python/2.7.2
+PYINCLUDE=$(PYDIR)/include/$(PYVER)
+CYTHON=/usr/local/share/python/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