blob: 815e0e18017511068cfbe893901049fe8eeb82dd [file] [log] [blame]
Alexandre Lision67916dd2014-01-24 13:33:04 -05001include ../../../build.mak
2
3ifneq ($(findstring android,$(TARGET_NAME)),)
4 # no python for android
5 DIRS = java
6else
7 DIRS = python java
8endif
9
10export SWIG_FLAGS=-I../../../../pjlib/include \
11 -I../../../../pjlib-util/include \
12 -I../../../../pjmedia/include \
13 -I../../../../pjsip/include \
14 -I../../../../pjnath/include -c++
15export SRC_DIR=../../../../pjsip/include
16export SRCS=$(SRC_DIR)/pjsua2/endpoint.hpp $(SRC_DIR)/pjsua2/types.hpp
17
18.PHONY: all clean dep depend distclean print realclean install uninstall
19
20all: symbols.i
21
22all clean dep depend distclean print realclean install uninstall:
23 for dir in $(DIRS); do \
24 if $(MAKE) $(MAKE_FLAGS) -C $$dir $@; then \
25 true; \
26 else \
27 exit 1; \
28 fi; \
29 done
30
31symbols.i: symbols.lst
32 python importsym.py