2009-01-03 21:22:43 +00:00
|
|
|
|
|
|
|
# To compile on SunOS: add "-lsocket -lnsl" to LDFLAGS
|
2011-01-18 15:27:19 +00:00
|
|
|
# To compile with PKCS11: add "-lpkcs11-helper" to LDFLAGS
|
2009-01-03 21:22:43 +00:00
|
|
|
|
2015-02-18 15:55:05 +00:00
|
|
|
CFLAGS ?= -O2
|
|
|
|
WARNING_CFLAGS ?= -Wall -W -Wdeclaration-after-statement
|
2015-02-18 15:47:52 +00:00
|
|
|
LDFLAGS ?=
|
2015-02-18 15:55:05 +00:00
|
|
|
|
|
|
|
LOCAL_CFLAGS = $(WARNING_CFLAGS) -I../include -D_FILE_OFFSET_BITS=64
|
2015-02-18 15:47:52 +00:00
|
|
|
LOCAL_LDFLAGS = -L../library -lmbedtls$(SHARED_SUFFIX)
|
2009-01-03 21:22:43 +00:00
|
|
|
|
2012-04-05 12:08:29 +00:00
|
|
|
ifdef DEBUG
|
2015-02-18 15:55:05 +00:00
|
|
|
LOCAL_CFLAGS += -g3
|
2012-04-05 12:08:29 +00:00
|
|
|
endif
|
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
#
|
|
|
|
# if we running on Windows build
|
|
|
|
# for Windows
|
|
|
|
#
|
2012-05-10 20:49:10 +00:00
|
|
|
ifdef WINDOWS
|
2015-02-13 23:04:58 +00:00
|
|
|
WINDOWS_BUILD=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef WINDOWS_BUILD
|
|
|
|
DLEXT=dll
|
|
|
|
EXEXT=.exe
|
2015-02-18 15:47:52 +00:00
|
|
|
LOCAL_LDFLAGS += -lws2_32
|
2015-02-13 23:04:58 +00:00
|
|
|
ifdef SHARED
|
|
|
|
SHARED_SUFFIX=.$(DLEXT)
|
|
|
|
endif
|
2012-05-10 20:49:10 +00:00
|
|
|
endif
|
|
|
|
|
2012-07-03 13:30:23 +00:00
|
|
|
# Zlib shared library extensions:
|
|
|
|
ifdef ZLIB
|
2015-02-18 15:47:52 +00:00
|
|
|
LOCAL_LDFLAGS += -lz
|
2012-07-03 13:30:23 +00:00
|
|
|
endif
|
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
APPS = aes/aescrypt2$(EXEXT) aes/crypt_and_hash$(EXEXT) \
|
|
|
|
hash/hello$(EXEXT) hash/generic_sum$(EXEXT) \
|
|
|
|
hash/md5sum$(EXEXT) hash/sha1sum$(EXEXT) \
|
|
|
|
hash/sha2sum$(EXEXT) pkey/dh_client$(EXEXT) \
|
|
|
|
pkey/dh_genprime$(EXEXT) pkey/dh_server$(EXEXT) \
|
|
|
|
pkey/gen_key$(EXEXT) \
|
|
|
|
pkey/key_app$(EXEXT) pkey/key_app_writer$(EXEXT) \
|
|
|
|
pkey/mpi_demo$(EXEXT) pkey/pk_decrypt$(EXEXT) \
|
|
|
|
pkey/pk_encrypt$(EXEXT) pkey/pk_sign$(EXEXT) \
|
|
|
|
pkey/pk_verify$(EXEXT) pkey/rsa_genkey$(EXEXT) \
|
|
|
|
pkey/rsa_decrypt$(EXEXT) pkey/rsa_encrypt$(EXEXT) \
|
|
|
|
pkey/rsa_sign$(EXEXT) pkey/rsa_verify$(EXEXT) \
|
|
|
|
pkey/rsa_sign_pss$(EXEXT) pkey/rsa_verify_pss$(EXEXT) \
|
|
|
|
ssl/ssl_client1$(EXEXT) ssl/ssl_client2$(EXEXT) \
|
|
|
|
ssl/ssl_server$(EXEXT) ssl/ssl_server2$(EXEXT) \
|
2014-11-24 13:05:25 +00:00
|
|
|
ssl/ssl_fork_server$(EXEXT) ssl/mini_client$(EXEXT) \
|
2015-02-13 23:04:58 +00:00
|
|
|
ssl/ssl_mail_client$(EXEXT) random/gen_entropy$(EXEXT) \
|
|
|
|
random/gen_random_havege$(EXEXT) \
|
|
|
|
random/gen_random_ctr_drbg$(EXEXT) \
|
|
|
|
test/ssl_cert_test$(EXEXT) test/benchmark$(EXEXT) \
|
|
|
|
test/selftest$(EXEXT) test/ssl_test$(EXEXT) \
|
|
|
|
util/pem2der$(EXEXT) util/strerror$(EXEXT) \
|
|
|
|
x509/cert_app$(EXEXT) x509/crl_app$(EXEXT) \
|
|
|
|
x509/cert_req$(EXEXT)
|
2009-01-03 21:22:43 +00:00
|
|
|
|
2012-05-19 08:43:48 +00:00
|
|
|
ifdef OPENSSL
|
|
|
|
APPS += test/o_p_test
|
|
|
|
endif
|
|
|
|
|
2013-12-19 14:40:58 +00:00
|
|
|
ifdef PTHREAD
|
|
|
|
APPS += ssl/ssl_pthread_server
|
|
|
|
endif
|
|
|
|
|
2009-01-03 21:22:43 +00:00
|
|
|
.SILENT:
|
|
|
|
|
|
|
|
all: $(APPS)
|
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
aes/aescrypt2$(EXEXT): aes/aescrypt2.c ../library/libmbedtls.a
|
2009-01-03 21:22:43 +00:00
|
|
|
echo " CC aes/aescrypt2.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) aes/aescrypt2.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-03 21:22:43 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
aes/crypt_and_hash$(EXEXT): aes/crypt_and_hash.c ../library/libmbedtls.a
|
2011-01-21 09:32:12 +00:00
|
|
|
echo " CC aes/crypt_and_hash.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) aes/crypt_and_hash.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2011-01-21 09:32:12 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
hash/hello$(EXEXT): hash/hello.c ../library/libmbedtls.a
|
2009-01-03 21:22:43 +00:00
|
|
|
echo " CC hash/hello.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) hash/hello.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-03 21:22:43 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
hash/generic_sum$(EXEXT): hash/generic_sum.c ../library/libmbedtls.a
|
2011-01-21 10:21:11 +00:00
|
|
|
echo " CC hash/generic_sum.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) hash/generic_sum.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2011-01-21 10:21:11 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
hash/md5sum$(EXEXT): hash/md5sum.c ../library/libmbedtls.a
|
2009-01-03 21:22:43 +00:00
|
|
|
echo " CC hash/md5sum.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) hash/md5sum.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-03 21:22:43 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
hash/sha1sum$(EXEXT): hash/sha1sum.c ../library/libmbedtls.a
|
2009-01-03 21:22:43 +00:00
|
|
|
echo " CC hash/sha1sum.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) hash/sha1sum.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-03 21:22:43 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
hash/sha2sum$(EXEXT): hash/sha2sum.c ../library/libmbedtls.a
|
2009-01-03 21:22:43 +00:00
|
|
|
echo " CC hash/sha2sum.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) hash/sha2sum.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-03 21:22:43 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
pkey/dh_client$(EXEXT): pkey/dh_client.c ../library/libmbedtls.a
|
2009-01-03 21:22:43 +00:00
|
|
|
echo " CC pkey/dh_client.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/dh_client.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-03 21:22:43 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
pkey/dh_genprime$(EXEXT): pkey/dh_genprime.c ../library/libmbedtls.a
|
2009-01-03 21:22:43 +00:00
|
|
|
echo " CC pkey/dh_genprime.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/dh_genprime.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-03 21:22:43 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
pkey/dh_server$(EXEXT): pkey/dh_server.c ../library/libmbedtls.a
|
2009-01-03 21:22:43 +00:00
|
|
|
echo " CC pkey/dh_server.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/dh_server.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-03 21:22:43 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
pkey/ecdsa$(EXEXT): pkey/ecdsa.c ../library/libmbedtls.a
|
2013-08-09 15:10:27 +00:00
|
|
|
echo " CC pkey/ecdsa.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/ecdsa.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2013-08-09 15:10:27 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
pkey/gen_key$(EXEXT): pkey/gen_key.c ../library/libmbedtls.a
|
2013-09-23 10:05:44 +00:00
|
|
|
echo " CC pkey/gen_key.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/gen_key.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2013-09-23 10:05:44 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
pkey/key_app$(EXEXT): pkey/key_app.c ../library/libmbedtls.a
|
2011-07-13 11:26:43 +00:00
|
|
|
echo " CC pkey/key_app.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/key_app.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2011-07-13 11:26:43 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
pkey/key_app_writer$(EXEXT): pkey/key_app_writer.c ../library/libmbedtls.a
|
2012-02-13 23:11:30 +00:00
|
|
|
echo " CC pkey/key_app_writer.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/key_app_writer.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2012-02-13 23:11:30 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
pkey/mpi_demo$(EXEXT): pkey/mpi_demo.c ../library/libmbedtls.a
|
2009-01-03 21:22:43 +00:00
|
|
|
echo " CC pkey/mpi_demo.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/mpi_demo.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-03 21:22:43 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
pkey/pk_decrypt$(EXEXT): pkey/pk_decrypt.c ../library/libmbedtls.a
|
2013-09-18 13:34:57 +00:00
|
|
|
echo " CC pkey/pk_decrypt.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/pk_decrypt.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2013-09-18 13:34:57 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
pkey/pk_encrypt$(EXEXT): pkey/pk_encrypt.c ../library/libmbedtls.a
|
2013-09-18 13:34:57 +00:00
|
|
|
echo " CC pkey/pk_encrypt.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/pk_encrypt.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2013-09-18 13:34:57 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
pkey/pk_sign$(EXEXT): pkey/pk_sign.c ../library/libmbedtls.a
|
2013-09-18 13:34:57 +00:00
|
|
|
echo " CC pkey/pk_sign.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/pk_sign.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2013-09-18 13:34:57 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
pkey/pk_verify$(EXEXT): pkey/pk_verify.c ../library/libmbedtls.a
|
2013-09-18 13:34:57 +00:00
|
|
|
echo " CC pkey/pk_verify.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/pk_verify.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2013-09-18 13:34:57 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
pkey/rsa_genkey$(EXEXT): pkey/rsa_genkey.c ../library/libmbedtls.a
|
2009-01-03 21:22:43 +00:00
|
|
|
echo " CC pkey/rsa_genkey.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_genkey.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-03 21:22:43 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
pkey/rsa_sign$(EXEXT): pkey/rsa_sign.c ../library/libmbedtls.a
|
2009-01-03 21:22:43 +00:00
|
|
|
echo " CC pkey/rsa_sign.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_sign.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-03 21:22:43 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
pkey/rsa_verify$(EXEXT): pkey/rsa_verify.c ../library/libmbedtls.a
|
2009-01-03 21:22:43 +00:00
|
|
|
echo " CC pkey/rsa_verify.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_verify.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-03 21:22:43 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
pkey/rsa_sign_pss$(EXEXT): pkey/rsa_sign_pss.c ../library/libmbedtls.a
|
2011-03-25 14:01:32 +00:00
|
|
|
echo " CC pkey/rsa_sign_pss.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_sign_pss.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2011-03-25 14:01:32 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
pkey/rsa_verify_pss$(EXEXT): pkey/rsa_verify_pss.c ../library/libmbedtls.a
|
2011-03-25 14:01:32 +00:00
|
|
|
echo " CC pkey/rsa_verify_pss.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_verify_pss.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2011-03-25 14:01:32 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
pkey/rsa_decrypt$(EXEXT): pkey/rsa_decrypt.c ../library/libmbedtls.a
|
2011-08-09 10:30:36 +00:00
|
|
|
echo " CC pkey/rsa_decrypt.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_decrypt.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2011-08-09 10:30:36 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
pkey/rsa_encrypt$(EXEXT): pkey/rsa_encrypt.c ../library/libmbedtls.a
|
2011-08-09 10:30:36 +00:00
|
|
|
echo " CC pkey/rsa_encrypt.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_encrypt.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2011-08-09 10:30:36 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
random/gen_entropy$(EXEXT): random/gen_entropy.c ../library/libmbedtls.a
|
2011-12-03 21:45:14 +00:00
|
|
|
echo " CC random/gen_entropy.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) random/gen_entropy.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2011-12-03 21:45:14 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
random/gen_random_havege$(EXEXT): random/gen_random_havege.c ../library/libmbedtls.a
|
2011-12-03 21:45:14 +00:00
|
|
|
echo " CC random/gen_random_havege.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) random/gen_random_havege.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2011-12-03 21:45:14 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
random/gen_random_ctr_drbg$(EXEXT): random/gen_random_ctr_drbg.c ../library/libmbedtls.a
|
2011-12-03 21:45:14 +00:00
|
|
|
echo " CC random/gen_random_ctr_drbg.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) random/gen_random_ctr_drbg.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2011-01-27 16:50:02 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
ssl/ssl_client1$(EXEXT): ssl/ssl_client1.c ../library/libmbedtls.a
|
2009-01-03 21:22:43 +00:00
|
|
|
echo " CC ssl/ssl_client1.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_client1.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-03 21:22:43 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
ssl/ssl_client2$(EXEXT): ssl/ssl_client2.c ../library/libmbedtls.a
|
2009-01-03 21:22:43 +00:00
|
|
|
echo " CC ssl/ssl_client2.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_client2.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-03 21:22:43 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
ssl/ssl_server$(EXEXT): ssl/ssl_server.c ../library/libmbedtls.a
|
2009-01-03 21:22:43 +00:00
|
|
|
echo " CC ssl/ssl_server.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_server.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-03 21:22:43 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
ssl/ssl_server2$(EXEXT): ssl/ssl_server2.c ../library/libmbedtls.a
|
2012-09-25 09:05:17 +00:00
|
|
|
echo " CC ssl/ssl_server2.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_server2.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2012-09-25 09:05:17 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
ssl/ssl_fork_server$(EXEXT): ssl/ssl_fork_server.c ../library/libmbedtls.a
|
2011-05-20 12:33:05 +00:00
|
|
|
echo " CC ssl/ssl_fork_server.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_fork_server.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2011-05-20 12:33:05 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
ssl/ssl_pthread_server$(EXEXT): ssl/ssl_pthread_server.c ../library/libmbedtls.a
|
2013-12-19 14:40:58 +00:00
|
|
|
echo " CC ssl/ssl_pthread_server.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_pthread_server.c $(LOCAL_LDFLAGS) -lpthread $(LDFLAGS) -o $@
|
2013-12-19 14:40:58 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
ssl/ssl_mail_client$(EXEXT): ssl/ssl_mail_client.c ../library/libmbedtls.a
|
2011-05-23 12:07:29 +00:00
|
|
|
echo " CC ssl/ssl_mail_client.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_mail_client.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2011-05-23 12:07:29 +00:00
|
|
|
|
2014-11-24 13:05:25 +00:00
|
|
|
ssl/mini_client$(EXEXT): ssl/mini_client.c ../library/libmbedtls.a
|
|
|
|
echo " CC ssl/mini_client.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/mini_client.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2014-11-24 13:05:25 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
test/ssl_cert_test$(EXEXT): test/ssl_cert_test.c ../library/libmbedtls.a
|
2009-02-09 22:32:35 +00:00
|
|
|
echo " CC test/ssl_cert_test.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) test/ssl_cert_test.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-02-09 22:32:35 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
test/benchmark$(EXEXT): test/benchmark.c ../library/libmbedtls.a
|
2009-01-03 21:22:43 +00:00
|
|
|
echo " CC test/benchmark.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) test/benchmark.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-03 21:22:43 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
test/selftest$(EXEXT): test/selftest.c ../library/libmbedtls.a
|
2009-01-03 21:22:43 +00:00
|
|
|
echo " CC test/selftest.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) test/selftest.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-03 21:22:43 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
test/ssl_test$(EXEXT): test/ssl_test.c ../library/libmbedtls.a
|
2009-01-03 21:22:43 +00:00
|
|
|
echo " CC test/ssl_test.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) test/ssl_test.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-03 21:22:43 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
test/o_p_test$(EXEXT): test/o_p_test.c ../library/libmbedtls.a
|
2012-05-19 08:43:48 +00:00
|
|
|
echo " CC test/o_p_test.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) test/o_p_test.c $(LOCAL_LDFLAGS) -lssl -lcrypto $(LDFLAGS) -o $@
|
2012-05-19 08:43:48 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
util/pem2der$(EXEXT): util/pem2der.c ../library/libmbedtls.a
|
2013-08-25 12:50:09 +00:00
|
|
|
echo " CC util/pem2der.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) util/pem2der.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2013-08-25 12:50:09 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
util/strerror$(EXEXT): util/strerror.c ../library/libmbedtls.a
|
2012-05-08 08:36:15 +00:00
|
|
|
echo " CC util/strerror.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) util/strerror.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2012-05-08 08:36:15 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
x509/cert_app$(EXEXT): x509/cert_app.c ../library/libmbedtls.a
|
2010-03-18 20:11:58 +00:00
|
|
|
echo " CC x509/cert_app.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/cert_app.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2010-03-18 20:11:58 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
x509/crl_app$(EXEXT): x509/crl_app.c ../library/libmbedtls.a
|
2011-02-12 15:27:28 +00:00
|
|
|
echo " CC x509/crl_app.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/crl_app.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2011-02-12 15:27:28 +00:00
|
|
|
|
2015-02-13 23:04:58 +00:00
|
|
|
x509/cert_req$(EXEXT): x509/cert_req.c ../library/libmbedtls.a
|
2012-02-13 23:11:30 +00:00
|
|
|
echo " CC x509/cert_req.c"
|
2015-02-18 15:55:05 +00:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/cert_req.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2012-02-13 23:11:30 +00:00
|
|
|
|
2009-01-03 21:22:43 +00:00
|
|
|
clean:
|
2012-05-10 21:26:28 +00:00
|
|
|
ifndef WINDOWS
|
2009-01-03 21:22:43 +00:00
|
|
|
rm -f $(APPS)
|
2012-05-10 21:26:28 +00:00
|
|
|
endif
|
|
|
|
ifdef WINDOWS
|
|
|
|
del /S /Q /F *.o *.exe
|
|
|
|
endif
|
2013-09-16 11:33:42 +00:00
|
|
|
|
|
|
|
list:
|
|
|
|
echo $(APPS)
|