summaryrefslogtreecommitdiff
path: root/sa-extract/Makefile
blob: 7b39ae4db287655f135a4ec705145f6f6f9b6189 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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