From eaac878282471e0391952bcb93037cd1eedadd33 Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Thu, 2 Feb 2012 17:47:00 +0000 Subject: forgotten makefile --- sa-extract/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 sa-extract/Makefile (limited to 'sa-extract') 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 -- cgit v1.2.3