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 |
Gilles Peskine | 687d1ab | 2021-04-22 01:01:56 +0200 | [diff] [blame] | 46 | PYTHON ?= python |
Manuel Pégourié-Gonnard | 8d4a613 | 2015-06-24 12:16:20 +0200 | [diff] [blame] | 47 | else |
Andres Amaya Garcia | 420f0cc | 2018-03-27 19:17:21 +0100 | [diff] [blame] | 48 | DLEXT ?= so |
Manuel Pégourié-Gonnard | 8d4a613 | 2015-06-24 12:16:20 +0200 | [diff] [blame] | 49 | EXEXT= |
| 50 | SHARED_SUFFIX= |
Gilles Peskine | 687d1ab | 2021-04-22 01:01:56 +0200 | [diff] [blame] | 51 | PYTHON ?= $(shell if type python3 >/dev/null 2>/dev/null; then echo python3; else echo python; fi) |
Paul Bakker | cd5b529 | 2012-05-10 20:49:10 +0000 | [diff] [blame] | 52 | endif |
| 53 | |
Gilles Peskine | b0fa9d2 | 2021-04-22 20:07:44 +0200 | [diff] [blame] | 54 | ## The following assignment is the list of base names of applications that |
| 55 | ## will be built on Windows. Extra Linux/Unix/POSIX-only applications can |
| 56 | ## be declared by appending with `APPS += ...` afterwards. |
| 57 | ## See the get_app_list function in scripts/generate_visualc_files.pl and |
| 58 | ## make sure to check that it still works if you tweak the format here. |
Gilles Peskine | 8de196a | 2020-02-11 17:18:08 +0100 | [diff] [blame] | 59 | APPS = \ |
Gilles Peskine | b0fa9d2 | 2021-04-22 20:07:44 +0200 | [diff] [blame] | 60 | aes/crypt_and_hash \ |
| 61 | hash/generic_sum \ |
| 62 | hash/hello \ |
| 63 | pkey/dh_client \ |
| 64 | pkey/dh_genprime \ |
| 65 | pkey/dh_server \ |
| 66 | pkey/ecdh_curve25519 \ |
| 67 | pkey/ecdsa \ |
| 68 | pkey/gen_key \ |
| 69 | pkey/key_app \ |
| 70 | pkey/key_app_writer \ |
| 71 | pkey/mpi_demo \ |
| 72 | pkey/pk_decrypt \ |
| 73 | pkey/pk_encrypt \ |
| 74 | pkey/pk_sign \ |
| 75 | pkey/pk_verify \ |
| 76 | pkey/rsa_decrypt \ |
| 77 | pkey/rsa_encrypt \ |
| 78 | pkey/rsa_genkey \ |
| 79 | pkey/rsa_sign \ |
| 80 | pkey/rsa_sign_pss \ |
| 81 | pkey/rsa_verify \ |
| 82 | pkey/rsa_verify_pss \ |
| 83 | psa/crypto_examples \ |
| 84 | psa/key_ladder_demo \ |
| 85 | psa/psa_constant_names \ |
| 86 | random/gen_entropy \ |
| 87 | random/gen_random_ctr_drbg \ |
| 88 | ssl/dtls_client \ |
| 89 | ssl/dtls_server \ |
| 90 | ssl/mini_client \ |
| 91 | ssl/ssl_client1 \ |
| 92 | ssl/ssl_client2 \ |
| 93 | ssl/ssl_context_info \ |
| 94 | ssl/ssl_fork_server \ |
| 95 | ssl/ssl_mail_client \ |
| 96 | ssl/ssl_server \ |
| 97 | ssl/ssl_server2 \ |
| 98 | test/benchmark \ |
| 99 | test/query_compile_time_config \ |
| 100 | test/selftest \ |
| 101 | test/udp_proxy \ |
| 102 | test/zeroize \ |
| 103 | util/pem2der \ |
| 104 | util/strerror \ |
| 105 | x509/cert_app \ |
| 106 | x509/cert_req \ |
| 107 | x509/cert_write \ |
| 108 | x509/crl_app \ |
| 109 | x509/req_app \ |
Gilles Peskine | 8de196a | 2020-02-11 17:18:08 +0100 | [diff] [blame] | 110 | # End of APPS |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 111 | |
Paul Bakker | f9c4953 | 2013-12-19 15:40:58 +0100 | [diff] [blame] | 112 | ifdef PTHREAD |
Gilles Peskine | b0fa9d2 | 2021-04-22 20:07:44 +0200 | [diff] [blame] | 113 | APPS += ssl/ssl_pthread_server |
Paul Bakker | f9c4953 | 2013-12-19 15:40:58 +0100 | [diff] [blame] | 114 | endif |
| 115 | |
Andrzej Kurek | 0211c32 | 2018-03-15 05:16:24 -0400 | [diff] [blame] | 116 | ifdef TEST_CPP |
Gilles Peskine | b0fa9d2 | 2021-04-22 20:07:44 +0200 | [diff] [blame] | 117 | APPS += test/cpp_dummy_build |
Andrzej Kurek | 0211c32 | 2018-03-15 05:16:24 -0400 | [diff] [blame] | 118 | endif |
| 119 | |
Gilles Peskine | b0fa9d2 | 2021-04-22 20:07:44 +0200 | [diff] [blame] | 120 | EXES = $(patsubst %,%$(EXEXT),$(APPS)) |
| 121 | |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 122 | .SILENT: |
| 123 | |
Philippe Antoine | 48f35f5 | 2019-06-27 08:46:45 +0200 | [diff] [blame] | 124 | .PHONY: all clean list fuzz |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 125 | |
Gilles Peskine | b0fa9d2 | 2021-04-22 20:07:44 +0200 | [diff] [blame] | 126 | all: $(EXES) |
Philippe Antoine | a864db0 | 2019-07-10 20:37:57 +0200 | [diff] [blame] | 127 | ifndef WINDOWS |
| 128 | # APPS doesn't include the fuzzing programs, which aren't "normal" |
| 129 | # sample or test programs, and don't build with MSVC which is |
| 130 | # warning about fopen |
| 131 | all: fuzz |
| 132 | endif |
Philippe Antoine | 48f35f5 | 2019-06-27 08:46:45 +0200 | [diff] [blame] | 133 | |
Ronald Cron | 8dc0af2 | 2020-06-05 16:00:22 +0200 | [diff] [blame] | 134 | fuzz: ${MBEDTLS_TEST_OBJS} |
Janos Follath | 4f055f4 | 2019-08-20 15:12:54 +0100 | [diff] [blame] | 135 | $(MAKE) -C fuzz THIRDPARTY_INCLUDES=$(THIRDPARTY_INCLUDES) |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 136 | |
Ronald Cron | 8dc0af2 | 2020-06-05 16:00:22 +0200 | [diff] [blame] | 137 | $(MBEDLIBS): |
Manuel Pégourié-Gonnard | fc36708 | 2015-06-26 16:50:24 +0200 | [diff] [blame] | 138 | $(MAKE) -C ../library |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 139 | |
Ronald Cron | 8dc0af2 | 2020-06-05 16:00:22 +0200 | [diff] [blame] | 140 | ${MBEDTLS_TEST_OBJS}: |
| 141 | $(MAKE) -C ../tests mbedtls_test |
| 142 | |
Gilles Peskine | 687d1ab | 2021-04-22 01:01:56 +0200 | [diff] [blame] | 143 | .PHONY: generated_files |
| 144 | GENERATED_FILES = psa/psa_constant_names_generated.c test/query_config.c |
| 145 | generated_files: $(GENERATED_FILES) |
| 146 | |
| 147 | psa/psa_constant_names_generated.c: ../scripts/generate_psa_constants.py |
| 148 | psa/psa_constant_names_generated.c: ../include/psa/crypto_values.h |
| 149 | psa/psa_constant_names_generated.c: ../include/psa/crypto_extra.h |
| 150 | psa/psa_constant_names_generated.c: ../tests/suites/test_suite_psa_crypto_metadata.data |
| 151 | psa/psa_constant_names_generated.c: |
| 152 | echo " Gen $@" |
| 153 | $(PYTHON) ../scripts/generate_psa_constants.py |
| 154 | |
| 155 | test/query_config.c: ../scripts/generate_query_config.pl |
Gilles Peskine | 1411c7c | 2021-04-22 14:50:16 +0200 | [diff] [blame] | 156 | ## The generated file only depends on the options that are present in config.h, |
| 157 | ## not on which options are set. To avoid regenerating this file all the time |
| 158 | ## when switching between configurations, don't declare config.h as a |
| 159 | ## dependency. Remove this file from your working tree if you've just added or |
| 160 | ## removed an option in config.h. |
| 161 | #test/query_config.c: ../include/mbedtls/config.h |
Gilles Peskine | 687d1ab | 2021-04-22 01:01:56 +0200 | [diff] [blame] | 162 | test/query_config.c: ../scripts/data_files/query_config.fmt |
| 163 | test/query_config.c: |
| 164 | echo " Gen $@" |
| 165 | $(PERL) ../scripts/generate_query_config.pl |
| 166 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 167 | 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] | 168 | echo " CC aes/crypt_and_hash.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 169 | $(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] | 170 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 171 | hash/hello$(EXEXT): hash/hello.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 172 | echo " CC hash/hello.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 173 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) hash/hello.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 174 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 175 | hash/generic_sum$(EXEXT): hash/generic_sum.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 176 | echo " CC hash/generic_sum.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 177 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) hash/generic_sum.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | fb6c7e2 | 2011-01-21 10:21:11 +0000 | [diff] [blame] | 178 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 179 | pkey/dh_client$(EXEXT): pkey/dh_client.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 180 | echo " CC pkey/dh_client.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 181 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/dh_client.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 182 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 183 | pkey/dh_genprime$(EXEXT): pkey/dh_genprime.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 184 | echo " CC pkey/dh_genprime.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 185 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/dh_genprime.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 186 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 187 | pkey/dh_server$(EXEXT): pkey/dh_server.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 188 | echo " CC pkey/dh_server.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 189 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/dh_server.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 190 | |
Manuel Pégourié-Gonnard | 3eb8c34 | 2015-10-09 12:11:14 +0100 | [diff] [blame] | 191 | pkey/ecdh_curve25519$(EXEXT): pkey/ecdh_curve25519.c $(DEP) |
| 192 | echo " CC pkey/ecdh_curve25519.c" |
| 193 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/ecdh_curve25519.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
| 194 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 195 | pkey/ecdsa$(EXEXT): pkey/ecdsa.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 196 | echo " CC pkey/ecdsa.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 197 | $(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] | 198 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 199 | pkey/gen_key$(EXEXT): pkey/gen_key.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 200 | echo " CC pkey/gen_key.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 201 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/gen_key.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 15b9b3a | 2013-09-23 12:05:44 +0200 | [diff] [blame] | 202 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 203 | pkey/key_app$(EXEXT): pkey/key_app.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 204 | echo " CC pkey/key_app.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 205 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/key_app.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | ed56b22 | 2011-07-13 11:26:43 +0000 | [diff] [blame] | 206 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 207 | 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] | 208 | echo " CC pkey/key_app_writer.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 209 | $(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] | 210 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 211 | pkey/mpi_demo$(EXEXT): pkey/mpi_demo.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 212 | echo " CC pkey/mpi_demo.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 213 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/mpi_demo.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 214 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 215 | pkey/pk_decrypt$(EXEXT): pkey/pk_decrypt.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 216 | echo " CC pkey/pk_decrypt.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 217 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/pk_decrypt.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 940f9ce | 2013-09-18 15:34:57 +0200 | [diff] [blame] | 218 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 219 | pkey/pk_encrypt$(EXEXT): pkey/pk_encrypt.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 220 | echo " CC pkey/pk_encrypt.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 221 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/pk_encrypt.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 940f9ce | 2013-09-18 15:34:57 +0200 | [diff] [blame] | 222 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 223 | pkey/pk_sign$(EXEXT): pkey/pk_sign.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 224 | echo " CC pkey/pk_sign.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 225 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/pk_sign.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 940f9ce | 2013-09-18 15:34:57 +0200 | [diff] [blame] | 226 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 227 | pkey/pk_verify$(EXEXT): pkey/pk_verify.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 228 | echo " CC pkey/pk_verify.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 229 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/pk_verify.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 940f9ce | 2013-09-18 15:34:57 +0200 | [diff] [blame] | 230 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 231 | pkey/rsa_genkey$(EXEXT): pkey/rsa_genkey.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 232 | echo " CC pkey/rsa_genkey.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 233 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_genkey.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 234 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 235 | pkey/rsa_sign$(EXEXT): pkey/rsa_sign.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 236 | echo " CC pkey/rsa_sign.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 237 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_sign.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 238 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 239 | pkey/rsa_verify$(EXEXT): pkey/rsa_verify.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 240 | echo " CC pkey/rsa_verify.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 241 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_verify.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 242 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 243 | 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] | 244 | echo " CC pkey/rsa_sign_pss.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 245 | $(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] | 246 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 247 | 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] | 248 | echo " CC pkey/rsa_verify_pss.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 249 | $(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] | 250 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 251 | pkey/rsa_decrypt$(EXEXT): pkey/rsa_decrypt.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 252 | echo " CC pkey/rsa_decrypt.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 253 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_decrypt.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 7bc05ff | 2011-08-09 10:30:36 +0000 | [diff] [blame] | 254 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 255 | pkey/rsa_encrypt$(EXEXT): pkey/rsa_encrypt.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 256 | echo " CC pkey/rsa_encrypt.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 257 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_encrypt.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 7bc05ff | 2011-08-09 10:30:36 +0000 | [diff] [blame] | 258 | |
Gilles Peskine | f0fa436 | 2018-07-16 17:08:43 +0200 | [diff] [blame] | 259 | psa/key_ladder_demo$(EXEXT): psa/key_ladder_demo.c $(DEP) |
| 260 | echo " CC psa/key_ladder_demo.c" |
| 261 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) psa/key_ladder_demo.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
| 262 | |
Gilles Peskine | 4a70740 | 2021-02-24 21:45:38 +0100 | [diff] [blame] | 263 | 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] | 264 | echo " CC psa/psa_constant_names.c" |
| 265 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) psa/psa_constant_names.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
| 266 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 267 | random/gen_entropy$(EXEXT): random/gen_entropy.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 268 | echo " CC random/gen_entropy.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 269 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) random/gen_entropy.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 6083fd2 | 2011-12-03 21:45:14 +0000 | [diff] [blame] | 270 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 271 | 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] | 272 | echo " CC random/gen_random_ctr_drbg.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 273 | $(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] | 274 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 275 | ssl/dtls_client$(EXEXT): ssl/dtls_client.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 276 | echo " CC ssl/dtls_client.c" |
Manuel Pégourié-Gonnard | 8d4a613 | 2015-06-24 12:16:20 +0200 | [diff] [blame] | 277 | $(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] | 278 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 279 | ssl/dtls_server$(EXEXT): ssl/dtls_server.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 280 | echo " CC ssl/dtls_server.c" |
Manuel Pégourié-Gonnard | 8d4a613 | 2015-06-24 12:16:20 +0200 | [diff] [blame] | 281 | $(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] | 282 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 283 | ssl/ssl_client1$(EXEXT): ssl/ssl_client1.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 284 | echo " CC ssl/ssl_client1.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 285 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_client1.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 286 | |
Gilles Peskine | a3ed34f | 2021-01-05 21:11:16 +0100 | [diff] [blame] | 287 | SSL_TEST_OBJECTS = test/query_config.o ssl/ssl_test_lib.o |
Gilles Peskine | c772b18 | 2021-01-12 15:55:10 +0100 | [diff] [blame] | 288 | SSL_TEST_DEPS = $(SSL_TEST_OBJECTS) \ |
| 289 | test/query_config.h \ |
| 290 | ssl/ssl_test_lib.h \ |
| 291 | ssl/ssl_test_common_source.c \ |
| 292 | $(DEP) |
Gilles Peskine | f06a54c | 2021-01-05 20:59:50 +0100 | [diff] [blame] | 293 | |
Gilles Peskine | a3ed34f | 2021-01-05 21:11:16 +0100 | [diff] [blame] | 294 | ssl/ssl_test_lib.o: ssl/ssl_test_lib.c ssl/ssl_test_lib.h $(DEP) |
| 295 | echo " CC ssl/ssl_test_lib.c" |
| 296 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) -c ssl/ssl_test_lib.c -o $@ |
| 297 | |
Gilles Peskine | 0d980b8 | 2021-01-05 23:34:27 +0100 | [diff] [blame] | 298 | 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] | 299 | echo " CC ssl/ssl_client2.c" |
Gilles Peskine | f06a54c | 2021-01-05 20:59:50 +0100 | [diff] [blame] | 300 | $(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] | 301 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 302 | ssl/ssl_server$(EXEXT): ssl/ssl_server.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 303 | echo " CC ssl/ssl_server.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 304 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_server.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 305 | |
Gilles Peskine | 0d980b8 | 2021-01-05 23:34:27 +0100 | [diff] [blame] | 306 | 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] | 307 | echo " CC ssl/ssl_server2.c" |
Gilles Peskine | f06a54c | 2021-01-05 20:59:50 +0100 | [diff] [blame] | 308 | $(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] | 309 | |
Gilles Peskine | c772b18 | 2021-01-12 15:55:10 +0100 | [diff] [blame] | 310 | 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] | 311 | echo " CC ssl/ssl_context_info.c" |
Gilles Peskine | f06a54c | 2021-01-05 20:59:50 +0100 | [diff] [blame] | 312 | $(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] | 313 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 314 | 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] | 315 | echo " CC ssl/ssl_fork_server.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 316 | $(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] | 317 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 318 | 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] | 319 | echo " CC ssl/ssl_pthread_server.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 320 | $(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] | 321 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 322 | 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] | 323 | echo " CC ssl/ssl_mail_client.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 324 | $(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] | 325 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 326 | ssl/mini_client$(EXEXT): ssl/mini_client.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 327 | echo " CC ssl/mini_client.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 328 | $(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] | 329 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 330 | test/benchmark$(EXEXT): test/benchmark.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 331 | echo " CC test/benchmark.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 332 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) test/benchmark.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 333 | |
Andrzej Kurek | 89c048c | 2018-03-16 07:37:44 -0400 | [diff] [blame] | 334 | test/cpp_dummy_build$(EXEXT): test/cpp_dummy_build.cpp $(DEP) |
| 335 | echo " CXX test/cpp_dummy_build.cpp" |
| 336 | $(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] | 337 | |
Gilles Peskine | c772b18 | 2021-01-12 15:55:10 +0100 | [diff] [blame] | 338 | 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] | 339 | echo " CC test/query_config.c" |
| 340 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) -c test/query_config.c -o $@ |
| 341 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 342 | test/selftest$(EXEXT): test/selftest.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 343 | echo " CC test/selftest.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 344 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) test/selftest.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 345 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 346 | test/udp_proxy$(EXEXT): test/udp_proxy.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 347 | echo " CC test/udp_proxy.c" |
Manuel Pégourié-Gonnard | 8d4a613 | 2015-06-24 12:16:20 +0200 | [diff] [blame] | 348 | $(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] | 349 | |
Andres Amaya Garcia | 5ab74a1 | 2017-10-24 21:10:45 +0100 | [diff] [blame] | 350 | test/zeroize$(EXEXT): test/zeroize.c $(DEP) |
| 351 | echo " CC test/zeroize.c" |
| 352 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) test/zeroize.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
| 353 | |
Gilles Peskine | c772b18 | 2021-01-12 15:55:10 +0100 | [diff] [blame] | 354 | 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] | 355 | echo " CC test/query_compile_time_config.c" |
Gilles Peskine | f06a54c | 2021-01-05 20:59:50 +0100 | [diff] [blame] | 356 | $(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] | 357 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 358 | util/pem2der$(EXEXT): util/pem2der.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 359 | echo " CC util/pem2der.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 360 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) util/pem2der.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 8adf13b | 2013-08-25 14:50:09 +0200 | [diff] [blame] | 361 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 362 | util/strerror$(EXEXT): util/strerror.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 363 | echo " CC util/strerror.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 364 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) util/strerror.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 01cc394 | 2012-05-08 08:36:15 +0000 | [diff] [blame] | 365 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 366 | x509/cert_app$(EXEXT): x509/cert_app.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 367 | echo " CC x509/cert_app.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 368 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/cert_app.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | 4fc4552 | 2010-03-18 20:11:58 +0000 | [diff] [blame] | 369 | |
Manuel Pégourié-Gonnard | a7c8903 | 2015-06-29 15:47:35 +0200 | [diff] [blame] | 370 | x509/cert_write$(EXEXT): x509/cert_write.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 371 | echo " CC x509/cert_write.c" |
Manuel Pégourié-Gonnard | a7c8903 | 2015-06-29 15:47:35 +0200 | [diff] [blame] | 372 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/cert_write.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
| 373 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 374 | x509/crl_app$(EXEXT): x509/crl_app.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 375 | echo " CC x509/crl_app.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 376 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/crl_app.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | a9507c0 | 2011-02-12 15:27:28 +0000 | [diff] [blame] | 377 | |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 378 | x509/cert_req$(EXEXT): x509/cert_req.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 379 | echo " CC x509/cert_req.c" |
Alon Bar-Lev | f7a9f30 | 2015-02-18 17:55:05 +0200 | [diff] [blame] | 380 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/cert_req.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
Paul Bakker | bdb912d | 2012-02-13 23:11:30 +0000 | [diff] [blame] | 381 | |
Manuel Pégourié-Gonnard | a7c8903 | 2015-06-29 15:47:35 +0200 | [diff] [blame] | 382 | x509/req_app$(EXEXT): x509/req_app.c $(DEP) |
Manuel Pégourié-Gonnard | 78ec2b0 | 2015-07-08 22:12:06 +0100 | [diff] [blame] | 383 | echo " CC x509/req_app.c" |
Manuel Pégourié-Gonnard | a7c8903 | 2015-06-29 15:47:35 +0200 | [diff] [blame] | 384 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/req_app.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
| 385 | |
itayzafrir | a3ff8a6 | 2018-07-10 10:10:21 +0300 | [diff] [blame] | 386 | psa/crypto_examples$(EXEXT): psa/crypto_examples.c $(DEP) |
| 387 | echo " CC psa/crypto_examples.c" |
| 388 | $(CC) $(LOCAL_CFLAGS) $(CFLAGS) psa/crypto_examples.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
| 389 | |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 390 | clean: |
Paul Bakker | 62f88dc | 2012-05-10 21:26:28 +0000 | [diff] [blame] | 391 | ifndef WINDOWS |
Gilles Peskine | b0fa9d2 | 2021-04-22 20:07:44 +0200 | [diff] [blame] | 392 | rm -f $(EXES) |
Jaeden Amero | befe1e15 | 2019-06-03 09:14:14 +0100 | [diff] [blame] | 393 | -rm -f ssl/ssl_pthread_server$(EXEXT) |
| 394 | -rm -f test/cpp_dummy_build$(EXEXT) |
Manuel Pégourié-Gonnard | 5c59a4f | 2015-06-24 13:06:24 +0200 | [diff] [blame] | 395 | else |
Darryl Green | 9b9a790 | 2019-08-30 14:51:55 +0100 | [diff] [blame] | 396 | if exist *.o del /Q /F *.o |
| 397 | if exist *.exe del /Q /F *.exe |
Paul Bakker | 62f88dc | 2012-05-10 21:26:28 +0000 | [diff] [blame] | 398 | endif |
Philippe Antoine | 48f35f5 | 2019-06-27 08:46:45 +0200 | [diff] [blame] | 399 | $(MAKE) -C fuzz clean |
Manuel Pégourié-Gonnard | 1b57878 | 2013-09-16 13:33:42 +0200 | [diff] [blame] | 400 | |
Gilles Peskine | 687d1ab | 2021-04-22 01:01:56 +0200 | [diff] [blame] | 401 | neat: clean |
| 402 | ifndef WINDOWS |
| 403 | rm -f $(GENERATED_FILES) |
| 404 | else |
| 405 | for %f in ($(subst /,\,$(GENERATED_FILES))) if exist %f del /Q /F %f |
| 406 | endif |
| 407 | |
Manuel Pégourié-Gonnard | 1b57878 | 2013-09-16 13:33:42 +0200 | [diff] [blame] | 408 | list: |
Gilles Peskine | b0fa9d2 | 2021-04-22 20:07:44 +0200 | [diff] [blame] | 409 | echo $(EXES) |