Alexandre Lision | 67916dd | 2014-01-24 13:33:04 -0500 | [diff] [blame^] | 1 | include ../../../build.mak |
| 2 | |
| 3 | ifneq ($(findstring android,$(TARGET_NAME)),) |
| 4 | # no python for android |
| 5 | DIRS = java |
| 6 | else |
| 7 | DIRS = python java |
| 8 | endif |
| 9 | |
| 10 | export SWIG_FLAGS=-I../../../../pjlib/include \ |
| 11 | -I../../../../pjlib-util/include \ |
| 12 | -I../../../../pjmedia/include \ |
| 13 | -I../../../../pjsip/include \ |
| 14 | -I../../../../pjnath/include -c++ |
| 15 | export SRC_DIR=../../../../pjsip/include |
| 16 | export SRCS=$(SRC_DIR)/pjsua2/endpoint.hpp $(SRC_DIR)/pjsua2/types.hpp |
| 17 | |
| 18 | .PHONY: all clean dep depend distclean print realclean install uninstall |
| 19 | |
| 20 | all: symbols.i |
| 21 | |
| 22 | all 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 | |
| 31 | symbols.i: symbols.lst |
| 32 | python importsym.py |