2009-01-04 00:22:43 +03:00
|
|
|
|
|
|
|
# To compile on SunOS: add "-lsocket -lnsl" to LDFLAGS
|
2011-01-18 18:27:19 +03:00
|
|
|
# To compile with PKCS11: add "-lpkcs11-helper" to LDFLAGS
|
2009-01-04 00:22:43 +03:00
|
|
|
|
2015-02-18 18:55:05 +03:00
|
|
|
CFLAGS ?= -O2
|
2019-07-02 21:03:01 +03:00
|
|
|
WARNING_CFLAGS ?= -Wall -Wextra
|
|
|
|
WARNING_CXXFLAGS ?= -Wall -Wextra
|
2015-02-18 18:47:52 +03:00
|
|
|
LDFLAGS ?=
|
2015-02-18 18:55:05 +03:00
|
|
|
|
|
|
|
LOCAL_CFLAGS = $(WARNING_CFLAGS) -I../include -D_FILE_OFFSET_BITS=64
|
2018-03-15 00:24:01 +03:00
|
|
|
LOCAL_CXXFLAGS = $(WARNING_CXXFLAGS) -I../include -D_FILE_OFFSET_BITS=64
|
2015-06-24 14:06:24 +03:00
|
|
|
LOCAL_LDFLAGS = -L../library \
|
2015-06-25 09:45:12 +03:00
|
|
|
-lmbedtls$(SHARED_SUFFIX) \
|
2015-06-24 14:06:24 +03:00
|
|
|
-lmbedx509$(SHARED_SUFFIX) \
|
2015-06-25 09:45:12 +03:00
|
|
|
-lmbedcrypto$(SHARED_SUFFIX)
|
2015-06-24 14:06:24 +03:00
|
|
|
|
2018-10-25 19:37:00 +03:00
|
|
|
LOCAL_LDFLAGS += -L../crypto/library
|
2018-11-23 17:45:43 +03:00
|
|
|
LOCAL_CFLAGS += -I../crypto/include
|
|
|
|
LOCAL_CXXFLAGS += -I../crypto/include
|
2018-10-25 19:37:00 +03:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
ifndef SHARED
|
2019-06-07 15:48:38 +03:00
|
|
|
DEP=../crypto/library/libmbedcrypto.a ../library/libmbedx509.a ../library/libmbedtls.a
|
2015-06-24 14:06:24 +03:00
|
|
|
else
|
2019-06-07 15:48:38 +03:00
|
|
|
DEP=../crypto/library/libmbedcrypto.$(DLEXT) ../library/libmbedx509.$(DLEXT) ../library/libmbedtls.$(DLEXT)
|
2015-06-24 14:06:24 +03:00
|
|
|
endif
|
2009-01-04 00:22:43 +03:00
|
|
|
|
2012-04-05 16:08:29 +04:00
|
|
|
ifdef DEBUG
|
2015-02-18 18:55:05 +03:00
|
|
|
LOCAL_CFLAGS += -g3
|
2012-04-05 16:08:29 +04:00
|
|
|
endif
|
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
# if we're running on Windows, build for Windows
|
2012-05-11 00:49:10 +04:00
|
|
|
ifdef WINDOWS
|
2015-02-14 02:04:58 +03:00
|
|
|
WINDOWS_BUILD=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef WINDOWS_BUILD
|
|
|
|
DLEXT=dll
|
|
|
|
EXEXT=.exe
|
2015-02-18 18:47:52 +03:00
|
|
|
LOCAL_LDFLAGS += -lws2_32
|
2015-02-14 02:04:58 +03:00
|
|
|
ifdef SHARED
|
|
|
|
SHARED_SUFFIX=.$(DLEXT)
|
|
|
|
endif
|
2015-06-24 13:16:20 +03:00
|
|
|
else
|
2018-03-27 21:17:21 +03:00
|
|
|
DLEXT ?= so
|
2015-06-24 13:16:20 +03:00
|
|
|
EXEXT=
|
|
|
|
SHARED_SUFFIX=
|
2012-05-11 00:49:10 +04:00
|
|
|
endif
|
|
|
|
|
2012-07-03 17:30:23 +04:00
|
|
|
# Zlib shared library extensions:
|
|
|
|
ifdef ZLIB
|
2015-02-18 18:47:52 +03:00
|
|
|
LOCAL_LDFLAGS += -lz
|
2012-07-03 17:30:23 +04:00
|
|
|
endif
|
|
|
|
|
2015-02-14 02:04:58 +03:00
|
|
|
APPS = aes/aescrypt2$(EXEXT) aes/crypt_and_hash$(EXEXT) \
|
|
|
|
hash/hello$(EXEXT) hash/generic_sum$(EXEXT) \
|
2015-05-28 16:51:21 +03:00
|
|
|
pkey/dh_client$(EXEXT) \
|
2015-02-14 02:04:58 +03:00
|
|
|
pkey/dh_genprime$(EXEXT) pkey/dh_server$(EXEXT) \
|
2015-10-09 14:11:14 +03:00
|
|
|
pkey/ecdh_curve25519$(EXEXT) \
|
2015-06-29 16:47:35 +03:00
|
|
|
pkey/ecdsa$(EXEXT) pkey/gen_key$(EXEXT) \
|
2015-02-14 02:04:58 +03:00
|
|
|
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) \
|
2015-02-16 21:37:53 +03:00
|
|
|
ssl/dtls_client$(EXEXT) ssl/dtls_server$(EXEXT) \
|
2015-02-14 02:04:58 +03:00
|
|
|
ssl/ssl_client1$(EXEXT) ssl/ssl_client2$(EXEXT) \
|
|
|
|
ssl/ssl_server$(EXEXT) ssl/ssl_server2$(EXEXT) \
|
2014-11-24 16:05:25 +03:00
|
|
|
ssl/ssl_fork_server$(EXEXT) ssl/mini_client$(EXEXT) \
|
2015-02-14 02:04:58 +03:00
|
|
|
ssl/ssl_mail_client$(EXEXT) random/gen_entropy$(EXEXT) \
|
|
|
|
random/gen_random_havege$(EXEXT) \
|
|
|
|
random/gen_random_ctr_drbg$(EXEXT) \
|
2019-04-07 16:42:25 +03:00
|
|
|
test/benchmark$(EXEXT) \
|
2015-03-06 17:49:37 +03:00
|
|
|
test/selftest$(EXEXT) test/udp_proxy$(EXEXT) \
|
2017-10-25 00:35:13 +03:00
|
|
|
test/zeroize$(EXEXT) \
|
2018-10-26 20:41:08 +03:00
|
|
|
test/query_compile_time_config$(EXEXT) \
|
2015-02-14 02:04:58 +03:00
|
|
|
util/pem2der$(EXEXT) util/strerror$(EXEXT) \
|
|
|
|
x509/cert_app$(EXEXT) x509/crl_app$(EXEXT) \
|
2015-06-29 16:47:35 +03:00
|
|
|
x509/cert_req$(EXEXT) x509/cert_write$(EXEXT) \
|
|
|
|
x509/req_app$(EXEXT)
|
2009-01-04 00:22:43 +03:00
|
|
|
|
2013-12-19 18:40:58 +04:00
|
|
|
ifdef PTHREAD
|
2015-06-29 16:47:35 +03:00
|
|
|
APPS += ssl/ssl_pthread_server$(EXEXT)
|
2013-12-19 18:40:58 +04:00
|
|
|
endif
|
|
|
|
|
2018-03-15 12:16:24 +03:00
|
|
|
ifdef TEST_CPP
|
2018-03-16 14:37:44 +03:00
|
|
|
APPS += test/cpp_dummy_build$(EXEXT)
|
2018-03-15 12:16:24 +03:00
|
|
|
endif
|
|
|
|
|
2009-01-04 00:22:43 +03:00
|
|
|
.SILENT:
|
|
|
|
|
2019-06-27 09:46:45 +03:00
|
|
|
.PHONY: all clean list fuzz
|
2015-06-24 14:06:24 +03:00
|
|
|
|
2009-01-04 00:22:43 +03:00
|
|
|
all: $(APPS)
|
2019-07-10 21:37:57 +03:00
|
|
|
ifndef WINDOWS
|
|
|
|
# APPS doesn't include the fuzzing programs, which aren't "normal"
|
|
|
|
# sample or test programs, and don't build with MSVC which is
|
|
|
|
# warning about fopen
|
|
|
|
all: fuzz
|
|
|
|
endif
|
2019-06-27 09:46:45 +03:00
|
|
|
|
|
|
|
fuzz:
|
|
|
|
$(MAKE) -C fuzz
|
2009-01-04 00:22:43 +03:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
$(DEP):
|
2015-06-26 17:50:24 +03:00
|
|
|
$(MAKE) -C ../library
|
2015-06-24 14:06:24 +03:00
|
|
|
|
|
|
|
aes/aescrypt2$(EXEXT): aes/aescrypt2.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC aes/aescrypt2.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) aes/aescrypt2.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-04 00:22:43 +03:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
aes/crypt_and_hash$(EXEXT): aes/crypt_and_hash.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC aes/crypt_and_hash.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) aes/crypt_and_hash.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2011-01-21 12:32:12 +03:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
hash/hello$(EXEXT): hash/hello.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC hash/hello.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) hash/hello.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-04 00:22:43 +03:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
hash/generic_sum$(EXEXT): hash/generic_sum.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC hash/generic_sum.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) hash/generic_sum.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2011-01-21 13:21:11 +03:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
pkey/dh_client$(EXEXT): pkey/dh_client.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC pkey/dh_client.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/dh_client.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-04 00:22:43 +03:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
pkey/dh_genprime$(EXEXT): pkey/dh_genprime.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC pkey/dh_genprime.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/dh_genprime.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-04 00:22:43 +03:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
pkey/dh_server$(EXEXT): pkey/dh_server.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC pkey/dh_server.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/dh_server.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-04 00:22:43 +03:00
|
|
|
|
2015-10-09 14:11:14 +03:00
|
|
|
pkey/ecdh_curve25519$(EXEXT): pkey/ecdh_curve25519.c $(DEP)
|
|
|
|
echo " CC pkey/ecdh_curve25519.c"
|
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/ecdh_curve25519.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
pkey/ecdsa$(EXEXT): pkey/ecdsa.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC pkey/ecdsa.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/ecdsa.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2013-08-09 19:10:27 +04:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
pkey/gen_key$(EXEXT): pkey/gen_key.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC pkey/gen_key.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/gen_key.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2013-09-23 14:05:44 +04:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
pkey/key_app$(EXEXT): pkey/key_app.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC pkey/key_app.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/key_app.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2011-07-13 15:26:43 +04:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
pkey/key_app_writer$(EXEXT): pkey/key_app_writer.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC pkey/key_app_writer.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/key_app_writer.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2012-02-14 03:11:30 +04:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
pkey/mpi_demo$(EXEXT): pkey/mpi_demo.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC pkey/mpi_demo.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/mpi_demo.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-04 00:22:43 +03:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
pkey/pk_decrypt$(EXEXT): pkey/pk_decrypt.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC pkey/pk_decrypt.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/pk_decrypt.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2013-09-18 17:34:57 +04:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
pkey/pk_encrypt$(EXEXT): pkey/pk_encrypt.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC pkey/pk_encrypt.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/pk_encrypt.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2013-09-18 17:34:57 +04:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
pkey/pk_sign$(EXEXT): pkey/pk_sign.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC pkey/pk_sign.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/pk_sign.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2013-09-18 17:34:57 +04:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
pkey/pk_verify$(EXEXT): pkey/pk_verify.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC pkey/pk_verify.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/pk_verify.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2013-09-18 17:34:57 +04:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
pkey/rsa_genkey$(EXEXT): pkey/rsa_genkey.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC pkey/rsa_genkey.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_genkey.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-04 00:22:43 +03:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
pkey/rsa_sign$(EXEXT): pkey/rsa_sign.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC pkey/rsa_sign.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_sign.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-04 00:22:43 +03:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
pkey/rsa_verify$(EXEXT): pkey/rsa_verify.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC pkey/rsa_verify.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_verify.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-04 00:22:43 +03:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
pkey/rsa_sign_pss$(EXEXT): pkey/rsa_sign_pss.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC pkey/rsa_sign_pss.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_sign_pss.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2011-03-25 17:01:32 +03:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
pkey/rsa_verify_pss$(EXEXT): pkey/rsa_verify_pss.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC pkey/rsa_verify_pss.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_verify_pss.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2011-03-25 17:01:32 +03:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
pkey/rsa_decrypt$(EXEXT): pkey/rsa_decrypt.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC pkey/rsa_decrypt.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_decrypt.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2011-08-09 14:30:36 +04:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
pkey/rsa_encrypt$(EXEXT): pkey/rsa_encrypt.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC pkey/rsa_encrypt.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_encrypt.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2011-08-09 14:30:36 +04:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
random/gen_entropy$(EXEXT): random/gen_entropy.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC random/gen_entropy.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) random/gen_entropy.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2011-12-04 01:45:14 +04:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
random/gen_random_havege$(EXEXT): random/gen_random_havege.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC random/gen_random_havege.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) random/gen_random_havege.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2011-12-04 01:45:14 +04:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
random/gen_random_ctr_drbg$(EXEXT): random/gen_random_ctr_drbg.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC random/gen_random_ctr_drbg.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) random/gen_random_ctr_drbg.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2011-01-27 19:50:02 +03:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
ssl/dtls_client$(EXEXT): ssl/dtls_client.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC ssl/dtls_client.c"
|
2015-06-24 13:16:20 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/dtls_client.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2014-10-14 13:47:21 +04:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
ssl/dtls_server$(EXEXT): ssl/dtls_server.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC ssl/dtls_server.c"
|
2015-06-24 13:16:20 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/dtls_server.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2014-10-14 13:47:21 +04:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
ssl/ssl_client1$(EXEXT): ssl/ssl_client1.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC ssl/ssl_client1.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_client1.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-04 00:22:43 +03:00
|
|
|
|
2018-10-16 23:08:38 +03:00
|
|
|
ssl/ssl_client2$(EXEXT): ssl/ssl_client2.c ssl/query_config.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC ssl/ssl_client2.c"
|
2018-10-16 23:08:38 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_client2.c ssl/query_config.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-04 00:22:43 +03:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
ssl/ssl_server$(EXEXT): ssl/ssl_server.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC ssl/ssl_server.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_server.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-04 00:22:43 +03:00
|
|
|
|
2018-10-16 23:08:38 +03:00
|
|
|
ssl/ssl_server2$(EXEXT): ssl/ssl_server2.c ssl/query_config.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC ssl/ssl_server2.c"
|
2018-10-16 23:08:38 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_server2.c ssl/query_config.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2012-09-25 13:05:17 +04:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
ssl/ssl_fork_server$(EXEXT): ssl/ssl_fork_server.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC ssl/ssl_fork_server.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_fork_server.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2011-05-20 16:33:05 +04:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
ssl/ssl_pthread_server$(EXEXT): ssl/ssl_pthread_server.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC ssl/ssl_pthread_server.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_pthread_server.c $(LOCAL_LDFLAGS) -lpthread $(LDFLAGS) -o $@
|
2013-12-19 18:40:58 +04:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
ssl/ssl_mail_client$(EXEXT): ssl/ssl_mail_client.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC ssl/ssl_mail_client.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_mail_client.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2011-05-23 16:07:29 +04:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
ssl/mini_client$(EXEXT): ssl/mini_client.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC ssl/mini_client.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/mini_client.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2014-11-24 16:05:25 +03:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
test/benchmark$(EXEXT): test/benchmark.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC test/benchmark.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) test/benchmark.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-04 00:22:43 +03:00
|
|
|
|
2018-03-16 14:37:44 +03:00
|
|
|
test/cpp_dummy_build$(EXEXT): test/cpp_dummy_build.cpp $(DEP)
|
|
|
|
echo " CXX test/cpp_dummy_build.cpp"
|
|
|
|
$(CXX) $(LOCAL_CXXFLAGS) $(CXXFLAGS) test/cpp_dummy_build.cpp $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2018-03-15 00:24:01 +03:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
test/selftest$(EXEXT): test/selftest.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC test/selftest.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) test/selftest.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2009-01-04 00:22:43 +03:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
test/udp_proxy$(EXEXT): test/udp_proxy.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC test/udp_proxy.c"
|
2015-06-24 13:16:20 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) test/udp_proxy.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2014-09-04 16:55:28 +04:00
|
|
|
|
2017-10-24 23:10:45 +03:00
|
|
|
test/zeroize$(EXEXT): test/zeroize.c $(DEP)
|
|
|
|
echo " CC test/zeroize.c"
|
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) test/zeroize.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
|
|
|
|
2018-10-26 20:41:08 +03:00
|
|
|
test/query_compile_time_config$(EXEXT): test/query_compile_time_config.c ssl/query_config.c $(DEP)
|
|
|
|
echo " CC test/query_compile_time_config.c"
|
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) test/query_compile_time_config.c ssl/query_config.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
util/pem2der$(EXEXT): util/pem2der.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC util/pem2der.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) util/pem2der.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2013-08-25 16:50:09 +04:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
util/strerror$(EXEXT): util/strerror.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC util/strerror.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) util/strerror.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2012-05-08 12:36:15 +04:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
x509/cert_app$(EXEXT): x509/cert_app.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC x509/cert_app.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/cert_app.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2010-03-18 23:11:58 +03:00
|
|
|
|
2015-06-29 16:47:35 +03:00
|
|
|
x509/cert_write$(EXEXT): x509/cert_write.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC x509/cert_write.c"
|
2015-06-29 16:47:35 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/cert_write.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
x509/crl_app$(EXEXT): x509/crl_app.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC x509/crl_app.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/crl_app.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2011-02-12 18:27:28 +03:00
|
|
|
|
2015-06-24 14:06:24 +03:00
|
|
|
x509/cert_req$(EXEXT): x509/cert_req.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC x509/cert_req.c"
|
2015-02-18 18:55:05 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/cert_req.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
2012-02-14 03:11:30 +04:00
|
|
|
|
2015-06-29 16:47:35 +03:00
|
|
|
x509/req_app$(EXEXT): x509/req_app.c $(DEP)
|
2015-07-09 00:12:06 +03:00
|
|
|
echo " CC x509/req_app.c"
|
2015-06-29 16:47:35 +03:00
|
|
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/req_app.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
|
|
|
|
2009-01-04 00:22:43 +03:00
|
|
|
clean:
|
2012-05-11 01:26:28 +04:00
|
|
|
ifndef WINDOWS
|
2009-01-04 00:22:43 +03:00
|
|
|
rm -f $(APPS)
|
2019-06-03 11:14:14 +03:00
|
|
|
-rm -f ssl/ssl_pthread_server$(EXEXT)
|
|
|
|
-rm -f test/cpp_dummy_build$(EXEXT)
|
2015-06-24 14:06:24 +03:00
|
|
|
else
|
2015-06-25 15:18:20 +03:00
|
|
|
del /S /Q /F *.o *.exe
|
2012-05-11 01:26:28 +04:00
|
|
|
endif
|
2019-06-27 09:46:45 +03:00
|
|
|
$(MAKE) -C fuzz clean
|
2013-09-16 15:33:42 +04:00
|
|
|
|
|
|
|
list:
|
|
|
|
echo $(APPS)
|