aboutsummaryrefslogtreecommitdiff
path: root/sw/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sw/Makefile')
-rwxr-xr-xsw/Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/sw/Makefile b/sw/Makefile
index d1f33f2..015f6f0 100755
--- a/sw/Makefile
+++ b/sw/Makefile
@@ -1,8 +1,9 @@
CC = gcc
+AR = ar
CFLAGS = -Wall -fPIC
LIB = libcryptech.a
-BIN = hash hash_tester trng_extractor trng_tester aes_tester modexp_tester
+BIN = hash hash_tester trng_extractor trng_tester aes_tester modexp_tester modexps6_tester devmem3
INC = cryptech.h
PREFIX = /usr/local
@@ -16,7 +17,7 @@ all: $(LIB) $(BIN)
$(CC) $(CFLAGS) -c -o $@ $<
libcryptech.a: tc_eim.o novena-eim.o capability.o
- ar rcs $@ $^
+ $(AR) rcs $@ $^
hash_tester: hash_tester.o $(LIB)
$(CC) -o $@ $^
@@ -30,20 +31,26 @@ aes_tester: aes_tester.o $(LIB)
modexp_tester: modexp_tester.o $(LIB)
$(CC) -o $@ $^
+modexps6_tester: modexps6_tester.o $(LIB)
+ $(CC) -o $@ $^
+
hash: hash.o $(LIB)
$(CC) -o $@ $^
trng_extractor: trng_extractor.o $(LIB)
$(CC) -o $@ $^
+devmem3: devmem3.o $(LIB)
+ $(CC) -o $@ $^
+
install: $(LIB) $(BIN) $(INC)
install $(LIB) $(LIB_DIR)
- install $(BIN) $(BIN_DIR)
+ install $(BIN) configure-fpga.sh $(BIN_DIR)
install $(INC) $(INC_DIR)
uninstall:
rm -f $(LIB_DIR)/$(LIB)
- rm -f $(foreach bin,$(BIN),$(BIN_DIR)/$(bin))
+ rm -f $(foreach bin,$(BIN) configure-fpga.sh,$(BIN_DIR)/$(bin))
rm -f $(INC_DIR)/$(INC)
clean: