blob: 80af9bf9392c0634dec0815d3f9d95280e90ebd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
PYTHON_SO=_pjsua2.so
#PYTHON_SETUP_FLAGS = --inplace
ifeq ($(OS),Windows_NT)
PYTHON_SETUP_FLAGS += --compiler=mingw32
endif
SWIG_FLAGS += -w312
.PHONY: all install uninstall
all: $(PYTHON_SO)
$(PYTHON_SO): pjsua2_wrap.cpp setup.py
python setup.py build $(PYTHON_SETUP_FLAGS)
pjsua2_wrap.cpp: ../pjsua2.i ../symbols.i Makefile $(SRCS)
swig $(SWIG_FLAGS) -python -o pjsua2_wrap.cpp ../pjsua2.i
clean distclean realclean:
rm -rf $(PYTHON_SO) pjsua2_wrap.cpp pjsua2_wrap.h pjsua2.py build *.pyc
install:
python setup.py install --user
uninstall:
rm -f $(HOME)/.local/lib/python2.7/site-packages/pjsua2*
rm -f $(HOME)/.local/lib/python2.7/site-packages/_pjsua2*
|