From 63a0d0e5499d3c4c4832e639479808501656e7bf Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Thu, 18 Jun 2015 23:11:09 -0400 Subject: use a variable for AR, to facilitate cross-compiling --- sw/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sw/Makefile') diff --git a/sw/Makefile b/sw/Makefile index 2aa4927..fc5faa6 100755 --- a/sw/Makefile +++ b/sw/Makefile @@ -1,4 +1,5 @@ CC = gcc +AR = ar CFLAGS = -Wall -fPIC LIB = libcryptech.a @@ -16,7 +17,7 @@ all: $(LIB) $(BIN) $(CC) $(CFLAGS) -c -o $@ $< libcryptech.a: tc_eim.o novena-eim.o - ar rcs $@ $^ + $(AR) rcs $@ $^ hash_tester: hash_tester.o $(LIB) $(CC) -o $@ $^ -- cgit v1.2.3 From ce8f42a5182a4c365e9ae2703f41efdefa6420c9 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Tue, 23 Jun 2015 18:15:27 -0400 Subject: add tools to configure and start an FPGA bitstream --- sw/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'sw/Makefile') diff --git a/sw/Makefile b/sw/Makefile index fc5faa6..928466e 100755 --- a/sw/Makefile +++ b/sw/Makefile @@ -3,7 +3,7 @@ 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 devmem3 INC = cryptech.h PREFIX = /usr/local @@ -37,14 +37,17 @@ hash: hash.o $(LIB) 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: -- cgit v1.2.3 From c44c8a77b56778c951fb09f94a577057573dbfa7 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Fri, 17 Jul 2015 10:31:26 -0400 Subject: experimental modexps6 (which requires changing the read timing on all other cores) --- sw/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sw/Makefile') diff --git a/sw/Makefile b/sw/Makefile index 928466e..63c9197 100755 --- a/sw/Makefile +++ b/sw/Makefile @@ -3,7 +3,7 @@ AR = ar CFLAGS = -Wall -fPIC LIB = libcryptech.a -BIN = hash hash_tester trng_extractor trng_tester aes_tester modexp_tester devmem3 +BIN = hash hash_tester trng_extractor trng_tester aes_tester modexp_tester modexps6_tester devmem3 INC = cryptech.h PREFIX = /usr/local @@ -31,6 +31,9 @@ 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 $@ $^ -- cgit v1.2.3