-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
20 lines (13 loc) · 807 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
SRC := src/py_hfst_ospell
.DEFAULT_GOAL := ${SRC}/_py_hfst_ospell.so
${SRC}/_py_hfst_ospell.so : ${SRC}/py_hfst_ospell.o ${SRC}/py-hfst-ospell_wrap.o
gcc -shared ${SRC}/py-hfst-ospell ${SRC}/py-hfst-ospell_wrap.o -o ${SRC}/_py_hfst_ospell.so -lpython3.7m
${SRC}/py-hfst-ospell : ${SRC}/py-hfst-ospell.cpp
gcc -c -fPIC -I/usr/include/python3.5m ${SRC}/py-hfst-ospell.cpp -o ${SRC}/py-hfst-ospell
${SRC}/py-hfst-ospell_wrap.o : ${SRC}/py-hfst-ospell_wrap.c
gcc -c -fPIC -I/usr/include/python3.5m ${SRC}/py-hfst-ospell_wrap.c -o ${SRC}/py-hfst-ospell_wrap.o
${SRC}/py-hfst-ospell_wrap.c ${SRC}/py_hfst_ospell.py : ${SRC}/py-hfst-ospell ${SRC}/py-hfst-ospell
swig -python ${SRC}/py-hfst-ospell
clean:
rm -f ${SRC}/*.o ${SRC}/*.so ${SRC}/py-hfst-ospell_wrap.* ${SRC}/py_hfst_ospell.py*
.PHONY: clean