droid-makefile 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. APP := lib$(PROJECT)_$(MARCH).$(EXT)
  2. CFLAGS := $(CFLAGS_LIB) -I../tinySAK/src -I../tinyNET/src -I../tinyHTTP/include -I../tinyIPSec/src -I../tinySIGCOMP/src -I../tinySDP/include -I../tinyMEDIA/include -I./include
  3. LDFLAGS := $(LDFLAGS_LIB) -ltinySAK_$(MARCH) -ltinyNET_$(MARCH) -ltinyHTTP_$(MARCH) -ltinyIPSec_$(MARCH) -ltinySDP_$(MARCH) -ltinyMEDIA_$(MARCH) -ltinySIGCOMP_$(MARCH)
  4. all: $(APP)
  5. OBJS = \
  6. src/tsip.o\
  7. src/tsip_action.o\
  8. src/tsip_event.o\
  9. src/tsip_message.o\
  10. src/tsip_ssession.o\
  11. src/tsip_timers.o\
  12. src/tsip_uri.o\
  13. ### api
  14. OBJS += src/api/tsip_api_common.o\
  15. src/api/tsip_api_info.o\
  16. src/api/tsip_api_invite.o\
  17. src/api/tsip_api_message.o\
  18. src/api/tsip_api_options.o\
  19. src/api/tsip_api_publish.o\
  20. src/api/tsip_api_register.o\
  21. src/api/tsip_api_subscribe.o
  22. ### authentication
  23. OBJS += src/authentication/tsip_challenge.o\
  24. src/authentication/tsip_milenage.o\
  25. src/authentication/tsip_rijndael.o
  26. ### dialogs
  27. OBJS += src/dialogs/tsip_dialog.o\
  28. src/dialogs/tsip_dialog_info.o\
  29. src/dialogs/tsip_dialog_invite.o\
  30. src/dialogs/tsip_dialog_invite.cdiv.o\
  31. src/dialogs/tsip_dialog_invite.client.o\
  32. src/dialogs/tsip_dialog_invite.conf.o\
  33. src/dialogs/tsip_dialog_invite.ect.o\
  34. src/dialogs/tsip_dialog_invite.hold.o\
  35. src/dialogs/tsip_dialog_invite.ice.o\
  36. src/dialogs/tsip_dialog_invite.qos.o\
  37. src/dialogs/tsip_dialog_invite.server.o\
  38. src/dialogs/tsip_dialog_invite.timers.o\
  39. src/dialogs/tsip_dialog_layer.o\
  40. src/dialogs/tsip_dialog_message.o\
  41. src/dialogs/tsip_dialog_options.o\
  42. src/dialogs/tsip_dialog_publish.client.o\
  43. src/dialogs/tsip_dialog_register.o\
  44. src/dialogs/tsip_dialog_register.client.o\
  45. src/dialogs/tsip_dialog_register.server.o\
  46. src/dialogs/tsip_dialog_subscribe.client.o\
  47. src/dialogs/tsip_dialog_subscribe.server.o
  48. ### headers
  49. OBJS += src/headers/tsip_header.o\
  50. src/headers/tsip_header_accept.o\
  51. src/headers/tsip_header_Accept_Contact.o\
  52. src/headers/tsip_header_Accept_Encoding.o\
  53. src/headers/tsip_header_Accept_Language.o\
  54. src/headers/tsip_header_Accept_Resource_Priority.o\
  55. src/headers/tsip_header_Alert_Info.o\
  56. src/headers/tsip_header_Allow.o\
  57. src/headers/tsip_header_Allow_Events.o\
  58. src/headers/tsip_header_Authentication_Info.o\
  59. src/headers/tsip_header_Authorization.o\
  60. src/headers/tsip_header_Call_ID.o\
  61. src/headers/tsip_header_Call_Info.o\
  62. src/headers/tsip_header_Contact.o\
  63. src/headers/tsip_header_Content_Disposition.o\
  64. src/headers/tsip_header_Content_Encoding.o\
  65. src/headers/tsip_header_Content_Language.o\
  66. src/headers/tsip_header_Content_Length.o\
  67. src/headers/tsip_header_Content_Type.o\
  68. src/headers/tsip_header_CSeq.o\
  69. src/headers/tsip_header_Date.o\
  70. src/headers/tsip_header_Dummy.o\
  71. src/headers/tsip_header_Error_Info.o\
  72. src/headers/tsip_header_Event.o\
  73. src/headers/tsip_header_Expires.o\
  74. src/headers/tsip_header_From.o\
  75. src/headers/tsip_header_History_Info.o\
  76. src/headers/tsip_header_Identity.o\
  77. src/headers/tsip_header_Identity_Info.o\
  78. src/headers/tsip_header_In_Reply_To.o\
  79. src/headers/tsip_header_Join.o\
  80. src/headers/tsip_header_Max_Forwards.o\
  81. src/headers/tsip_header_MIME_Version.o\
  82. src/headers/tsip_header_Min_Expires.o\
  83. src/headers/tsip_header_Min_SE.o\
  84. src/headers/tsip_header_Organization.o\
  85. src/headers/tsip_header_Path.o\
  86. src/headers/tsip_header_Priority.o\
  87. src/headers/tsip_header_Privacy.o\
  88. src/headers/tsip_header_Proxy_Authenticate.o\
  89. src/headers/tsip_header_Proxy_Authorization.o\
  90. src/headers/tsip_header_Proxy_Require.o\
  91. src/headers/tsip_header_P_Access_Network_Info.o\
  92. src/headers/tsip_header_P_Answer_State.o\
  93. src/headers/tsip_header_P_Asserted_Identity.o\
  94. src/headers/tsip_header_P_Associated_URI.o\
  95. src/headers/tsip_header_P_Called_Party_ID.o\
  96. src/headers/tsip_header_P_Charging_Function_Addresses.o\
  97. src/headers/tsip_header_P_Charging_Vector.o\
  98. src/headers/tsip_header_P_DCS_Billing_Info.o\
  99. src/headers/tsip_header_P_DCS_LAES.o\
  100. src/headers/tsip_header_P_DCS_OSPS.o\
  101. src/headers/tsip_header_P_DCS_Redirect.o\
  102. src/headers/tsip_header_P_DCS_Trace_Party_ID.o\
  103. src/headers/tsip_header_P_Early_Media.o\
  104. src/headers/tsip_header_P_Media_Authorization.o\
  105. src/headers/tsip_header_P_Preferred_Identity.o\
  106. src/headers/tsip_header_P_Profile_Key.o\
  107. src/headers/tsip_header_P_User_Database.o\
  108. src/headers/tsip_header_P_Visited_Network_ID.o\
  109. src/headers/tsip_header_RAck.o\
  110. src/headers/tsip_header_Reason.o\
  111. src/headers/tsip_header_Record_Route.o\
  112. src/headers/tsip_header_Referred_By.o\
  113. src/headers/tsip_header_Refer_Sub.o\
  114. src/headers/tsip_header_Refer_To.o\
  115. src/headers/tsip_header_Reject_Contact.o\
  116. src/headers/tsip_header_Replaces.o\
  117. src/headers/tsip_header_Reply_To.o\
  118. src/headers/tsip_header_Request_Disposition.o\
  119. src/headers/tsip_header_Require.o\
  120. src/headers/tsip_header_Resource_Priority.o\
  121. src/headers/tsip_header_Retry_After.o\
  122. src/headers/tsip_header_Route.o\
  123. src/headers/tsip_header_RSeq.o\
  124. src/headers/tsip_header_Security_Client.o\
  125. src/headers/tsip_header_Security_Server.o\
  126. src/headers/tsip_header_Security_Verify.o\
  127. src/headers/tsip_header_Server.o\
  128. src/headers/tsip_header_Service_Route.o\
  129. src/headers/tsip_header_Session_Expires.o\
  130. src/headers/tsip_header_SIP_ETag.o\
  131. src/headers/tsip_header_SIP_If_Match.o\
  132. src/headers/tsip_header_Subject.o\
  133. src/headers/tsip_header_Subscription_State.o\
  134. src/headers/tsip_header_Supported.o\
  135. src/headers/tsip_header_Target_Dialog.o\
  136. src/headers/tsip_header_Timestamp.o\
  137. src/headers/tsip_header_To.o\
  138. src/headers/tsip_header_Unsupported.o\
  139. src/headers/tsip_header_User_Agent.o\
  140. src/headers/tsip_header_Via.o\
  141. src/headers/tsip_header_Warning.o\
  142. src/headers/tsip_header_WWW_Authenticate.o
  143. ### parsers
  144. OBJS += src/parsers/tsip_parser_header.o\
  145. src/parsers/tsip_parser_message.o\
  146. src/parsers/tsip_parser_uri.o
  147. ### parsers
  148. OBJS += src/sigcomp/tsip_sigcomp.o
  149. ### transactions
  150. OBJS += src/transactions/tsip_transac.o\
  151. src/transactions/tsip_transac_ict.o\
  152. src/transactions/tsip_transac_ist.o\
  153. src/transactions/tsip_transac_layer.o\
  154. src/transactions/tsip_transac_nict.o\
  155. src/transactions/tsip_transac_nist.o
  156. ### transports
  157. OBJS += src/transports/tsip_transport.o\
  158. src/transports/tsip_transport_ipsec.o\
  159. src/transports/tsip_transport_layer.o\
  160. src/transports/tsip_transport_tls.o
  161. $(APP): $(OBJS)
  162. ifeq ($(EXT), a)
  163. $(AR) rcs $@ $^
  164. else
  165. $(CC) $(LDFLAGS) -o $@ $^
  166. endif
  167. %.o: %.c
  168. $(CC) -c $(INCLUDE) $(CFLAGS) $< -o $@
  169. install: $(APP)
  170. $(ANDROID_SDK_ROOT)/tools/adb remount
  171. $(ANDROID_SDK_ROOT)/tools/adb push $(APP) $(LIB_DIR)/$(APP)
  172. $(ANDROID_SDK_ROOT)/tools/adb shell chmod 777 $(LIB_DIR)/$(APP)
  173. clean:
  174. @rm -f $(OBJS) $(APP)