• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LOCAL_PATH:= $(call my-dir)
2
3###################### libssh ######################
4include $(CLEAR_VARS)
5
6LOCAL_MODULE_TAGS := optional
7
8LOCAL_SRC_FILES := \
9    acss.c authfd.c authfile.c bufaux.c bufbn.c buffer.c \
10    canohost.c channels.c cipher.c cipher-acss.c cipher-aes.c \
11    cipher-bf1.c cipher-ctr.c cipher-3des1.c cleanup.c \
12    compat.c compress.c crc32.c deattack.c fatal.c hostfile.c \
13    log.c match.c md-sha256.c moduli.c nchan.c packet.c \
14    readpass.c rsa.c ttymodes.c xmalloc.c addrmatch.c \
15    atomicio.c key.c dispatch.c kex.c mac.c uidswap.c uuencode.c misc.c \
16    monitor_fdpass.c rijndael.c ssh-dss.c ssh-ecdsa.c ssh-rsa.c dh.c \
17    kexdh.c kexgex.c kexdhc.c kexgexc.c bufec.c kexecdh.c kexecdhc.c \
18    msg.c progressmeter.c dns.c entropy.c gss-genr.c umac.c jpake.c \
19    schnorr.c ssh-pkcs11.c roaming_dummy.c \
20    openbsd-compat/strtonum.c openbsd-compat/bsd-misc.c \
21    openbsd-compat/timingsafe_bcmp.c openbsd-compat/bsd-getpeereid.c \
22    openbsd-compat/readpassphrase.c openbsd-compat/vis.c \
23    openbsd-compat/port-tun.c openbsd-compat/setproctitle.c \
24    openbsd-compat/bsd-closefrom.c  openbsd-compat/getopt.c \
25    openbsd-compat/rresvport.c openbsd-compat/bindresvport.c \
26    openbsd-compat/bsd-statvfs.c openbsd-compat/xmmap.c \
27    openbsd-compat/port-linux.c openbsd-compat/strmode.c \
28    openbsd-compat/bsd-openpty.c \
29    openbsd-compat/fmt_scaled.c \
30    openbsd-compat/pwcache.c openbsd-compat/glob.c
31
32#    openbsd-compat/getrrsetbyname.c
33#    openbsd-compat/xcrypt.c
34
35LOCAL_C_INCLUDES := external/openssl/include external/zlib
36PRIVATE_C_INCLUDES := external/openssl/openbsd-compat
37
38LOCAL_SHARED_LIBRARIES += libssl libcrypto libdl libz
39
40LOCAL_MODULE := libssh
41
42LOCAL_CFLAGS+=-O3
43
44include $(BUILD_SHARED_LIBRARY)
45
46###################### ssh ######################
47
48include $(CLEAR_VARS)
49
50LOCAL_MODULE_TAGS := optional
51
52LOCAL_SRC_FILES := \
53    ssh.c readconf.c clientloop.c sshtty.c \
54    sshconnect.c sshconnect1.c sshconnect2.c mux.c \
55    roaming_common.c roaming_client.c
56
57LOCAL_MODULE := ssh
58
59LOCAL_C_INCLUDES := external/openssl/include
60PRIVATE_C_INCLUDES := external/openssl/openbsd-compat
61
62LOCAL_SHARED_LIBRARIES += libssh libssl libcrypto libdl libz
63
64include $(BUILD_EXECUTABLE)
65
66###################### sftp ######################
67
68include $(CLEAR_VARS)
69
70LOCAL_MODULE_TAGS := optional
71
72LOCAL_SRC_FILES := \
73    sftp.c sftp-client.c sftp-common.c sftp-glob.c progressmeter.c
74
75LOCAL_MODULE := sftp
76
77LOCAL_C_INCLUDES := external/openssl/include
78PRIVATE_C_INCLUDES := external/openssl/openbsd-compat
79
80LOCAL_SHARED_LIBRARIES += libssh libssl libcrypto libdl libz
81
82include $(BUILD_EXECUTABLE)
83
84###################### scp ######################
85
86include $(CLEAR_VARS)
87
88LOCAL_MODULE_TAGS := optional
89
90LOCAL_SRC_FILES := \
91    scp.c progressmeter.c bufaux.c
92
93LOCAL_MODULE := scp
94
95LOCAL_C_INCLUDES := external/openssl/include
96PRIVATE_C_INCLUDES := external/openssl/openbsd-compat
97
98LOCAL_SHARED_LIBRARIES += libssh libssl libcrypto libdl libz
99
100include $(BUILD_EXECUTABLE)
101
102###################### sshd ######################
103
104include $(CLEAR_VARS)
105
106LOCAL_MODULE_TAGS := optional
107
108LOCAL_SRC_FILES := \
109    sshd.c auth-rhosts.c auth-rsa.c auth-rh-rsa.c \
110	audit.c audit-bsm.c audit-linux.c platform.c \
111	sshpty.c sshlogin.c servconf.c serverloop.c \
112	auth.c auth1.c auth2.c auth-options.c session.c \
113	auth-chall.c auth2-chall.c groupaccess.c \
114	auth-skey.c auth-bsdauth.c auth2-hostbased.c auth2-kbdint.c \
115	auth2-none.c auth2-passwd.c auth2-pubkey.c auth2-jpake.c \
116	monitor_mm.c monitor.c monitor_wrap.c kexdhs.c kexgexs.c kexecdhs.c \
117	auth-krb5.c \
118	auth2-gss.c gss-serv.c gss-serv-krb5.c \
119	loginrec.c auth-pam.c auth-shadow.c auth-sia.c md5crypt.c \
120	sftp-server.c sftp-common.c \
121	roaming_common.c roaming_serv.c \
122	sandbox-null.c sandbox-rlimit.c sandbox-systrace.c sandbox-darwin.o
123
124# auth-passwd.c
125
126LOCAL_MODULE := sshd
127
128LOCAL_C_INCLUDES := external/openssl/include external/zlib
129PRIVATE_C_INCLUDES := external/openssl/openbsd-compat
130
131LOCAL_SHARED_LIBRARIES += libssh libssl libcrypto libdl libz libcutils
132
133include $(BUILD_EXECUTABLE)
134
135###################### ssh-keygen ######################
136
137include $(CLEAR_VARS)
138
139LOCAL_MODULE_TAGS := optional
140
141LOCAL_SRC_FILES := \
142    ssh-keygen.c
143
144LOCAL_MODULE := ssh-keygen
145
146LOCAL_C_INCLUDES := external/openssl/include
147PRIVATE_C_INCLUDES := external/openssl/openbsd-compat
148
149LOCAL_SHARED_LIBRARIES += libssh libssl libcrypto libdl libz
150
151include $(BUILD_EXECUTABLE)
152
153###################### sshd_config ######################
154
155include $(CLEAR_VARS)
156LOCAL_MODULE_TAGS := optional
157LOCAL_MODULE := sshd_config
158LOCAL_MODULE_CLASS := ETC
159LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/ssh
160LOCAL_SRC_FILES := sshd_config.android
161include $(BUILD_PREBUILT)
162
163###################### start-ssh ######################
164
165include $(CLEAR_VARS)
166LOCAL_MODULE_TAGS := optional
167LOCAL_MODULE := start-ssh
168LOCAL_MODULE_CLASS := EXECUTABLES
169LOCAL_SRC_FILES := start-ssh
170include $(BUILD_PREBUILT)
171