-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathAndroid.mk
119 lines (91 loc) · 3.22 KB
/
Android.mk
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
ifneq ($(TARGET_SIMULATOR),true)
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:=\
dbutil.c buffer.c \
dss.c bignum.c \
signkey.c rsa.c random.c \
queue.c \
atomicio.c compat.c fake-rfc2553.c
LOCAL_SRC_FILES+=\
common-session.c packet.c common-algo.c common-kex.c \
common-channel.c common-chansession.c termcodes.c \
tcp-accept.c listener.c process-packet.c \
common-runopts.c circbuffer.c
# loginrec.c
LOCAL_SRC_FILES+=\
cli-algo.c cli-main.c cli-auth.c cli-authpasswd.c cli-kex.c \
cli-session.c cli-service.c cli-runopts.c cli-chansession.c \
cli-authpubkey.c cli-tcpfwd.c cli-channel.c cli-authinteract.c
LOCAL_SRC_FILES+=netbsd_getpass.c
LOCAL_STATIC_LIBRARIES := libtommath libtomcrypt
LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
LOCAL_MODULE_TAGS := eng
LOCAL_MODULE := ssh
LOCAL_C_INCLUDES += $(LOCAL_PATH)/libtommath
LOCAL_C_INCLUDES += $(LOCAL_PATH)/libtomcrypt/src/headers
LOCAL_CFLAGS += -DDROPBEAR_CLIENT
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:=\
scp.c progressmeter.c atomicio.c scpmisc.c
LOCAL_STATIC_LIBRARIES := libtommath libtomcrypt
LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
LOCAL_MODULE_TAGS := debug
LOCAL_MODULE := scp
LOCAL_C_INCLUDES += $(LOCAL_PATH)/libtommath
LOCAL_C_INCLUDES += $(LOCAL_PATH)/libtomcrypt/src/headers
LOCAL_CFLAGS += -DDROPBEAR_CLIENT -DPROGRESS_METER
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:=\
dbutil.c buffer.c \
dss.c bignum.c \
signkey.c rsa.c random.c \
queue.c \
atomicio.c compat.c fake-rfc2553.c
LOCAL_SRC_FILES+=\
common-session.c packet.c common-algo.c common-kex.c \
common-channel.c common-chansession.c termcodes.c \
tcp-accept.c listener.c process-packet.c \
common-runopts.c circbuffer.c \
loginrec.c
LOCAL_SRC_FILES+=\
svr-kex.c svr-algo.c svr-auth.c sshpty.c \
svr-authpasswd.c svr-authpubkey.c svr-authpubkeyoptions.c svr-session.c svr-service.c \
svr-chansession.c svr-runopts.c svr-agentfwd.c svr-main.c svr-x11fwd.c \
svr-tcpfwd.c svr-authpam.c
LOCAL_SRC_FILES+=freebsd_crypt.c
LOCAL_SRC_FILES+=openpty.c
LOCAL_STATIC_LIBRARIES := libtommath libtomcrypt
LOCAL_SHARED_LIBRARIES := \
libutils \
libcutils \
libc
LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
LOCAL_MODULE_TAGS := eng
LOCAL_MODULE := dropbear
LOCAL_C_INCLUDES += $(LOCAL_PATH)/libtommath
LOCAL_C_INCLUDES += $(LOCAL_PATH)/libtomcrypt/src/headers
LOCAL_CFLAGS += -DDROPBEAR_SERVER -DANDROID_CHANGES -DSFTPSERVER_PATH='"/data/data/com.teslacoilsw.quicksshd/dropbear/sftp-server"'
# -DSFTPSERVER_PATH=/data/data/com.teslacoilsw.quicksshd/dropbear/sftp-server
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:=\
dbutil.c buffer.c \
dss.c bignum.c \
signkey.c rsa.c random.c \
queue.c \
atomicio.c compat.c fake-rfc2553.c
LOCAL_SRC_FILES+=\
dropbearkey.c gendss.c genrsa.c
LOCAL_STATIC_LIBRARIES := libtommath libtomcrypt
LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
LOCAL_MODULE_TAGS := eng
LOCAL_MODULE := dropbearkey
LOCAL_C_INCLUDES += $(LOCAL_PATH)/libtommath
LOCAL_C_INCLUDES += $(LOCAL_PATH)/libtomcrypt/src/headers
LOCAL_CFLAGS += -DDROPBEAR_SERVER
include $(BUILD_EXECUTABLE)
endif # TARGET_SIMULATOR != true
include $(call all-makefiles-under,$(LOCAL_PATH))