Makefile 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. # For common OSes, test's main() is defined in main.c.
  2. # OS specific configuration may want to put it in different file.
  3. # For example, see os-rtems.mak in current directory.
  4. export TEST_OBJS = main.o
  5. include ../../build.mak
  6. include ../../version.mak
  7. include $(PJDIR)/build/common.mak
  8. export LIBDIR := ../lib
  9. export BINDIR := ../bin
  10. RULES_MAK := $(PJDIR)/build/rules.mak
  11. PJLIB_LIB:=../../pjlib/lib/libpj-$(TARGET_NAME)$(LIBEXT)
  12. PJLIB_UTIL_LIB:=../../pjlib-util/lib/libpjlib-util-$(TARGET_NAME)$(LIBEXT)
  13. PJNATH_LIB:=../../pjnath/lib/libpjnath-$(TARGET_NAME)$(LIBEXT)
  14. PJMEDIA_LIB:=../../pjmedia/lib/libpjmedia-$(TARGET_NAME)$(LIBEXT)
  15. export PJSIP_LIB:=libpjsip-$(TARGET_NAME)$(LIBEXT)
  16. export PJSIP_UA_LIB:=libpjsip-ua-$(TARGET_NAME)$(LIBEXT)
  17. export PJSIP_SIMPLE_LIB:=libpjsip-simple-$(TARGET_NAME)$(LIBEXT)
  18. export PJSUA_LIB_LIB:=libpjsua-$(TARGET_NAME)$(LIBEXT)
  19. export PJSUA2_LIB_LIB=libpjsua2-$(TARGET_NAME)$(LIBEXT)
  20. ifeq ($(PJ_SHARED_LIBRARIES),)
  21. else
  22. export PJSIP_SONAME := libpjsip.$(SHLIB_SUFFIX)
  23. export PJSIP_SHLIB := $(PJSIP_SONAME).$(PJ_VERSION_MAJOR)
  24. export PJSIP_UA_SONAME := libpjsip-ua.$(SHLIB_SUFFIX)
  25. export PJSIP_UA_SHLIB := $(PJSIP_UA_SONAME).$(PJ_VERSION_MAJOR)
  26. export PJSIP_SIMPLE_SONAME := libpjsip-simple.$(SHLIB_SUFFIX)
  27. export PJSIP_SIMPLE_SHLIB := $(PJSIP_SIMPLE_SONAME).$(PJ_VERSION_MAJOR)
  28. export PJSUA_LIB_SONAME := libpjsua.$(SHLIB_SUFFIX)
  29. export PJSUA_LIB_SHLIB := $(PJSUA_LIB_SONAME).$(PJ_VERSION_MAJOR)
  30. export PJSUA2_LIB_SONAME := libpjsua2.$(SHLIB_SUFFIX)
  31. export PJSUA2_LIB_SHLIB := $(PJSUA2_LIB_SONAME).$(PJ_VERSION_MAJOR)
  32. endif
  33. ###############################################################################
  34. # Gather all flags.
  35. #
  36. export _CFLAGS := $(CC_CFLAGS) $(OS_CFLAGS) $(HOST_CFLAGS) $(M_CFLAGS) \
  37. $(CFLAGS) $(CC_INC)../include \
  38. $(CC_INC)../../pjlib/include \
  39. $(CC_INC)../../pjlib-util/include \
  40. $(CC_INC)../../pjnath/include \
  41. $(CC_INC)../../pjmedia/include
  42. export _CXXFLAGS:= $(CC_CXXFLAGS) $(OS_CXXFLAGS) $(M_CXXFLAGS) \
  43. $(HOST_CXXFLAGS) $(CXXFLAGS) $(_CFLAGS)
  44. export _LDFLAGS := $(APP_THIRD_PARTY_LIBS) \
  45. $(APP_THIRD_PARTY_EXT) \
  46. $(CC_LDFLAGS) $(OS_LDFLAGS) $(M_LDFLAGS) $(HOST_LDFLAGS) \
  47. $(APP_LDFLAGS) $(LDFLAGS)
  48. ###############################################################################
  49. # Defines for building PJSIP core library
  50. #
  51. export PJSIP_SRCDIR = ../src/pjsip
  52. export PJSIP_OBJS += $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \
  53. sip_config.o sip_multipart.o \
  54. sip_errno.o sip_msg.o sip_parser.o sip_tel_uri.o sip_uri.o \
  55. sip_endpoint.o sip_util.o sip_util_proxy.o \
  56. sip_resolve.o sip_transport.o sip_transport_loop.o \
  57. sip_transport_udp.o sip_transport_tcp.o \
  58. sip_transport_tls.o sip_auth_aka.o sip_auth_client.o \
  59. sip_auth_msg.o sip_auth_parser.o \
  60. sip_auth_server.o \
  61. sip_transaction.o sip_util_statefull.o \
  62. sip_dialog.o sip_ua_layer.o
  63. export PJSIP_CFLAGS += $(_CFLAGS)
  64. export PJSIP_CXXFLAGS += $(_CXXFLAGS)
  65. export PJSIP_LDFLAGS += $(PJLIB_UTIL_LDLIB) \
  66. $(PJLIB_LDLIB) \
  67. $(_LDFLAGS)
  68. ###############################################################################
  69. # Defines for building PJSIP UA library
  70. #
  71. export PJSIP_UA_SRCDIR = ../src/pjsip-ua
  72. export PJSIP_UA_OBJS += $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \
  73. sip_inv.o sip_reg.o sip_replaces.o sip_xfer.o \
  74. sip_100rel.o sip_timer.o
  75. export PJSIP_UA_CFLAGS += $(_CFLAGS)
  76. export PJSIP_UA_CXXFLAGS += $(_CXXFLAGS)
  77. export PJSIP_UA_LDFLAGS += $(PJSIP_SIMPLE_LDLIB) \
  78. $(PJSIP_LDLIB) \
  79. $(PJMEDIA_LDLIB) \
  80. $(PJLIB_UTIL_LDLIB) \
  81. $(PJLIB_LDLIB) \
  82. $(_LDFLAGS)
  83. ###############################################################################
  84. # Defines for building PJSIP SIMPLE library
  85. #
  86. export PJSIP_SIMPLE_SRCDIR = ../src/pjsip-simple
  87. export PJSIP_SIMPLE_OBJS += $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \
  88. errno.o evsub.o evsub_msg.o iscomposing.o \
  89. mwi.o pidf.o dialog_info.o presence.o dlg_event.o presence_body.o \
  90. publishc.o rpid.o xpidf.o
  91. export PJSIP_SIMPLE_CFLAGS += $(_CFLAGS)
  92. export PJSIP_SIMPLE_CXXFLAGS += $(_CXXFLAGS)
  93. export PJSIP_SIMPLE_LDFLAGS += $(PJSIP_LDLIB) \
  94. $(PJLIB_UTIL_LDLIB) \
  95. $(PJLIB_LDLIB) \
  96. $(_LDFLAGS)
  97. ###############################################################################
  98. # Defines for building PJSUA-LIB library
  99. #
  100. export PJSUA_LIB_SRCDIR = ../src/pjsua-lib
  101. export PJSUA_LIB_OBJS += $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \
  102. pjsua_acc.o pjsua_call.o pjsua_core.o \
  103. pjsua_im.o pjsua_media.o pjsua_pres.o \
  104. pjsua_dump.o pjsua_aud.o pjsua_vid.o
  105. export PJSUA_LIB_CFLAGS += $(_CFLAGS) $(PJ_VIDEO_CFLAGS)
  106. export PJSUA_LIB_CXXFLAGS += $(_CXXFLAGS) $(PJ_VIDEO_CFLAGS)
  107. export PJSUA_LIB_LDFLAGS += $(PJSIP_UA_LDLIB) \
  108. $(PJSIP_SIMPLE_LDLIB) \
  109. $(PJSIP_LDLIB) \
  110. $(PJMEDIA_AUDIODEV_LDLIB) \
  111. $(PJMEDIA_VIDEODEV_LDLIB) \
  112. $(PJMEDIA_CODEC_LDLIB) \
  113. $(PJMEDIA_LDLIB) \
  114. $(PJNATH_LDLIB) \
  115. $(PJLIB_UTIL_LDLIB) \
  116. $(PJLIB_LDLIB) \
  117. $(_LDFLAGS)
  118. export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT
  119. ###############################################################################
  120. # Defines for building pjsua2 library
  121. #
  122. export PJSUA2_LIB_SRCDIR = ../src/pjsua2
  123. export PJSUA2_LIB_OBJS += $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \
  124. account.o endpoint.o json.o persistent.o types.o \
  125. siptypes.o call.o presence.o media.o
  126. export PJSUA2_LIB_CFLAGS += $(_CFLAGS) $(PJ_VIDEO_CFLAGS)
  127. export PJSUA2_LIB_CXXFLAGS = $(_CXXFLAGS) $(PJSUA2_LIB_CFLAGS)
  128. export PJSUA2_LIB_LDFLAGS += $(PJSUA_LIB_LDLIB) \
  129. $(PJSIP_UA_LDLIB) \
  130. $(PJSIP_SIMPLE_LDLIB) \
  131. $(PJSIP_LDLIB) \
  132. $(PJMEDIA_AUDIODEV_LDLIB) \
  133. $(PJMEDIA_VIDEODEV_LDLIB) \
  134. $(PJMEDIA_CODEC_LDLIB) \
  135. $(PJMEDIA_LDLIB) \
  136. $(PJNATH_LDLIB) \
  137. $(PJLIB_UTIL_LDLIB) \
  138. $(PJLIB_LDLIB) \
  139. $(_LDFLAGS) \
  140. -lstdc++
  141. ###############################################################################
  142. # Defines for building pjsua2-test application
  143. #
  144. export PJSUA2_TEST_SRCDIR = ../src/pjsua2-test
  145. export PJSUA2_TEST_OBJS += $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \
  146. main.o
  147. export PJSUA2_TEST_CFLAGS += $(_CFLAGS) $(PJ_VIDEO_CFLAGS)
  148. export PJSUA2_TEST_CXXFLAGS = $(_CXXFLAGS) $(PJSUA2_LIB_CFLAGS) $(PJ_VIDEO_CFLAGS)
  149. export PJSUA2_TEST_LDFLAGS += $(PJ_LDXXFLAGS) $(PJ_LDXXLIBS) $(LDFLAGS)
  150. ifeq ($(EXCLUDE_APP),0)
  151. export PJSUA2_TEST_EXE := pjsua2-test-$(TARGET_NAME)$(HOST_EXE)
  152. endif
  153. export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT
  154. ###############################################################################
  155. # Defines for building test application
  156. #
  157. export TEST_SRCDIR = ../src/test
  158. export TEST_OBJS += dlg_core_test.o dns_test.o msg_err_test.o \
  159. msg_logger.o msg_test.o multipart_test.o regc_test.o \
  160. test.o transport_loop_test.o transport_tcp_test.o \
  161. transport_test.o transport_udp_test.o \
  162. tsx_basic_test.o tsx_bench.o tsx_uac_test.o \
  163. tsx_uas_test.o txdata_test.o uri_test.o \
  164. inv_offer_answer_test.o
  165. export TEST_CFLAGS += $(_CFLAGS) $(PJ_VIDEO_CFLAGS)
  166. export TEST_CXXFLAGS += $(_CXXFLAGS)
  167. export TEST_LDFLAGS += $(PJSIP_LDLIB) \
  168. $(PJSIP_UA_LDLIB) \
  169. $(PJSIP_SIMPLE_LDLIB) \
  170. $(PJSUA_LDLIB) \
  171. $(PJMEDIA_CODEC_LDLIB) \
  172. $(PJMEDIA_VIDEODEV_LDLIB) \
  173. $(PJMEDIA_LDLIB) \
  174. $(PJMEDIA_AUDIODEV_LDLIB) \
  175. $(PJLIB_UTIL_LDLIB) \
  176. $(PJNATH_LDLIB) \
  177. $(PJLIB_LDLIB) \
  178. $(_LDFLAGS)
  179. ifeq ($(EXCLUDE_APP),0)
  180. export TEST_EXE := pjsip-test-$(TARGET_NAME)$(HOST_EXE)
  181. endif
  182. export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT
  183. ###############################################################################
  184. # Main entry
  185. #
  186. #
  187. TARGETS := $(PJSIP_LIB) $(PJSIP_SONAME) \
  188. $(PJSIP_SIMPLE_LIB) $(PJSIP_SIMPLE_SONAME) \
  189. $(PJSIP_UA_LIB) $(PJSIP_UA_SONAME) \
  190. $(PJSUA_LIB_LIB) $(PJSUA_LIB_SONAME)
  191. TARGETS_EXE := $(TEST_EXE)
  192. ifeq ($(PJ_EXCLUDE_PJSUA2),)
  193. TARGETS += $(PJSUA2_LIB_LIB) $(PJSUA2_LIB_SONAME)
  194. TARGETS_EXE += $(PJSUA2_TEST_EXE)
  195. endif
  196. all: $(TARGETS) $(TARGETS_EXE)
  197. lib: $(TARGETS)
  198. doc:
  199. cd .. && rm -rf docs/$(PJ_VERSION) && doxygen docs/doxygen.cfg
  200. @if [ -n "$(WWWDIR)" ] && ! [ -d "$(WWWDIR)/docs/$(PJ_VERSION)/pjsip/docs/html" ] ; then \
  201. echo "Creating docs/$(PJ_VERSION)/pjsip/docs/html" ; \
  202. mkdir -p $(WWWDIR)/docs/$(PJ_VERSION)/pjsip/docs/html ; \
  203. fi
  204. @if [ -n "$(WWWDIR)" ] && [ -d "$(WWWDIR)/docs/$(PJ_VERSION)/pjsip/docs/html" ] ; then \
  205. echo "Copying docs/$(PJ_VERSION) to $(WWWDIR)/docs/$(PJ_VERSION)/pjsip/docs/html.." ; \
  206. cp -v -a ../docs/$(PJ_VERSION)/html/* $(WWWDIR)/docs/$(PJ_VERSION)/pjsip/docs/html/ ; \
  207. fi
  208. dep: depend
  209. distclean: realclean
  210. .PHONY: all dep depend clean realclean distclean
  211. .PHONY: $(TARGETS)
  212. .PHONY: $(PJSIP_LIB) $(PJSIP_SONAME)
  213. .PHONY: $(PJSIP_UA_LIB) $(PJSIP_UA_SONAME)
  214. .PHONY: $(PJSIP_SIMPLE_LIB) $(PJSIP_SIMPLE_SONAME)
  215. .PHONY: $(PJSUA_LIB_LIB) $(PJSUA_LIB_SONAME)
  216. .PHONY: $(PJSUA2_LIB_LIB) $(PJSUA2_LIB_SONAME)
  217. .PHONY: $(TEST_EXE)
  218. .PHONY: $(PJSUA2_TEST_EXE)
  219. pjsip: $(PJSIP_LIB)
  220. $(PJSIP_SONAME): $(PJSIP_LIB)
  221. $(PJSIP_LIB) $(PJSIP_SONAME):
  222. $(MAKE) -f $(RULES_MAK) APP=PJSIP app=pjsip $(subst /,$(HOST_PSEP),$(LIBDIR)/$@)
  223. pjsip-ua: $(PJSIP_UA_LIB)
  224. $(PJSIP_UA_SONAME): $(PJSIP_UA_LIB)
  225. $(PJSIP_UA_LIB) $(PJSIP_UA_SONAME): $(PJSIP_LIB) $(PJSIP_SONAME) $(PJSIP_SIMPLE_LIB) $(PJSIP_SIMPLE_SONAME)
  226. $(MAKE) -f $(RULES_MAK) APP=PJSIP_UA app=pjsip-ua $(subst /,$(HOST_PSEP),$(LIBDIR)/$@)
  227. pjsip-simple: $(PJSIP_SIMPLE_LIB)
  228. $(PJSIP_SIMPLE_SONAME): $(PJSIP_SIMPLE_LIB)
  229. $(PJSIP_SIMPLE_LIB) $(PJSIP_SIMPLE_SONAME): $(PJSIP_LIB) $(PJSIP_SONAME)
  230. $(MAKE) -f $(RULES_MAK) APP=PJSIP_SIMPLE app=pjsip-simple $(subst /,$(HOST_PSEP),$(LIBDIR)/$@)
  231. pjsua-lib: $(PJSUA_LIB_LIB)
  232. $(PJSUA_LIB_SONAME): $(PJSUA_LIB_LIB)
  233. $(PJSUA_LIB_LIB) $(PJSUA_LIB_SONAME): $(PJSIP_LIB) $(PJSIP_SONAME) $(PJSIP_SIMPLE_LIB) $(PJSIP_SIMPLE_SONAME) $(PJSIP_UA_LIB) $(PJSIP_UA_SONAME)
  234. $(MAKE) -f $(RULES_MAK) APP=PJSUA_LIB app=pjsua-lib $(subst /,$(HOST_PSEP),$(LIBDIR)/$@)
  235. pjsua2-lib: $(PJSUA2_LIB_LIB)
  236. $(PJSUA2_LIB_SONAME): $(PJSUA2_LIB_LIB)
  237. $(PJSUA2_LIB_LIB) $(PJSUA2_LIB_SONAME): $(PJSUA_LIB_LIB) $(PJSUA_LIB_SONAME) $(PJSIP_LIB) $(PJSIP_SONAME) $(PJSIP_SIMPLE_LIB) $(PJSIP_SIMPLE_SONAME) $(PJSIP_UA_LIB) $(PJSIP_UA_SONAME)
  238. $(MAKE) -f $(RULES_MAK) APP=PJSUA2_LIB app=pjsua2-lib $(subst /,$(HOST_PSEP),$(LIBDIR)/$@)
  239. pjsip-test: $(TEST_EXE)
  240. $(TEST_EXE): $(PJSIP_LIB) $(PJSIP_SONAME)
  241. $(TEST_EXE): $(PJSIP_UA_LIB) $(PJSIP_UA_SONAME)
  242. $(TEST_EXE): $(PJSIP_SIMPLE_LIB) $(PJSIP_SIMPLE_SONAME)
  243. $(TEST_EXE): $(PJSUA_LIB_LIB) $(PJSUA_LIB_SONAME)
  244. $(TEST_EXE):
  245. $(MAKE) -f $(RULES_MAK) APP=TEST app=pjsip-test $(subst /,$(HOST_PSEP),$(BINDIR)/$@)
  246. pjsua2-test: $(PJSUA2_TEST_EXE)
  247. $(PJSUA2_TEST_EXE): $(PJSIP_LIB) $(PJSIP_SONAME)
  248. $(PJSUA2_TEST_EXE): $(PJSIP_UA_LIB) $(PJSIP_UA_SONAME)
  249. $(PJSUA2_TEST_EXE): $(PJSIP_SIMPLE_LIB) $(PJSIP_SIMPLE_SONAME)
  250. $(PJSUA2_TEST_EXE): $(PJSUA_LIB_LIB) $(PJSUA_LIB_SONAME)
  251. $(PJSUA2_TEST_EXE): $(PJSUA2_LIB_LIB) $(PJSUA2_LIB_SONAME)
  252. $(MAKE) -f $(RULES_MAK) APP=PJSUA2_TEST app=pjsua2-test $(subst /,$(HOST_PSEP),$(BINDIR)/$@)
  253. .PHONY: pjsip.ko
  254. pjsip.ko:
  255. echo Making $@
  256. $(MAKE) -f $(RULES_MAK) APP=PJSIP app=pjsip $(subst /,$(HOST_PSEP),$(LIBDIR)/$@)
  257. .PHONY: pjsip-ua.ko
  258. pjsip-ua.ko:
  259. echo Making $@
  260. $(MAKE) -f $(RULES_MAK) APP=PJSIP_UA app=pjsip-ua $(subst /,$(HOST_PSEP),$(LIBDIR)/$@)
  261. .PHONY: pjsip-simple.ko
  262. pjsip-simple.ko:
  263. echo Making $@
  264. $(MAKE) -f $(RULES_MAK) APP=PJSIP_SIMPLE app=pjsip-simple $(subst /,$(HOST_PSEP),$(LIBDIR)/$@)
  265. .PHONY: pjsua-lib.ko
  266. pjsua-lib.ko:
  267. echo Making $@
  268. $(MAKE) -f $(RULES_MAK) APP=PJSUA_LIB app=pjsua-lib $(subst /,$(HOST_PSEP),$(LIBDIR)/$@)
  269. .PHONY: pjsua2-lib.ko
  270. pjsua2-lib.ko:
  271. echo Making $@
  272. $(MAKE) -f $(RULES_MAK) APP=PJSUA2_LIB app=pjsua2-lib $(subst /,$(HOST_PSEP),$(LIBDIR)/$@)
  273. clean:
  274. $(MAKE) -f $(RULES_MAK) APP=PJSIP app=pjsip $@
  275. $(MAKE) -f $(RULES_MAK) APP=PJSIP_UA app=pjsip-ua $@
  276. $(MAKE) -f $(RULES_MAK) APP=PJSIP_SIMPLE app=pjsip-simple $@
  277. $(MAKE) -f $(RULES_MAK) APP=PJSUA_LIB app=pjsua-lib $@
  278. $(MAKE) -f $(RULES_MAK) APP=PJSUA2_LIB app=pjsua2-lib $@
  279. $(MAKE) -f $(RULES_MAK) APP=TEST app=pjsip-test $@
  280. $(MAKE) -f $(RULES_MAK) APP=PJSUA2_TEST app=pjsua2-test $@
  281. depend:
  282. $(MAKE) -f $(RULES_MAK) APP=PJSIP app=pjsip $@
  283. $(MAKE) -f $(RULES_MAK) APP=PJSIP_UA app=pjsip-ua $@
  284. $(MAKE) -f $(RULES_MAK) APP=PJSIP_SIMPLE app=pjsip-simple $@
  285. $(MAKE) -f $(RULES_MAK) APP=PJSUA_LIB app=pjsua-lib $@
  286. $(MAKE) -f $(RULES_MAK) APP=PJSUA2_LIB app=pjsua2-lib $@
  287. $(MAKE) -f $(RULES_MAK) APP=TEST app=pjsip-test $@
  288. $(MAKE) -f $(RULES_MAK) APP=PJSUA2_TEST app=pjsua2-test $@
  289. echo '$(BINDIR)/$(TEST_EXE): $(PJMEDIA_LIB) $(LIBDIR)/$(PJSUA_LIB_LIB) $(LIBDIR)/$(PJSIP_SIMPLE_LIB) $(LIBDIR)/$(PJSIP_UA_LIB) $(LIBDIR)/$(PJSIP_LIB) $(PJNATH_LIB) $(PJLIB_UTIL_LIB) $(PJLIB_LIB)' >> .pjsip-test-$(TARGET_NAME).depend
  290. echo '$(BINDIR)/$(PJSUA2_TEST_EXE): $(LIBDIR)/$(PJSUA2_LIB_LIB) $(PJMEDIA_LIB) $(LIBDIR)/$(PJSUA_LIB_LIB) $(LIBDIR)/$(PJSIP_SIMPLE_LIB) $(LIBDIR)/$(PJSIP_UA_LIB) $(LIBDIR)/$(PJSIP_LIB) $(PJNATH_LIB) $(PJLIB_UTIL_LIB) $(PJLIB_LIB)' >> .pjsua2-test-$(TARGET_NAME).depend
  291. realclean:
  292. $(subst @@,$(subst /,$(HOST_PSEP),.pjsip-$(TARGET_NAME).depend),$(HOST_RMR))
  293. $(subst @@,$(subst /,$(HOST_PSEP),.pjsip-ua-$(TARGET_NAME).depend),$(HOST_RMR))
  294. $(subst @@,$(subst /,$(HOST_PSEP),.pjsip-simple-$(TARGET_NAME).depend),$(HOST_RMR))
  295. $(subst @@,$(subst /,$(HOST_PSEP),.pjsua-lib-$(TARGET_NAME).depend),$(HOST_RMR))
  296. $(subst @@,$(subst /,$(HOST_PSEP),.pjsua2-lib-$(TARGET_NAME).depend),$(HOST_RMR))
  297. $(subst @@,$(subst /,$(HOST_PSEP),.pjsua2-test-$(TARGET_NAME).depend),$(HOST_RMR))
  298. $(MAKE) -f $(RULES_MAK) APP=PJSIP app=pjsip $@
  299. $(MAKE) -f $(RULES_MAK) APP=PJSIP_UA app=pjsip-ua $@
  300. $(MAKE) -f $(RULES_MAK) APP=PJSIP_SIMPLE app=pjsip-simple $@
  301. $(MAKE) -f $(RULES_MAK) APP=TEST app=pjsip-test $@
  302. $(MAKE) -f $(RULES_MAK) APP=PJSUA_LIB app=pjsua-lib $@
  303. $(MAKE) -f $(RULES_MAK) APP=PJSUA2_LIB app=pjsua2-lib $@
  304. $(MAKE) -f $(RULES_MAK) APP=PJSUA2_TEST app=pjsua2-test $@