Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1 | |
| 2 | # To compile on SunOS: add "-lsocket -lnsl" to LDFLAGS |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 3 | |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 4 | CFLAGS ?= -O2 |
Paul Elliott | 9e3256a | 2020-12-17 18:17:32 +0000 | [diff] [blame] | 5 | WARNING_CFLAGS ?= -Wall -Wextra -Wformat=2 -Wno-format-nonliteral |
| 6 | WARNING_CXXFLAGS ?= -Wall -Wextra -Wformat=2 -Wno-format-nonliteral |
Alon Bar-Lev | ada4105 | 2015-02-18 17:47:52 +0200 | [diff] [blame] | 7 | LDFLAGS ?= |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 8 | |
Ronald Cron | 8dc0af2 | 2020-06-05 16:00:22 +0200 | [diff] [blame] | 9 | MBEDTLS_TEST_PATH:=../tests/src |
Steven Cooreman | a70d588 | 2020-07-16 20:26:18 +0200 | [diff] [blame] | 10 | MBEDTLS_TEST_OBJS:=$(patsubst %.c,%.o,$(wildcard ${MBEDTLS_TEST_PATH}/*.c ${MBEDTLS_TEST_PATH}/drivers/*.c)) |
Ronald Cron | 8dc0af2 | 2020-06-05 16:00:22 +0200 | [diff] [blame] | 11 | |
| 12 | LOCAL_CFLAGS = $(WARNING_CFLAGS) -I../tests/include -I../include -D_FILE_OFFSET_BITS=64 |
Mateusz Starzyk | 1aec646 | 2021-02-08 15:34:42 +0100 | [diff] [blame] | 13 | LOCAL_CXXFLAGS = $(WARNING_CXXFLAGS) -I../include -I../tests/include -D_FILE_OFFSET_BITS=64 |
Ronald Cron | 8dc0af2 | 2020-06-05 16:00:22 +0200 | [diff] [blame] | 14 | LOCAL_LDFLAGS = ${MBEDTLS_TEST_OBJS} \ |
| 15 | -L../library \ |
Manuel Pégourié-Gonnard | 21e1ac2 | 2015-06-25 08:45:12 +0200 | [diff] [blame] | 16 | -lmbedtls$(SHARED_SUFFIX) \ |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 17 | -lmbedx509$(SHARED_SUFFIX) \ |
Manuel Pégourié-Gonnard | 21e1ac2 | 2015-06-25 08:45:12 +0200 | [diff] [blame] | 18 | -lmbedcrypto$(SHARED_SUFFIX) |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 19 | |
Christoph M. Wintersteiger | 6ea2dea1 | 2019-01-21 17:26:19 +0000 | [diff] [blame] | 20 | include ../3rdparty/Makefile.inc |
| 21 | LOCAL_CFLAGS+=$(THIRDPARTY_INCLUDES) |
Jaeden Amero | 30b340a | 2018-10-25 17:37:00 +0100 | [diff] [blame] | 22 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 23 | ifndef SHARED |
Ronald Cron | 8dc0af2 | 2020-06-05 16:00:22 +0200 | [diff] [blame] | 24 | MBEDLIBS=../library/libmbedcrypto.a ../library/libmbedx509.a ../library/libmbedtls.a |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 25 | else |
Ronald Cron | 8dc0af2 | 2020-06-05 16:00:22 +0200 | [diff] [blame] | 26 | MBEDLIBS=../library/libmbedcrypto.$(DLEXT) ../library/libmbedx509.$(DLEXT) ../library/libmbedtls.$(DLEXT) |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 27 | endif |
Ronald Cron | 8dc0af2 | 2020-06-05 16:00:22 +0200 | [diff] [blame] | 28 | DEP=${MBEDLIBS} ${MBEDTLS_TEST_OBJS} |
Christoph M. Wintersteiger | 977d89a | 2018-10-25 12:47:03 +0100 | [diff] [blame] | 29 | |
Paul Bakker | c7ffd36 | 2012-04-05 12:08:29 +0000 | [diff] [blame] | 30 | ifdef DEBUG |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 31 | LOCAL_CFLAGS += -g3 |
Paul Bakker | c7ffd36 | 2012-04-05 12:08:29 +0000 | [diff] [blame] | 32 | endif |
| 33 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 34 | # if we're running on Windows, build for Windows |
Paul Bakker | cd5b529 | 2012-05-10 20:49:10 +0000 | [diff] [blame] | 35 | ifdef WINDOWS |
Alon Bar-Lev | 18ba0cc | 2015-02-14 01:04:58 +0200 | [diff] [blame] | 36 | WINDOWS_BUILD=1 |
| 37 | endif |
| 38 | |
| 39 | ifdef WINDOWS_BUILD |
| 40 | DLEXT=dll |
| 41 | EXEXT=.exe |
Alon Bar-Lev | ada4105 | 2015-02-18 17:47:52 +0200 | [diff] [blame] | 42 | LOCAL_LDFLAGS += -lws2_32 |
Alon Bar-Lev | 18ba0cc | 2015-02-14 01:04:58 +0200 | [diff] [blame] | 43 | ifdef SHARED |
| 44 | SHARED_SUFFIX=.$(DLEXT) |
| 45 | endif |
Manuel Pégourié-Gonnard | 8d4a613 | 2015-06-24 12:16:20 +0200 | [diff] [blame] | 46 | else |
Andres Amaya Garcia | 420f0cc | 2018-03-27 19:17:21 +0100 | [diff] [blame] | 47 | DLEXT ?= so |
Manuel Pégourié-Gonnard | 8d4a613 | 2015-06-24 12:16:20 +0200 | [diff] [blame] | 48 | EXEXT= |
| 49 | SHARED_SUFFIX= |
Paul Bakker | cd5b529 | 2012-05-10 20:49:10 +0000 | [diff] [blame] | 50 | endif |
| 51 | |
Gilles Peskine | 8de196a | 2020-02-11 17:18:08 +0100 | [diff] [blame] | 52 | APPS = \ |
Gilles Peskine | 8de196a | 2020-02-11 17:18:08 +0100 | [diff] [blame] | 53 | aes/crypt_and_hash$(EXEXT) \ |
Gilles Peskine | 8de196a | 2020-02-11 17:18:08 +0100 | [diff] [blame] | 54 | hash/generic_sum$(EXEXT) \ |
Manuel Pégourié-Gonnard | 10a5b53 | 2020-04-03 11:50:59 +0200 | [diff] [blame] | 55 | hash/hello$(EXEXT) \ |
Gilles Peskine | 8de196a | 2020-02-11 17:18:08 +0100 | [diff] [blame] | 56 | pkey/dh_client$(EXEXT) \ |
| 57 | pkey/dh_genprime$(EXEXT) \ |
| 58 | pkey/dh_server$(EXEXT) \ |
| 59 | pkey/ecdh_curve25519$(EXEXT) \ |
| 60 | pkey/ecdsa$(EXEXT) \ |
| 61 | pkey/gen_key$(EXEXT) \ |
| 62 | pkey/key_app$(EXEXT) \ |
| 63 | pkey/key_app_writer$(EXEXT) \ |
| 64 | pkey/mpi_demo$(EXEXT) \ |
| 65 | pkey/pk_decrypt$(EXEXT) \ |
| 66 | pkey/pk_encrypt$(EXEXT) \ |
| 67 | pkey/pk_sign$(EXEXT) \ |
| 68 | pkey/pk_verify$(EXEXT) \ |
Gilles Peskine | 8de196a | 2020-02-11 17:18:08 +0100 | [diff] [blame] | 69 | pkey/rsa_decrypt$(EXEXT) \ |
| 70 | pkey/rsa_encrypt$(EXEXT) \ |
Manuel Pégourié-Gonnard | 10a5b53 | 2020-04-03 11:50:59 +0200 | [diff] [blame] | 71 | pkey/rsa_genkey$(EXEXT) \ |
Gilles Peskine | 8de196a | 2020-02-11 17:18:08 +0100 | [diff] [blame] | 72 | pkey/rsa_sign$(EXEXT) \ |
Gilles Peskine | 8de196a | 2020-02-11 17:18:08 +0100 | [diff] [blame] | 73 | pkey/rsa_sign_pss$(EXEXT) \ |
Manuel Pégourié-Gonnard | 10a5b53 | 2020-04-03 11:50:59 +0200 | [diff] [blame] | 74 | pkey/rsa_verify$(EXEXT) \ |
Gilles Peskine | 8de196a | 2020-02-11 17:18:08 +0100 | [diff] [blame] | 75 | pkey/rsa_verify_pss$(EXEXT) \ |
Jaeden Amero | 30fae8e | 2018-12-20 17:44:21 +0000 | [diff] [blame] | 76 | psa/crypto_examples$(EXEXT) \ |
| 77 | psa/key_ladder_demo$(EXEXT) \ |
| 78 | psa/psa_constant_names$(EXEXT) \ |
Manuel Pégourié-Gonnard | 10a5b53 | 2020-04-03 11:50:59 +0200 | [diff] [blame] | 79 | random/gen_entropy$(EXEXT) \ |
| 80 | random/gen_random_ctr_drbg$(EXEXT) \ |
Gilles Peskine | 8de196a | 2020-02-11 17:18:08 +0100 | [diff] [blame] | 81 | ssl/dtls_client$(EXEXT) \ |
| 82 | ssl/dtls_server$(EXEXT) \ |
Manuel Pégourié-Gonnard | 10a5b53 | 2020-04-03 11:50:59 +0200 | [diff] [blame] | 83 | ssl/mini_client$(EXEXT) \ |
Gilles Peskine | 8de196a | 2020-02-11 17:18:08 +0100 | [diff] [blame] | 84 | ssl/ssl_client1$(EXEXT) \ |
| 85 | ssl/ssl_client2$(EXEXT) \ |
Piotr Nowicki | bc876d4 | 2020-03-26 12:49:15 +0100 | [diff] [blame] | 86 | ssl/ssl_context_info$(EXEXT) \ |
Gilles Peskine | 8de196a | 2020-02-11 17:18:08 +0100 | [diff] [blame] | 87 | ssl/ssl_fork_server$(EXEXT) \ |
Gilles Peskine | 8de196a | 2020-02-11 17:18:08 +0100 | [diff] [blame] | 88 | ssl/ssl_mail_client$(EXEXT) \ |
Manuel Pégourié-Gonnard | 10a5b53 | 2020-04-03 11:50:59 +0200 | [diff] [blame] | 89 | ssl/ssl_server$(EXEXT) \ |
| 90 | ssl/ssl_server2$(EXEXT) \ |
Gilles Peskine | 8de196a | 2020-02-11 17:18:08 +0100 | [diff] [blame] | 91 | test/benchmark$(EXEXT) \ |
Manuel Pégourié-Gonnard | 10a5b53 | 2020-04-03 11:50:59 +0200 | [diff] [blame] | 92 | test/query_compile_time_config$(EXEXT) \ |
Gilles Peskine | 8de196a | 2020-02-11 17:18:08 +0100 | [diff] [blame] | 93 | test/selftest$(EXEXT) \ |
| 94 | test/udp_proxy$(EXEXT) \ |
| 95 | test/zeroize$(EXEXT) \ |
Gilles Peskine | 8de196a | 2020-02-11 17:18:08 +0100 | [diff] [blame] | 96 | util/pem2der$(EXEXT) \ |
| 97 | util/strerror$(EXEXT) \ |
| 98 | x509/cert_app$(EXEXT) \ |
Gilles Peskine | 8de196a | 2020-02-11 17:18:08 +0100 | [diff] [blame] | 99 | x509/cert_req$(EXEXT) \ |
| 100 | x509/cert_write$(EXEXT) \ |
Manuel Pégourié-Gonnard | 10a5b53 | 2020-04-03 11:50:59 +0200 | [diff] [blame] | 101 | x509/crl_app$(EXEXT) \ |
Gilles Peskine | 8de196a | 2020-02-11 17:18:08 +0100 | [diff] [blame] | 102 | x509/req_app$(EXEXT) \ |
| 103 | # End of APPS |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 104 | |
Paul Bakker | f9c4953 | 2013-12-19 15:40:58 +0100 | [diff] [blame] | 105 | ifdef PTHREAD |
Manuel Pégourié-Gonnard | a7c8903 | 2015-06-29 15:47:35 +0200 | [diff] [blame] | 106 | APPS += ssl/ssl_pthread_server$(EXEXT) |
Paul Bakker | f9c4953 | 2013-12-19 15:40:58 +0100 | [diff] [blame] | 107 | endif |
| 108 | |
Andrzej Kurek | 0211c32 | 2018-03-15 05:16:24 -0400 | [diff] [blame] | 109 | ifdef TEST_CPP |
Andrzej Kurek | 89c048c | 2018-03-16 07:37:44 -0400 | [diff] [blame] | 110 | APPS += test/cpp_dummy_build$(EXEXT) |
Andrzej Kurek | 0211c32 | 2018-03-15 05:16:24 -0400 | [diff] [blame] | 111 | endif |
| 112 | |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 113 | .SILENT: |
| 114 | |
Philippe Antoine | 48f35f5 | 2019-06-27 08:46:45 +0200 | [diff] [blame] | 115 | .PHONY: all clean list fuzz |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 116 | |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 117 | all: $(APPS) |
Philippe Antoine | a864db0 | 2019-07-10 20:37:57 +0200 | [diff] [blame] | 118 | ifndef WINDOWS |
| 119 | # APPS doesn't include the fuzzing programs, which aren't "normal" |
| 120 | # sample or test programs, and don't build with MSVC which is |
| 121 | # warning about fopen |
| 122 | all: fuzz |
| 123 | endif |
Philippe Antoine | 48f35f5 | 2019-06-27 08:46:45 +0200 | [diff] [blame] | 124 | |
Ronald Cron | 8dc0af2 | 2020-06-05 16:00:22 +0200 | [diff] [blame] | 125 | fuzz: ${MBEDTLS_TEST_OBJS} |
Janos Follath | 4f055f4 | 2019-08-20 15:12:54 +0100 | [diff] [blame] | 126 | $(MAKE) -C fuzz THIRDPARTY_INCLUDES=$(THIRDPARTY_INCLUDES) |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 127 | |
Ronald Cron | 8dc0af2 | 2020-06-05 16:00:22 +0200 | [diff] [blame] | 128 | $(MBEDLIBS): |
Manuel Pégourié-Gonnard | fc36708 | 2015-06-26 16:50:24 +0200 | [diff] [blame] | 129 | $(MAKE) -C ../library |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 130 | |
Ronald Cron | 8dc0af2 | 2020-06-05 16:00:22 +0200 | [diff] [blame] | 131 | ${MBEDTLS_TEST_OBJS}: |
| 132 | $(MAKE) -C ../tests mbedtls_test |
| 133 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 134 | aes/crypt_and_hash$(EXEXT): aes/crypt_and_hash.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 135 | echo " CC aes/crypt_and_hash.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 136 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) aes/crypt_and_hash.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 20a7808 | 2011-01-21 09:32:12 +0000 | [diff] [blame] | 137 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 138 | hash/hello$(EXEXT): hash/hello.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 139 | echo " CC hash/hello.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 140 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) hash/hello.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 141 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 142 | hash/generic_sum$(EXEXT): hash/generic_sum.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 143 | echo " CC hash/generic_sum.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 144 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) hash/generic_sum.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | fb6c7e2 | 2011-01-21 10:21:11 +0000 | [diff] [blame] | 145 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 146 | pkey/dh_client$(EXEXT): pkey/dh_client.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 147 | echo " CC pkey/dh_client.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 148 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/dh_client.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 149 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 150 | pkey/dh_genprime$(EXEXT): pkey/dh_genprime.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 151 | echo " CC pkey/dh_genprime.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 152 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/dh_genprime.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 153 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 154 | pkey/dh_server$(EXEXT): pkey/dh_server.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 155 | echo " CC pkey/dh_server.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 156 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/dh_server.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 157 | |
Manuel Pégourié-Gonnard | 3eb8c34 | 2015-10-09 12:11:14 +0100 | [diff] [blame] | 158 | pkey/ecdh_curve25519$(EXEXT): pkey/ecdh_curve25519.c $(DEP) |
| 159 | echo " CC pkey/ecdh_curve25519.c" |
| 160 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/ecdh_curve25519.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
| 161 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 162 | pkey/ecdsa$(EXEXT): pkey/ecdsa.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 163 | echo " CC pkey/ecdsa.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 164 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/ecdsa.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Manuel Pégourié-Gonnard | aa43161 | 2013-08-09 17:10:27 +0200 | [diff] [blame] | 165 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 166 | pkey/gen_key$(EXEXT): pkey/gen_key.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 167 | echo " CC pkey/gen_key.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 168 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/gen_key.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 15b9b3a | 2013-09-23 12:05:44 +0200 | [diff] [blame] | 169 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 170 | pkey/key_app$(EXEXT): pkey/key_app.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 171 | echo " CC pkey/key_app.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 172 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/key_app.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | ed56b22 | 2011-07-13 11:26:43 +0000 | [diff] [blame] | 173 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 174 | pkey/key_app_writer$(EXEXT): pkey/key_app_writer.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 175 | echo " CC pkey/key_app_writer.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 176 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/key_app_writer.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | bdb912d | 2012-02-13 23:11:30 +0000 | [diff] [blame] | 177 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 178 | pkey/mpi_demo$(EXEXT): pkey/mpi_demo.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 179 | echo " CC pkey/mpi_demo.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 180 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/mpi_demo.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 181 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 182 | pkey/pk_decrypt$(EXEXT): pkey/pk_decrypt.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 183 | echo " CC pkey/pk_decrypt.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 184 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/pk_decrypt.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 940f9ce | 2013-09-18 15:34:57 +0200 | [diff] [blame] | 185 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 186 | pkey/pk_encrypt$(EXEXT): pkey/pk_encrypt.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 187 | echo " CC pkey/pk_encrypt.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 188 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/pk_encrypt.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 940f9ce | 2013-09-18 15:34:57 +0200 | [diff] [blame] | 189 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 190 | pkey/pk_sign$(EXEXT): pkey/pk_sign.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 191 | echo " CC pkey/pk_sign.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 192 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/pk_sign.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 940f9ce | 2013-09-18 15:34:57 +0200 | [diff] [blame] | 193 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 194 | pkey/pk_verify$(EXEXT): pkey/pk_verify.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 195 | echo " CC pkey/pk_verify.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 196 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/pk_verify.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 940f9ce | 2013-09-18 15:34:57 +0200 | [diff] [blame] | 197 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 198 | pkey/rsa_genkey$(EXEXT): pkey/rsa_genkey.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 199 | echo " CC pkey/rsa_genkey.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 200 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_genkey.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 201 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 202 | pkey/rsa_sign$(EXEXT): pkey/rsa_sign.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 203 | echo " CC pkey/rsa_sign.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 204 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_sign.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 205 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 206 | pkey/rsa_verify$(EXEXT): pkey/rsa_verify.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 207 | echo " CC pkey/rsa_verify.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 208 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_verify.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 209 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 210 | pkey/rsa_sign_pss$(EXEXT): pkey/rsa_sign_pss.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 211 | echo " CC pkey/rsa_sign_pss.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 212 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_sign_pss.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | e77db2e | 2011-03-25 14:01:32 +0000 | [diff] [blame] | 213 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 214 | pkey/rsa_verify_pss$(EXEXT): pkey/rsa_verify_pss.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 215 | echo " CC pkey/rsa_verify_pss.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 216 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_verify_pss.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | e77db2e | 2011-03-25 14:01:32 +0000 | [diff] [blame] | 217 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 218 | pkey/rsa_decrypt$(EXEXT): pkey/rsa_decrypt.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 219 | echo " CC pkey/rsa_decrypt.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 220 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_decrypt.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 7bc05ff | 2011-08-09 10:30:36 +0000 | [diff] [blame] | 221 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 222 | pkey/rsa_encrypt$(EXEXT): pkey/rsa_encrypt.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 223 | echo " CC pkey/rsa_encrypt.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 224 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_encrypt.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 7bc05ff | 2011-08-09 10:30:36 +0000 | [diff] [blame] | 225 | |
Gilles Peskine | f0fa436 | 2018-07-16 17:08:43 +0200 | [diff] [blame] | 226 | psa/key_ladder_demo$(EXEXT): psa/key_ladder_demo.c $(DEP) |
| 227 | echo " CC psa/key_ladder_demo.c" |
| 228 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) psa/key_ladder_demo.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
| 229 | |
Gilles Peskine | 4a70740 | 2021-02-24 21:45:38 +0100 | [diff] [blame] | 230 | psa/psa_constant_names$(EXEXT): psa/psa_constant_names.c psa/psa_constant_names_generated.c $(DEP) |
Gilles Peskine | 029b5d6 | 2018-07-16 23:13:37 +0200 | [diff] [blame] | 231 | echo " CC psa/psa_constant_names.c" |
| 232 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) psa/psa_constant_names.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
| 233 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 234 | random/gen_entropy$(EXEXT): random/gen_entropy.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 235 | echo " CC random/gen_entropy.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 236 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) random/gen_entropy.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 6083fd2 | 2011-12-03 21:45:14 +0000 | [diff] [blame] | 237 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 238 | random/gen_random_ctr_drbg$(EXEXT): random/gen_random_ctr_drbg.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 239 | echo " CC random/gen_random_ctr_drbg.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 240 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) random/gen_random_ctr_drbg.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | fc36d16 | 2011-01-27 16:50:02 +0000 | [diff] [blame] | 241 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 242 | ssl/dtls_client$(EXEXT): ssl/dtls_client.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 243 | echo " CC ssl/dtls_client.c" |
Manuel Pégourié-Gonnard | 8d4a613 | 2015-06-24 12:16:20 +0200 | [diff] [blame] | 244 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/dtls_client.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Manuel Pégourié-Gonnard | e63582a | 2014-10-14 11:47:21 +0200 | [diff] [blame] | 245 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 246 | ssl/dtls_server$(EXEXT): ssl/dtls_server.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 247 | echo " CC ssl/dtls_server.c" |
Manuel Pégourié-Gonnard | 8d4a613 | 2015-06-24 12:16:20 +0200 | [diff] [blame] | 248 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/dtls_server.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Manuel Pégourié-Gonnard | e63582a | 2014-10-14 11:47:21 +0200 | [diff] [blame] | 249 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 250 | ssl/ssl_client1$(EXEXT): ssl/ssl_client1.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 251 | echo " CC ssl/ssl_client1.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 252 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_client1.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 253 | |
Gilles Peskine | a3ed34f | 2021-01-05 21:11:16 +0100 | [diff] [blame] | 254 | SSL_TEST_OBJECTS = test/query_config.o ssl/ssl_test_lib.o |
Gilles Peskine | c772b18 | 2021-01-12 15:55:10 +0100 | [diff] [blame] | 255 | SSL_TEST_DEPS = $(SSL_TEST_OBJECTS) \ |
| 256 | test/query_config.h \ |
| 257 | ssl/ssl_test_lib.h \ |
| 258 | ssl/ssl_test_common_source.c \ |
| 259 | $(DEP) |
Gilles Peskine | f06a54c | 2021-01-05 20:59:50 +0100 | [diff] [blame] | 260 | |
Gilles Peskine | a3ed34f | 2021-01-05 21:11:16 +0100 | [diff] [blame] | 261 | ssl/ssl_test_lib.o: ssl/ssl_test_lib.c ssl/ssl_test_lib.h $(DEP) |
| 262 | echo " CC ssl/ssl_test_lib.c" |
| 263 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) -c ssl/ssl_test_lib.c -o $@ |
| 264 | |
Gilles Peskine | 0d980b8 | 2021-01-05 23:34:27 +0100 | [diff] [blame] | 265 | ssl/ssl_client2$(EXEXT): ssl/ssl_client2.c $(SSL_TEST_DEPS) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 266 | echo " CC ssl/ssl_client2.c" |
Gilles Peskine | f06a54c | 2021-01-05 20:59:50 +0100 | [diff] [blame] | 267 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_client2.c $(SSL_TEST_OBJECTS) $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 268 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 269 | ssl/ssl_server$(EXEXT): ssl/ssl_server.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 270 | echo " CC ssl/ssl_server.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 271 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_server.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 272 | |
Gilles Peskine | 0d980b8 | 2021-01-05 23:34:27 +0100 | [diff] [blame] | 273 | ssl/ssl_server2$(EXEXT): ssl/ssl_server2.c $(SSL_TEST_DEPS) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 274 | echo " CC ssl/ssl_server2.c" |
Gilles Peskine | f06a54c | 2021-01-05 20:59:50 +0100 | [diff] [blame] | 275 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_server2.c $(SSL_TEST_OBJECTS) $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | b60b95f | 2012-09-25 09:05:17 +0000 | [diff] [blame] | 276 | |
Gilles Peskine | c772b18 | 2021-01-12 15:55:10 +0100 | [diff] [blame] | 277 | ssl/ssl_context_info$(EXEXT): ssl/ssl_context_info.c test/query_config.o test/query_config.h $(DEP) |
Piotr Nowicki | bc876d4 | 2020-03-26 12:49:15 +0100 | [diff] [blame] | 278 | echo " CC ssl/ssl_context_info.c" |
Gilles Peskine | f06a54c | 2021-01-05 20:59:50 +0100 | [diff] [blame] | 279 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_context_info.c test/query_config.o $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Piotr Nowicki | 9370f90 | 2020-03-13 14:43:22 +0100 | [diff] [blame] | 280 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 281 | ssl/ssl_fork_server$(EXEXT): ssl/ssl_fork_server.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 282 | echo " CC ssl/ssl_fork_server.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 283 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_fork_server.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 896ac22 | 2011-05-20 12:33:05 +0000 | [diff] [blame] | 284 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 285 | ssl/ssl_pthread_server$(EXEXT): ssl/ssl_pthread_server.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 286 | echo " CC ssl/ssl_pthread_server.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 287 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_pthread_server.c $(LOCAL_LDFLAGS) -lpthread $(LDFLAGS) -o $@ |
Paul Bakker | f9c4953 | 2013-12-19 15:40:58 +0100 | [diff] [blame] | 288 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 289 | ssl/ssl_mail_client$(EXEXT): ssl/ssl_mail_client.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 290 | echo " CC ssl/ssl_mail_client.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 291 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_mail_client.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 1496d38 | 2011-05-23 12:07:29 +0000 | [diff] [blame] | 292 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 293 | ssl/mini_client$(EXEXT): ssl/mini_client.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 294 | echo " CC ssl/mini_client.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 295 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/mini_client.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Manuel Pégourié-Gonnard | a6fc5b2 | 2014-11-24 14:05:25 +0100 | [diff] [blame] | 296 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 297 | test/benchmark$(EXEXT): test/benchmark.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 298 | echo " CC test/benchmark.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 299 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) test/benchmark.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 300 | |
Andrzej Kurek | 89c048c | 2018-03-16 07:37:44 -0400 | [diff] [blame] | 301 | test/cpp_dummy_build$(EXEXT): test/cpp_dummy_build.cpp $(DEP) |
| 302 | echo " CXX test/cpp_dummy_build.cpp" |
| 303 | $(CXX) $(LOCAL_CXXFLAGS) $(CXXFLAGS) test/cpp_dummy_build.cpp $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Andrzej Kurek | 40741f8 | 2018-03-14 17:24:01 -0400 | [diff] [blame] | 304 | |
Gilles Peskine | c772b18 | 2021-01-12 15:55:10 +0100 | [diff] [blame] | 305 | test/query_config.o: test/query_config.c test/query_config.h $(DEP) |
Gilles Peskine | f06a54c | 2021-01-05 20:59:50 +0100 | [diff] [blame] | 306 | echo " CC test/query_config.c" |
| 307 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) -c test/query_config.c -o $@ |
| 308 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 309 | test/selftest$(EXEXT): test/selftest.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 310 | echo " CC test/selftest.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 311 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) test/selftest.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 312 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 313 | test/udp_proxy$(EXEXT): test/udp_proxy.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 314 | echo " CC test/udp_proxy.c" |
Manuel Pégourié-Gonnard | 8d4a613 | 2015-06-24 12:16:20 +0200 | [diff] [blame] | 315 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) test/udp_proxy.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Manuel Pégourié-Gonnard | cb4137b | 2014-09-04 14:55:28 +0200 | [diff] [blame] | 316 | |
Andres Amaya Garcia | 5ab74a1 | 2017-10-24 21:10:45 +0100 | [diff] [blame] | 317 | test/zeroize$(EXEXT): test/zeroize.c $(DEP) |
| 318 | echo " CC test/zeroize.c" |
| 319 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) test/zeroize.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
| 320 | |
Gilles Peskine | c772b18 | 2021-01-12 15:55:10 +0100 | [diff] [blame] | 321 | test/query_compile_time_config$(EXEXT): test/query_compile_time_config.c test/query_config.o test/query_config.h $(DEP) |
Andres AG | 509ba69 | 2018-10-26 18:41:08 +0100 | [diff] [blame] | 322 | echo " CC test/query_compile_time_config.c" |
Gilles Peskine | f06a54c | 2021-01-05 20:59:50 +0100 | [diff] [blame] | 323 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) test/query_compile_time_config.c test/query_config.o $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Andres AG | 509ba69 | 2018-10-26 18:41:08 +0100 | [diff] [blame] | 324 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 325 | util/pem2der$(EXEXT): util/pem2der.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 326 | echo " CC util/pem2der.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 327 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) util/pem2der.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 8adf13b | 2013-08-25 14:50:09 +0200 | [diff] [blame] | 328 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 329 | util/strerror$(EXEXT): util/strerror.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 330 | echo " CC util/strerror.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 331 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) util/strerror.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 01cc394 | 2012-05-08 08:36:15 +0000 | [diff] [blame] | 332 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 333 | x509/cert_app$(EXEXT): x509/cert_app.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 334 | echo " CC x509/cert_app.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 335 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/cert_app.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 4fc4552 | 2010-03-18 20:11:58 +0000 | [diff] [blame] | 336 | |
Manuel Pégourié-Gonnard | a7c8903 | 2015-06-29 15:47:35 +0200 | [diff] [blame] | 337 | x509/cert_write$(EXEXT): x509/cert_write.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 338 | echo " CC x509/cert_write.c" |
Manuel Pégourié-Gonnard | a7c8903 | 2015-06-29 15:47:35 +0200 | [diff] [blame] | 339 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/cert_write.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
| 340 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 341 | x509/crl_app$(EXEXT): x509/crl_app.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 342 | echo " CC x509/crl_app.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 343 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/crl_app.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | a9507c0 | 2011-02-12 15:27:28 +0000 | [diff] [blame] | 344 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 345 | x509/cert_req$(EXEXT): x509/cert_req.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 346 | echo " CC x509/cert_req.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 347 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/cert_req.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | bdb912d | 2012-02-13 23:11:30 +0000 | [diff] [blame] | 348 | |
Manuel Pégourié-Gonnard | a7c8903 | 2015-06-29 15:47:35 +0200 | [diff] [blame] | 349 | x509/req_app$(EXEXT): x509/req_app.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 350 | echo " CC x509/req_app.c" |
Manuel Pégourié-Gonnard | a7c8903 | 2015-06-29 15:47:35 +0200 | [diff] [blame] | 351 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/req_app.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
| 352 | |
itayzafrir | a3ff8a6 | 2018-07-10 10:10:21 +0300 | [diff] [blame] | 353 | psa/crypto_examples$(EXEXT): psa/crypto_examples.c $(DEP) |
| 354 | echo " CC psa/crypto_examples.c" |
| 355 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) psa/crypto_examples.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
| 356 | |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 357 | clean: |
Paul Bakker | 62f88dc | 2012-05-10 21:26:28 +0000 | [diff] [blame] | 358 | ifndef WINDOWS |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 359 | rm -f $(APPS) |
Jaeden Amero | befe1e15 | 2019-06-03 09:14:14 +0100 | [diff] [blame] | 360 | -rm -f ssl/ssl_pthread_server$(EXEXT) |
| 361 | -rm -f test/cpp_dummy_build$(EXEXT) |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 362 | else |
Darryl Green | 9b9a790 | 2019-08-30 14:51:55 +0100 | [diff] [blame] | 363 | if exist *.o del /Q /F *.o |
| 364 | if exist *.exe del /Q /F *.exe |
Paul Bakker | 62f88dc | 2012-05-10 21:26:28 +0000 | [diff] [blame] | 365 | endif |
Philippe Antoine | 48f35f5 | 2019-06-27 08:46:45 +0200 | [diff] [blame] | 366 | $(MAKE) -C fuzz clean |
Manuel Pégourié-Gonnard | 1b57878 | 2013-09-16 13:33:42 +0200 | [diff] [blame] | 367 | |
| 368 | list: |
| 369 | echo $(APPS) |