1LOCAL_PATH:= $(call my-dir) 2 3###################### libssh ###################### 4include $(CLEAR_VARS) 5 6LOCAL_MODULE_TAGS := optional 7 8LOCAL_SRC_FILES := \ 9 addrmatch.c \ 10 atomicio.c \ 11 authfd.c \ 12 authfile.c \ 13 bitmap.c \ 14 blocks.c \ 15 bufaux.c \ 16 bufbn.c \ 17 bufec.c \ 18 buffer.c \ 19 canohost.c \ 20 chacha.c \ 21 channels.c \ 22 cipher-aes.c \ 23 cipher-aesctr.c \ 24 cipher-chachapoly.c \ 25 cipher-ctr.c \ 26 cipher.c \ 27 cleanup.c \ 28 compat.c \ 29 crc32.c \ 30 deattack.c \ 31 dh.c \ 32 digest-openssl.c \ 33 dispatch.c \ 34 dns.c \ 35 ed25519.c \ 36 entropy.c \ 37 fatal.c \ 38 fe25519.c \ 39 ge25519.c \ 40 gss-genr.c \ 41 hash.c \ 42 hmac.c \ 43 hostfile.c \ 44 kex.c \ 45 kexc25519.c \ 46 kexc25519c.c \ 47 kexdh.c \ 48 kexdhc.c \ 49 kexecdh.c \ 50 kexecdhc.c \ 51 kexgex.c \ 52 kexgexc.c \ 53 key.c \ 54 krl.c \ 55 log.c \ 56 mac.c \ 57 match.c \ 58 md-sha256.c \ 59 misc.c \ 60 moduli.c \ 61 monitor_fdpass.c \ 62 msg.c \ 63 nchan.c \ 64 opacket.c \ 65 openbsd-compat/bcrypt_pbkdf.c \ 66 openbsd-compat/bindresvport.c \ 67 openbsd-compat/blowfish.c \ 68 openbsd-compat/bsd-closefrom.c \ 69 openbsd-compat/bsd-getpeereid.c \ 70 openbsd-compat/bsd-misc.c \ 71 openbsd-compat/bsd-openpty.c \ 72 openbsd-compat/bsd-statvfs.c \ 73 openbsd-compat/explicit_bzero.c \ 74 openbsd-compat/fmt_scaled.c \ 75 openbsd-compat/getopt_long.c \ 76 openbsd-compat/glob.c \ 77 openbsd-compat/openssl-compat.c \ 78 openbsd-compat/port-linux.c \ 79 openbsd-compat/port-tun.c \ 80 openbsd-compat/pwcache.c \ 81 openbsd-compat/readpassphrase.c \ 82 openbsd-compat/reallocarray.c \ 83 openbsd-compat/rresvport.c \ 84 openbsd-compat/setproctitle.c \ 85 openbsd-compat/strmode.c \ 86 openbsd-compat/strtonum.c \ 87 openbsd-compat/timingsafe_bcmp.c \ 88 openbsd-compat/vis.c \ 89 openbsd-compat/xmmap.c \ 90 packet.c \ 91 poly1305.c \ 92 readpass.c \ 93 rijndael.c \ 94 roaming_dummy.c \ 95 rsa.c \ 96 sc25519.c \ 97 smult_curve25519_ref.c \ 98 ssh-dss.c \ 99 ssh-ecdsa.c \ 100 ssh-ed25519.c \ 101 ssh-rsa.c \ 102 sshbuf-getput-basic.c \ 103 sshbuf-getput-crypto.c \ 104 sshbuf-misc.c \ 105 sshbuf.c \ 106 ssherr.c \ 107 sshkey.c \ 108 ttymodes.c \ 109 uidswap.c \ 110 umac.c \ 111 umac128.c \ 112 uuencode.c \ 113 verify.c \ 114 xmalloc.c 115 116LOCAL_C_INCLUDES := \ 117 external/zlib \ 118 external/openssl/include \ 119 external/openssh/openbsd-compat 120 121LOCAL_SHARED_LIBRARIES += libssl libcrypto libdl libz 122 123LOCAL_MODULE := libssh 124 125LOCAL_CFLAGS+=-O3 -Wno-unused-parameter 126 127include $(BUILD_SHARED_LIBRARY) 128 129###################### ssh ###################### 130 131include $(CLEAR_VARS) 132 133LOCAL_MODULE_TAGS := optional 134 135LOCAL_SRC_FILES := \ 136 ssh.c readconf.c clientloop.c sshtty.c \ 137 sshconnect.c sshconnect1.c sshconnect2.c mux.c \ 138 roaming_common.c roaming_client.c 139 140LOCAL_MODULE := ssh 141 142 143LOCAL_CFLAGS += -Wno-unused-parameter 144 145LOCAL_C_INCLUDES := \ 146 external/zlib \ 147 external/openssl/include \ 148 external/openssh/openbsd-compat 149 150LOCAL_SHARED_LIBRARIES += libssh libssl libcrypto libdl libz 151 152include $(BUILD_EXECUTABLE) 153 154###################### sftp ###################### 155 156include $(CLEAR_VARS) 157 158LOCAL_MODULE_TAGS := optional 159 160LOCAL_SRC_FILES := \ 161 sftp.c sftp-client.c sftp-common.c sftp-glob.c progressmeter.c 162 163LOCAL_MODULE := sftp 164 165LOCAL_CFLAGS += -Wno-unused-parameter 166 167LOCAL_C_INCLUDES := \ 168 external/zlib \ 169 external/openssl/include \ 170 external/openssh/openbsd-compat 171 172LOCAL_SHARED_LIBRARIES += libssh libssl libcrypto libdl libz 173 174include $(BUILD_EXECUTABLE) 175 176###################### scp ###################### 177 178include $(CLEAR_VARS) 179 180LOCAL_MODULE_TAGS := optional 181 182LOCAL_SRC_FILES := \ 183 scp.c progressmeter.c 184 185LOCAL_MODULE := scp 186 187LOCAL_CFLAGS += -Wno-unused-parameter 188 189LOCAL_C_INCLUDES := \ 190 external/zlib \ 191 external/openssl/include \ 192 external/openssh/openbsd-compat 193 194LOCAL_SHARED_LIBRARIES += libssh libssl libcrypto libdl libz 195 196include $(BUILD_EXECUTABLE) 197 198###################### sshd ###################### 199 200include $(CLEAR_VARS) 201 202LOCAL_MODULE_TAGS := optional 203 204LOCAL_SRC_FILES := \ 205 audit-bsm.c \ 206 audit-linux.c \ 207 audit.c \ 208 auth-bsdauth.c \ 209 auth-chall.c \ 210 auth-krb5.c \ 211 auth-options.c \ 212 auth-pam.c \ 213 auth-rh-rsa.c \ 214 auth-rhosts.c \ 215 auth-rsa.c \ 216 auth-shadow.c \ 217 auth-sia.c \ 218 auth-skey.c \ 219 auth.c \ 220 auth1.c \ 221 auth2-chall.c \ 222 auth2-gss.c \ 223 auth2-hostbased.c \ 224 auth2-kbdint.c \ 225 auth2-none.c \ 226 auth2-passwd.c \ 227 auth2-pubkey.c \ 228 auth2.c \ 229 groupaccess.c \ 230 gss-serv-krb5.c \ 231 gss-serv.c \ 232 kexc25519s.c \ 233 kexdhs.c \ 234 kexecdhs.c \ 235 kexgexs.c \ 236 loginrec.c \ 237 md5crypt.c \ 238 monitor.c \ 239 monitor_mm.c \ 240 monitor_wrap.c \ 241 platform.c \ 242 roaming_common.c \ 243 roaming_serv.c \ 244 sandbox-null.c \ 245 sandbox-rlimit.c \ 246 sandbox-systrace.c \ 247 servconf.c \ 248 serverloop.c \ 249 session.c \ 250 sftp-common.c \ 251 sftp-server.c \ 252 sshd.c \ 253 sshlogin.c \ 254 sshpty.c 255 256LOCAL_MODULE := sshd 257 258LOCAL_CFLAGS += -Wno-unused-parameter 259 260LOCAL_C_INCLUDES := \ 261 external/zlib \ 262 external/openssl/include \ 263 external/openssh/openbsd-compat 264 265LOCAL_SHARED_LIBRARIES += libssh libssl libcrypto libdl libz libcutils 266 267include $(BUILD_EXECUTABLE) 268 269###################### ssh-keygen ###################### 270 271include $(CLEAR_VARS) 272 273LOCAL_MODULE_TAGS := optional 274 275LOCAL_SRC_FILES := \ 276 ssh-keygen.c 277 278LOCAL_MODULE := ssh-keygen 279 280LOCAL_CFLAGS += -Wno-unused-parameter 281 282LOCAL_C_INCLUDES := \ 283 external/zlib \ 284 external/openssl/include \ 285 external/openssh/openbsd-compat 286 287LOCAL_SHARED_LIBRARIES += libssh libssl libcrypto libdl libz 288 289include $(BUILD_EXECUTABLE) 290 291###################### sshd_config ###################### 292 293include $(CLEAR_VARS) 294LOCAL_MODULE_TAGS := optional 295LOCAL_MODULE := sshd_config 296LOCAL_MODULE_CLASS := ETC 297LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/ssh 298LOCAL_SRC_FILES := sshd_config.android 299include $(BUILD_PREBUILT) 300 301###################### start-ssh ###################### 302 303include $(CLEAR_VARS) 304LOCAL_MODULE_TAGS := optional 305LOCAL_MODULE := start-ssh 306LOCAL_MODULE_CLASS := EXECUTABLES 307LOCAL_SRC_FILES := start-ssh 308include $(BUILD_PREBUILT) 309