aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-06-10 02:32:54 -0400
committerRob Austein <sra@hactrn.net>2016-06-10 02:32:54 -0400
commitb3744cda1a0fab9ded7a406594b94375e311ca19 (patch)
treee8dbd7e882fbec5a9e6ef3516f8c457bdb95dd48 /tests
parent67cb831eae0224bd80786305cf73fe05c692b29c (diff)
Another attempt to clean up the libhal makefile hairball.
Diffstat (limited to 'tests')
-rw-r--r--tests/GNUmakefile24
1 files changed, 11 insertions, 13 deletions
diff --git a/tests/GNUmakefile b/tests/GNUmakefile
index 65c7a25..5e2b3ea 100644
--- a/tests/GNUmakefile
+++ b/tests/GNUmakefile
@@ -29,21 +29,19 @@
INC = ../hal.h
LIB = ../libhal.a
-BIN := test-aes-key-wrap test-hash test-pbkdf2 test-ecdsa test-bus test-trng test-rsa
-ifndef RPC_SERVER
- ifdef RPC_CLIENT
- ifneq (${RPC_CLIENT},local)
- # If we're only building a remote RPC client lib, don't include
- # tests that access the FPGA cores.
- BIN :=
- endif
- endif
+
+# Which tests to build depends on how the library was compiled.
+
+ifeq (${RPC_SERVER},yes)
+ BIN += test-rpc_server
endif
-ifdef RPC_CLIENT
- BIN += test-rpc_hash test-rpc_pkey test-rpc_get_version test-rpc_get_random
+
+ifeq (${RPC_CLIENT},none)
+ BIN += test-aes-key-wrap test-hash test-pbkdf2 test-ecdsa test-bus test-trng test-rsa
endif
-ifdef RPC_SERVER
- BIN += test-rpc_server
+
+ifeq (${RPC_CLIENT},local)
+ BIN += test-rpc_hash test-rpc_pkey test-rpc_get_version test-rpc_get_random
endif
CFLAGS = -g3 -Wall -fPIC -std=c99 -I..