aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-12-11 22:37:04 -0500
committerRob Austein <sra@hactrn.net>2015-12-11 22:37:04 -0500
commitabd5caf5ea6e3563d623d3e952c0b9328f52639f (patch)
treec8552ef3ecb4993b3e389152cc505bdf4cac3007 /GNUmakefile
parent88872e2e20ee8738157fc7ed9afdefe0c07cae39 (diff)
RPC API dispatch, skeleton client functions, mixed-mode handlers for
local hashing with remote pkey.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index bb3821e..810d997 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -28,7 +28,7 @@
INC = hal.h
LIB = libhal.a
OBJ = ${IO_OBJ} core.o csprng.o hash.o aes_keywrap.o pbkdf2.o \
- modexp.o rsa.o ecdsa.o asn1.o errorstrings.o
+ modexp.o rsa.o ecdsa.o asn1.o errorstrings.o ${RPC_OBJ}
IO_OBJ_EIM = hal_io_eim.o novena-eim.o
IO_OBJ_I2C = hal_io_i2c.o
@@ -36,6 +36,13 @@ IO_OBJ_I2C = hal_io_i2c.o
# Default I/O bus is EIM, override this to use I2C instead
IO_OBJ = ${IO_OBJ_EIM}
+RPC_OBJ_CLIENT = hal_rpc.o rpc_client.o
+RPC_OBJ_SERVER = hal_rpc.o rpc_server.o
+
+# Default should be to build the RPC server, but we haven't written even the skeleton of that yet.
+# We'll probably end up needing a makefile conditional to handle all this properly
+RPC_OBJ = ${RPC_OBJ_CLIENT}
+
TFMDIR := $(abspath ../thirdparty/libtfm)
CFLAGS += -g3 -Wall -fPIC -std=c99 -I${TFMDIR} -DHAL_ECDSA_DEBUG_ONLY_STATIC_TEST_VECTOR_RANDOM=1
LDFLAGS := -g3 -L${TFMDIR} -ltfm