aboutsummaryrefslogtreecommitdiff
path: root/sw/Makefile
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-09-23 16:21:34 -0400
committerRob Austein <sra@hactrn.net>2015-09-23 16:21:34 -0400
commit99c3749c85b85b4865c4baafdd16b2cbb3ac52f2 (patch)
tree99a2ecef007a8a5c6c77644758f2017549243529 /sw/Makefile
parentf141a79d805acbab07876d9f007e8809603718b5 (diff)
parent5f1de63e3bc6043ee10683a2c9fd8a7c03a3983a (diff)
Merge branch 'modexps6' into config_core_selector_sra
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: