blob: e765886030998f4a23c42f94ff7f9aed0e3f9336 [file] [log] [blame]
Gilles Peskine4ad57332023-12-22 11:30:30 +01001MBEDTLS_TEST_PATH = ../tests
Harry Ramseya67f1332025-02-17 11:51:52 +00002FRAMEWORK = ${MBEDTLS_PATH}/framework
Gilles Peskinef3d1ae12023-12-22 11:40:58 +01003include ../scripts/common.make
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +02004
Gilles Peskine5dbee582021-11-04 15:07:28 +01005ifeq ($(shell uname -s),Linux)
6DLOPEN_LDFLAGS ?= -ldl
7else
8DLOPEN_LDFLAGS ?=
9endif
10
Gilles Peskine4411c9c2024-01-04 20:51:38 +010011ifdef RECORD_PSA_STATUS_COVERAGE_LOG
12LOCAL_CFLAGS += -Werror -DRECORD_PSA_STATUS_COVERAGE_LOG
13endif
Ronald Cron8dc0af22020-06-05 16:00:22 +020014DEP=${MBEDLIBS} ${MBEDTLS_TEST_OBJS}
Christoph M. Wintersteiger977d89a2018-10-25 12:47:03 +010015
Gilles Peskinef80a0292021-11-04 15:18:00 +010016# Only build the dlopen test in shared library builds, and not when building
17# for Windows.
18ifdef BUILD_DLOPEN
19# Don't override the value
20else ifdef WINDOWS_BUILD
21BUILD_DLOPEN =
22else ifdef SHARED
23BUILD_DLOPEN = y
24else
25BUILD_DLOPEN =
26endif
27
Harry Ramseya67f1332025-02-17 11:51:52 +000028LOCAL_CFLAGS += -I$(FRAMEWORK)/tests/programs
29
Gilles Peskineb0fa9d22021-04-22 20:07:44 +020030## The following assignment is the list of base names of applications that
31## will be built on Windows. Extra Linux/Unix/POSIX-only applications can
32## be declared by appending with `APPS += ...` afterwards.
33## See the get_app_list function in scripts/generate_visualc_files.pl and
34## make sure to check that it still works if you tweak the format here.
Gilles Peskine8de196a2020-02-11 17:18:08 +010035APPS = \
Gilles Peskineb0fa9d22021-04-22 20:07:44 +020036 aes/crypt_and_hash \
Manuel Pégourié-Gonnard29088a42022-02-01 09:38:26 +010037 cipher/cipher_aead_demo \
Gilles Peskineb0fa9d22021-04-22 20:07:44 +020038 hash/generic_sum \
39 hash/hello \
Manuel Pégourié-Gonnard29088a42022-02-01 09:38:26 +010040 hash/md_hmac_demo \
Gilles Peskineb0fa9d22021-04-22 20:07:44 +020041 pkey/dh_client \
42 pkey/dh_genprime \
43 pkey/dh_server \
44 pkey/ecdh_curve25519 \
45 pkey/ecdsa \
46 pkey/gen_key \
47 pkey/key_app \
48 pkey/key_app_writer \
49 pkey/mpi_demo \
50 pkey/pk_decrypt \
51 pkey/pk_encrypt \
52 pkey/pk_sign \
53 pkey/pk_verify \
54 pkey/rsa_decrypt \
55 pkey/rsa_encrypt \
56 pkey/rsa_genkey \
57 pkey/rsa_sign \
58 pkey/rsa_sign_pss \
59 pkey/rsa_verify \
60 pkey/rsa_verify_pss \
Manuel Pégourié-Gonnard6fdc9e82022-01-31 13:27:39 +010061 psa/aead_demo \
Gilles Peskineb0fa9d22021-04-22 20:07:44 +020062 psa/crypto_examples \
Manuel Pégourié-Gonnard69bb3f52022-01-31 13:09:47 +010063 psa/hmac_demo \
Gilles Peskineb0fa9d22021-04-22 20:07:44 +020064 psa/key_ladder_demo \
65 psa/psa_constant_names \
Hannes Tschofenigf8b9ebf2023-07-18 13:46:10 +010066 psa/psa_hash \
Gilles Peskineb0fa9d22021-04-22 20:07:44 +020067 random/gen_entropy \
68 random/gen_random_ctr_drbg \
69 ssl/dtls_client \
70 ssl/dtls_server \
71 ssl/mini_client \
72 ssl/ssl_client1 \
73 ssl/ssl_client2 \
74 ssl/ssl_context_info \
75 ssl/ssl_fork_server \
76 ssl/ssl_mail_client \
77 ssl/ssl_server \
78 ssl/ssl_server2 \
79 test/benchmark \
Gilles Peskine33406b62023-11-02 18:48:39 +010080 test/metatest \
Gilles Peskineb0fa9d22021-04-22 20:07:44 +020081 test/query_compile_time_config \
Gilles Peskinedf6e84a2023-02-22 22:09:51 +010082 test/query_included_headers \
Gilles Peskineb0fa9d22021-04-22 20:07:44 +020083 test/selftest \
84 test/udp_proxy \
85 test/zeroize \
86 util/pem2der \
87 util/strerror \
88 x509/cert_app \
89 x509/cert_req \
90 x509/cert_write \
91 x509/crl_app \
Gilles Peskine2c1442e2021-07-26 20:20:54 +020092 x509/load_roots \
Gilles Peskineb0fa9d22021-04-22 20:07:44 +020093 x509/req_app \
Gilles Peskine8de196a2020-02-11 17:18:08 +010094# End of APPS
Paul Bakker5121ce52009-01-03 21:22:43 +000095
Paul Elliott79dc6da2023-12-11 17:52:03 +000096ifeq ($(THREADING),pthread)
Gilles Peskineb0fa9d22021-04-22 20:07:44 +020097APPS += ssl/ssl_pthread_server
Paul Bakkerf9c49532013-12-19 15:40:58 +010098endif
99
Gilles Peskinef80a0292021-11-04 15:18:00 +0100100ifdef BUILD_DLOPEN
Gilles Peskinea7c247e2021-11-04 12:45:19 +0100101APPS += test/dlopen
102endif
103
Andrzej Kurek0211c322018-03-15 05:16:24 -0400104ifdef TEST_CPP
Gilles Peskineb0fa9d22021-04-22 20:07:44 +0200105APPS += test/cpp_dummy_build
Andrzej Kurek0211c322018-03-15 05:16:24 -0400106endif
107
Gilles Peskineb0fa9d22021-04-22 20:07:44 +0200108EXES = $(patsubst %,%$(EXEXT),$(APPS))
109
Paul Bakker5121ce52009-01-03 21:22:43 +0000110.SILENT:
111
Philippe Antoine48f35f52019-06-27 08:46:45 +0200112.PHONY: all clean list fuzz
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200113
Gilles Peskineb0fa9d22021-04-22 20:07:44 +0200114all: $(EXES)
Philippe Antoinea864db02019-07-10 20:37:57 +0200115ifndef WINDOWS
116# APPS doesn't include the fuzzing programs, which aren't "normal"
117# sample or test programs, and don't build with MSVC which is
118# warning about fopen
119all: fuzz
120endif
Philippe Antoine48f35f52019-06-27 08:46:45 +0200121
Gilles Peskineb35ed452024-09-14 13:05:51 +0200122SSL_OPT_APPS = $(filter ssl/%,$(APPS))
123SSL_OPT_APPS += test/query_compile_time_config test/udp_proxy
124# Just the programs needed to run ssl-opt.sh (and compat.sh)
125ssl-opt: $(patsubst %,%$(EXEXT),$(SSL_OPT_APPS))
126.PHONY: ssl-opt
127
Ronald Cron8dc0af22020-06-05 16:00:22 +0200128fuzz: ${MBEDTLS_TEST_OBJS}
Paul Elliott0c847bc2024-01-24 19:08:31 +0000129 $(MAKE) -C fuzz
Paul Bakker5121ce52009-01-03 21:22:43 +0000130
Ronald Cron8dc0af22020-06-05 16:00:22 +0200131${MBEDTLS_TEST_OBJS}:
132 $(MAKE) -C ../tests mbedtls_test
133
Gilles Peskine687d1ab2021-04-22 01:01:56 +0200134.PHONY: generated_files
135GENERATED_FILES = psa/psa_constant_names_generated.c test/query_config.c
136generated_files: $(GENERATED_FILES)
137
Gilles Peskine0b62b7a2023-09-08 16:19:13 +0200138psa/psa_constant_names_generated.c: $(gen_file_dep) ../scripts/generate_psa_constants.py
139psa/psa_constant_names_generated.c: $(gen_file_dep) ../include/psa/crypto_values.h
140psa/psa_constant_names_generated.c: $(gen_file_dep) ../include/psa/crypto_extra.h
141psa/psa_constant_names_generated.c: $(gen_file_dep) ../tests/suites/test_suite_psa_crypto_metadata.data
Gilles Peskine687d1ab2021-04-22 01:01:56 +0200142psa/psa_constant_names_generated.c:
143 echo " Gen $@"
144 $(PYTHON) ../scripts/generate_psa_constants.py
145
Gilles Peskine0b62b7a2023-09-08 16:19:13 +0200146test/query_config.c: $(gen_file_dep) ../scripts/generate_query_config.pl
Bence Szépkútibb0cfeb2021-05-28 09:42:25 +0200147## The generated file only depends on the options that are present in mbedtls_config.h,
Gilles Peskine1411c7c2021-04-22 14:50:16 +0200148## not on which options are set. To avoid regenerating this file all the time
Bence Szépkútibb0cfeb2021-05-28 09:42:25 +0200149## when switching between configurations, don't declare mbedtls_config.h as a
Gilles Peskine1411c7c2021-04-22 14:50:16 +0200150## dependency. Remove this file from your working tree if you've just added or
Bence Szépkútibb0cfeb2021-05-28 09:42:25 +0200151## removed an option in mbedtls_config.h.
Gilles Peskine0b62b7a2023-09-08 16:19:13 +0200152#test/query_config.c: $(gen_file_dep) ../include/mbedtls/mbedtls_config.h
153test/query_config.c: $(gen_file_dep) ../scripts/data_files/query_config.fmt
Gilles Peskine687d1ab2021-04-22 01:01:56 +0200154test/query_config.c:
155 echo " Gen $@"
156 $(PERL) ../scripts/generate_query_config.pl
157
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200158aes/crypt_and_hash$(EXEXT): aes/crypt_and_hash.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100159 echo " CC aes/crypt_and_hash.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200160 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) aes/crypt_and_hash.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker20a78082011-01-21 09:32:12 +0000161
Manuel Pégourié-Gonnard29088a42022-02-01 09:38:26 +0100162cipher/cipher_aead_demo$(EXEXT): cipher/cipher_aead_demo.c $(DEP)
163 echo " CC cipher/cipher_aead_demo.c"
164 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) cipher/cipher_aead_demo.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker5121ce52009-01-03 21:22:43 +0000165
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200166hash/generic_sum$(EXEXT): hash/generic_sum.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100167 echo " CC hash/generic_sum.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200168 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) hash/generic_sum.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkerfb6c7e22011-01-21 10:21:11 +0000169
Paul Bakker5121ce52009-01-03 21:22:43 +0000170hash/hello$(EXEXT): hash/hello.c $(DEP)
171 echo " CC hash/hello.c"
172 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) hash/hello.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
173
Manuel Pégourié-Gonnard29088a42022-02-01 09:38:26 +0100174hash/md_hmac_demo$(EXEXT): hash/md_hmac_demo.c $(DEP)
175 echo " CC hash/md_hmac_demo.c"
176 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) hash/md_hmac_demo.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker5121ce52009-01-03 21:22:43 +0000177
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200178pkey/dh_client$(EXEXT): pkey/dh_client.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100179 echo " CC pkey/dh_client.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200180 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/dh_client.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker5121ce52009-01-03 21:22:43 +0000181
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200182pkey/dh_genprime$(EXEXT): pkey/dh_genprime.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100183 echo " CC pkey/dh_genprime.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200184 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/dh_genprime.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker5121ce52009-01-03 21:22:43 +0000185
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200186pkey/dh_server$(EXEXT): pkey/dh_server.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100187 echo " CC pkey/dh_server.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200188 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/dh_server.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker5121ce52009-01-03 21:22:43 +0000189
Manuel Pégourié-Gonnard3eb8c342015-10-09 12:11:14 +0100190pkey/ecdh_curve25519$(EXEXT): pkey/ecdh_curve25519.c $(DEP)
191 echo " CC pkey/ecdh_curve25519.c"
192 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/ecdh_curve25519.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
193
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200194pkey/ecdsa$(EXEXT): pkey/ecdsa.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100195 echo " CC pkey/ecdsa.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200196 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/ecdsa.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnardaa431612013-08-09 17:10:27 +0200197
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200198pkey/gen_key$(EXEXT): pkey/gen_key.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100199 echo " CC pkey/gen_key.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200200 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/gen_key.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker15b9b3a2013-09-23 12:05:44 +0200201
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200202pkey/key_app$(EXEXT): pkey/key_app.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100203 echo " CC pkey/key_app.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200204 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/key_app.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkered56b222011-07-13 11:26:43 +0000205
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200206pkey/key_app_writer$(EXEXT): pkey/key_app_writer.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100207 echo " CC pkey/key_app_writer.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200208 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/key_app_writer.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkerbdb912d2012-02-13 23:11:30 +0000209
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200210pkey/mpi_demo$(EXEXT): pkey/mpi_demo.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100211 echo " CC pkey/mpi_demo.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200212 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/mpi_demo.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker5121ce52009-01-03 21:22:43 +0000213
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200214pkey/pk_decrypt$(EXEXT): pkey/pk_decrypt.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100215 echo " CC pkey/pk_decrypt.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200216 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/pk_decrypt.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker940f9ce2013-09-18 15:34:57 +0200217
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200218pkey/pk_encrypt$(EXEXT): pkey/pk_encrypt.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100219 echo " CC pkey/pk_encrypt.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200220 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/pk_encrypt.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker940f9ce2013-09-18 15:34:57 +0200221
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200222pkey/pk_sign$(EXEXT): pkey/pk_sign.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100223 echo " CC pkey/pk_sign.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200224 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/pk_sign.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker940f9ce2013-09-18 15:34:57 +0200225
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200226pkey/pk_verify$(EXEXT): pkey/pk_verify.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100227 echo " CC pkey/pk_verify.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200228 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/pk_verify.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker940f9ce2013-09-18 15:34:57 +0200229
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200230pkey/rsa_genkey$(EXEXT): pkey/rsa_genkey.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100231 echo " CC pkey/rsa_genkey.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200232 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_genkey.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker5121ce52009-01-03 21:22:43 +0000233
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200234pkey/rsa_sign$(EXEXT): pkey/rsa_sign.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100235 echo " CC pkey/rsa_sign.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200236 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_sign.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker5121ce52009-01-03 21:22:43 +0000237
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200238pkey/rsa_verify$(EXEXT): pkey/rsa_verify.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100239 echo " CC pkey/rsa_verify.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200240 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_verify.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker5121ce52009-01-03 21:22:43 +0000241
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200242pkey/rsa_sign_pss$(EXEXT): pkey/rsa_sign_pss.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100243 echo " CC pkey/rsa_sign_pss.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200244 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_sign_pss.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkere77db2e2011-03-25 14:01:32 +0000245
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200246pkey/rsa_verify_pss$(EXEXT): pkey/rsa_verify_pss.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100247 echo " CC pkey/rsa_verify_pss.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200248 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_verify_pss.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkere77db2e2011-03-25 14:01:32 +0000249
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200250pkey/rsa_decrypt$(EXEXT): pkey/rsa_decrypt.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100251 echo " CC pkey/rsa_decrypt.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200252 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_decrypt.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker7bc05ff2011-08-09 10:30:36 +0000253
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200254pkey/rsa_encrypt$(EXEXT): pkey/rsa_encrypt.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100255 echo " CC pkey/rsa_encrypt.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200256 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) pkey/rsa_encrypt.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker7bc05ff2011-08-09 10:30:36 +0000257
Manuel Pégourié-Gonnard6fdc9e82022-01-31 13:27:39 +0100258psa/aead_demo$(EXEXT): psa/aead_demo.c $(DEP)
259 echo " CC psa/aead_demo.c"
260 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) psa/aead_demo.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard398d4592022-01-07 12:26:32 +0100261
Manuel Pégourié-Gonnard667b5562021-11-22 13:00:17 +0100262psa/crypto_examples$(EXEXT): psa/crypto_examples.c $(DEP)
263 echo " CC psa/crypto_examples.c"
264 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) psa/crypto_examples.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
265
Manuel Pégourié-Gonnard69bb3f52022-01-31 13:09:47 +0100266psa/hmac_demo$(EXEXT): psa/hmac_demo.c $(DEP)
267 echo " CC psa/hmac_demo.c"
268 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) psa/hmac_demo.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard667b5562021-11-22 13:00:17 +0100269
Gilles Peskinef0fa4362018-07-16 17:08:43 +0200270psa/key_ladder_demo$(EXEXT): psa/key_ladder_demo.c $(DEP)
271 echo " CC psa/key_ladder_demo.c"
272 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) psa/key_ladder_demo.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
273
Gilles Peskine4a707402021-02-24 21:45:38 +0100274psa/psa_constant_names$(EXEXT): psa/psa_constant_names.c psa/psa_constant_names_generated.c $(DEP)
Gilles Peskine029b5d62018-07-16 23:13:37 +0200275 echo " CC psa/psa_constant_names.c"
276 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) psa/psa_constant_names.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
277
Hannes Tschofenigf8b9ebf2023-07-18 13:46:10 +0100278psa/psa_hash$(EXEXT): psa/psa_hash.c $(DEP)
279 echo " CC psa/psa_hash.c"
280 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) psa/psa_hash.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
281
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200282random/gen_entropy$(EXEXT): random/gen_entropy.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100283 echo " CC random/gen_entropy.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200284 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) random/gen_entropy.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker6083fd22011-12-03 21:45:14 +0000285
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200286random/gen_random_ctr_drbg$(EXEXT): random/gen_random_ctr_drbg.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100287 echo " CC random/gen_random_ctr_drbg.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200288 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) random/gen_random_ctr_drbg.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkerfc36d162011-01-27 16:50:02 +0000289
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200290ssl/dtls_client$(EXEXT): ssl/dtls_client.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100291 echo " CC ssl/dtls_client.c"
Manuel Pégourié-Gonnard8d4a6132015-06-24 12:16:20 +0200292 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/dtls_client.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnarde63582a2014-10-14 11:47:21 +0200293
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200294ssl/dtls_server$(EXEXT): ssl/dtls_server.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100295 echo " CC ssl/dtls_server.c"
Manuel Pégourié-Gonnard8d4a6132015-06-24 12:16:20 +0200296 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/dtls_server.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnarde63582a2014-10-14 11:47:21 +0200297
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200298ssl/ssl_client1$(EXEXT): ssl/ssl_client1.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100299 echo " CC ssl/ssl_client1.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200300 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_client1.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker5121ce52009-01-03 21:22:43 +0000301
Gilles Peskinea3ed34f2021-01-05 21:11:16 +0100302SSL_TEST_OBJECTS = test/query_config.o ssl/ssl_test_lib.o
Gilles Peskinec772b182021-01-12 15:55:10 +0100303SSL_TEST_DEPS = $(SSL_TEST_OBJECTS) \
Harry Ramseya67f1332025-02-17 11:51:52 +0000304 $(FRAMEWORK)/tests/programs/query_config.h \
Gilles Peskinec772b182021-01-12 15:55:10 +0100305 ssl/ssl_test_lib.h \
306 ssl/ssl_test_common_source.c \
307 $(DEP)
Gilles Peskinef06a54c2021-01-05 20:59:50 +0100308
Gilles Peskinea3ed34f2021-01-05 21:11:16 +0100309ssl/ssl_test_lib.o: ssl/ssl_test_lib.c ssl/ssl_test_lib.h $(DEP)
310 echo " CC ssl/ssl_test_lib.c"
311 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) -c ssl/ssl_test_lib.c -o $@
312
Gilles Peskine0d980b82021-01-05 23:34:27 +0100313ssl/ssl_client2$(EXEXT): ssl/ssl_client2.c $(SSL_TEST_DEPS)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100314 echo " CC ssl/ssl_client2.c"
Gilles Peskinef06a54c2021-01-05 20:59:50 +0100315 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_client2.c $(SSL_TEST_OBJECTS) $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker5121ce52009-01-03 21:22:43 +0000316
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200317ssl/ssl_server$(EXEXT): ssl/ssl_server.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100318 echo " CC ssl/ssl_server.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200319 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_server.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker5121ce52009-01-03 21:22:43 +0000320
Gilles Peskine0d980b82021-01-05 23:34:27 +0100321ssl/ssl_server2$(EXEXT): ssl/ssl_server2.c $(SSL_TEST_DEPS)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100322 echo " CC ssl/ssl_server2.c"
Gilles Peskinef06a54c2021-01-05 20:59:50 +0100323 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_server2.c $(SSL_TEST_OBJECTS) $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkerb60b95f2012-09-25 09:05:17 +0000324
Harry Ramseya67f1332025-02-17 11:51:52 +0000325ssl/ssl_context_info$(EXEXT): ssl/ssl_context_info.c test/query_config.o $(FRAMEWORK)/tests/programs/query_config.h $(DEP)
Piotr Nowickibc876d42020-03-26 12:49:15 +0100326 echo " CC ssl/ssl_context_info.c"
Gilles Peskinef06a54c2021-01-05 20:59:50 +0100327 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_context_info.c test/query_config.o $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Piotr Nowicki9370f902020-03-13 14:43:22 +0100328
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200329ssl/ssl_fork_server$(EXEXT): ssl/ssl_fork_server.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100330 echo " CC ssl/ssl_fork_server.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200331 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_fork_server.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker896ac222011-05-20 12:33:05 +0000332
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200333ssl/ssl_pthread_server$(EXEXT): ssl/ssl_pthread_server.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100334 echo " CC ssl/ssl_pthread_server.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200335 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_pthread_server.c $(LOCAL_LDFLAGS) -lpthread $(LDFLAGS) -o $@
Paul Bakkerf9c49532013-12-19 15:40:58 +0100336
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200337ssl/ssl_mail_client$(EXEXT): ssl/ssl_mail_client.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100338 echo " CC ssl/ssl_mail_client.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200339 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/ssl_mail_client.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker1496d382011-05-23 12:07:29 +0000340
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200341ssl/mini_client$(EXEXT): ssl/mini_client.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100342 echo " CC ssl/mini_client.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200343 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) ssl/mini_client.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnarda6fc5b22014-11-24 14:05:25 +0100344
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200345test/benchmark$(EXEXT): test/benchmark.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100346 echo " CC test/benchmark.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200347 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) test/benchmark.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker5121ce52009-01-03 21:22:43 +0000348
Gilles Peskine03ab5442021-07-09 15:19:28 +0200349test/cpp_dummy_build.cpp: test/generate_cpp_dummy_build.sh
350 echo " Gen test/cpp_dummy_build.cpp"
351 test/generate_cpp_dummy_build.sh
352
Andrzej Kurek89c048c2018-03-16 07:37:44 -0400353test/cpp_dummy_build$(EXEXT): test/cpp_dummy_build.cpp $(DEP)
354 echo " CXX test/cpp_dummy_build.cpp"
355 $(CXX) $(LOCAL_CXXFLAGS) $(CXXFLAGS) test/cpp_dummy_build.cpp $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Andrzej Kurek40741f82018-03-14 17:24:01 -0400356
Gilles Peskinef80a0292021-11-04 15:18:00 +0100357ifdef BUILD_DLOPEN
Gilles Peskinea7c247e2021-11-04 12:45:19 +0100358test/dlopen$(EXEXT): test/dlopen.c $(DEP)
359 echo " CC test/dlopen.c"
360# Do not link any test objects (that would bring in a static dependency on
361# libmbedcrypto at least). Do not link with libmbed* (that would defeat the
362# purpose of testing dynamic loading).
Gilles Peskine5dbee582021-11-04 15:07:28 +0100363 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) test/dlopen.c $(LDFLAGS) $(DLOPEN_LDFLAGS) -o $@
Gilles Peskinea7c247e2021-11-04 12:45:19 +0100364endif
365
Harry Ramseya67f1332025-02-17 11:51:52 +0000366test/metatest$(EXEXT): $(FRAMEWORK)/tests/programs/metatest.c $(DEP)
367 echo " CC $(FRAMEWORK)/tests/programs/metatest.c"
368 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) -I ../library $(FRAMEWORK)/tests/programs/metatest.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Gilles Peskine33406b62023-11-02 18:48:39 +0100369
Harry Ramseya67f1332025-02-17 11:51:52 +0000370test/query_config.o: test/query_config.c $(FRAMEWORK)/tests/programs/query_config.h $(DEP)
371 echo " CC $(FRAMEWORK)/tests/programs/query_config.c"
Gilles Peskinef06a54c2021-01-05 20:59:50 +0100372 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) -c test/query_config.c -o $@
373
Harry Ramseya67f1332025-02-17 11:51:52 +0000374test/query_included_headers$(EXEXT): $(FRAMEWORK)/tests/programs/query_included_headers.c $(DEP)
375 echo " CC $(FRAMEWORK)/tests/programs/query_included_headers.c"
376 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $(FRAMEWORK)/tests/programs/query_included_headers.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Gilles Peskinedf6e84a2023-02-22 22:09:51 +0100377
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200378test/selftest$(EXEXT): test/selftest.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100379 echo " CC test/selftest.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200380 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) test/selftest.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker5121ce52009-01-03 21:22:43 +0000381
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200382test/udp_proxy$(EXEXT): test/udp_proxy.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100383 echo " CC test/udp_proxy.c"
Manuel Pégourié-Gonnard8d4a6132015-06-24 12:16:20 +0200384 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) test/udp_proxy.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnardcb4137b2014-09-04 14:55:28 +0200385
Harry Ramseya67f1332025-02-17 11:51:52 +0000386test/zeroize$(EXEXT): $(FRAMEWORK)/tests/programs/zeroize.c $(DEP)
387 echo " CC $(FRAMEWORK)/tests/programs/zeroize.c"
388 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $(FRAMEWORK)/tests/programs/zeroize.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Andres Amaya Garcia5ab74a12017-10-24 21:10:45 +0100389
Harry Ramseya67f1332025-02-17 11:51:52 +0000390test/query_compile_time_config$(EXEXT): $(FRAMEWORK)/tests/programs/query_compile_time_config.c test/query_config.o $(FRAMEWORK)/tests/programs/query_config.h $(DEP)
391 echo " CC $(FRAMEWORK)/tests/programs/query_compile_time_config.c"
392 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $(FRAMEWORK)/tests/programs/query_compile_time_config.c test/query_config.o $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Andres AG509ba692018-10-26 18:41:08 +0100393
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200394util/pem2der$(EXEXT): util/pem2der.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100395 echo " CC util/pem2der.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200396 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) util/pem2der.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker8adf13b2013-08-25 14:50:09 +0200397
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200398util/strerror$(EXEXT): util/strerror.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100399 echo " CC util/strerror.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200400 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) util/strerror.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker01cc3942012-05-08 08:36:15 +0000401
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200402x509/cert_app$(EXEXT): x509/cert_app.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100403 echo " CC x509/cert_app.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200404 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/cert_app.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker4fc45522010-03-18 20:11:58 +0000405
Manuel Pégourié-Gonnarda7c89032015-06-29 15:47:35 +0200406x509/cert_write$(EXEXT): x509/cert_write.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100407 echo " CC x509/cert_write.c"
Manuel Pégourié-Gonnarda7c89032015-06-29 15:47:35 +0200408 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/cert_write.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
409
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200410x509/crl_app$(EXEXT): x509/crl_app.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100411 echo " CC x509/crl_app.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200412 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/crl_app.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkera9507c02011-02-12 15:27:28 +0000413
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200414x509/cert_req$(EXEXT): x509/cert_req.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100415 echo " CC x509/cert_req.c"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200416 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/cert_req.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkerbdb912d2012-02-13 23:11:30 +0000417
Gilles Peskine2c1442e2021-07-26 20:20:54 +0200418x509/load_roots$(EXEXT): x509/load_roots.c $(DEP)
419 echo " CC x509/load_roots.c"
420 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/load_roots.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
421
Manuel Pégourié-Gonnarda7c89032015-06-29 15:47:35 +0200422x509/req_app$(EXEXT): x509/req_app.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100423 echo " CC x509/req_app.c"
Manuel Pégourié-Gonnarda7c89032015-06-29 15:47:35 +0200424 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/req_app.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
425
Paul Bakker5121ce52009-01-03 21:22:43 +0000426clean:
Paul Bakker62f88dc2012-05-10 21:26:28 +0000427ifndef WINDOWS
Gilles Peskineb0fa9d22021-04-22 20:07:44 +0200428 rm -f $(EXES)
Jaeden Amerobefe1e152019-06-03 09:14:14 +0100429 -rm -f ssl/ssl_pthread_server$(EXEXT)
Gilles Peskine03ab5442021-07-09 15:19:28 +0200430 -rm -f test/cpp_dummy_build.cpp test/cpp_dummy_build$(EXEXT)
Gilles Peskinea7c247e2021-11-04 12:45:19 +0100431 -rm -f test/dlopen$(EXEXT)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200432else
Darryl Green9b9a7902019-08-30 14:51:55 +0100433 if exist *.o del /Q /F *.o
434 if exist *.exe del /Q /F *.exe
Gilles Peskine03ab5442021-07-09 15:19:28 +0200435 if exist test\cpp_dummy_build.cpp del /Q /F test\cpp_dummy_build.cpp
Paul Bakker62f88dc2012-05-10 21:26:28 +0000436endif
Philippe Antoine48f35f52019-06-27 08:46:45 +0200437 $(MAKE) -C fuzz clean
Manuel Pégourié-Gonnard1b578782013-09-16 13:33:42 +0200438
439list:
Gilles Peskineb0fa9d22021-04-22 20:07:44 +0200440 echo $(EXES)