blob: 492cbc0a46b967b5e061b8e72ebb709cb7215518 [file] [log] [blame]
Tristan Matthews0a329cc2013-07-17 13:20:14 -04001#
2# This is a utility make file that is used to generate BB10 config settings
3# from current build settings. The stdout output of this make file can be
4# saved to a .pri file which then can be included in app's .pro file.
5#
6# This make file is invoked by configure-bb10 script to generate pjsip.pri
7# file.
8#
9include build.mak
10
11# Generate library list (the "-lxxx" options) from list of linked libraries.
12PJ_BB_LIBS = $(filter-out -lm -lsocket, $(APP_LDLIBS))
13
14# This used to generate the library path list (the "-Lxxx" options)
15# We replace the path with "$$PJ_DIR"
16PJ_BB_LDFLAGS = $(subst $(PJDIR),\$$\$$PJ_DIR,$(APP_LDFLAGS))
17
18all:
19 @echo PJ_DIR = $(PJDIR)
20 @echo
21 @echo 'DEFINES += PJ_AUTOCONF'
22 @echo
23 @echo 'PJ_INCLUDEPATH += $$$$quote($$$$PJ_DIR/pjlib/include)'
24 @echo 'PJ_INCLUDEPATH += $$$$quote($$$$PJ_DIR/pjmedia/include)'
25 @echo 'PJ_INCLUDEPATH += $$$$quote($$$$PJ_DIR/pjnath/include)'
26 @echo 'PJ_INCLUDEPATH += $$$$quote($$$$PJ_DIR/pjlib-util/include)'
27 @echo 'PJ_INCLUDEPATH += $$$$quote($$$$PJ_DIR/pjsip/include)'
28 @echo
29 @for token in $(PJ_BB_LDFLAGS); do \
30 if echo $$token | grep -- '-L' >> /dev/null; then \
31 echo "PJ_LIBPATH += \$$\$$quote($$token)"; \
32 fi; \
33 done
34 @echo
35 @for token in $(PJ_BB_LIBS); do \
36 echo PJ_LIBS += $$token; \
37 done
38 @echo
39 @echo 'INCLUDEPATH += $$$$PJ_INCLUDEPATH'
40 @echo 'LIBS += $$$$PJ_LIBPATH'
41 @echo 'LIBS += $$$$PJ_LIBS'
42 @echo 'LIBS += -lOpenAL -lalut -laudio_manager -lsocket -lasound -lbbsystem -lm'
43
44