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