From e98ac60b21e5d2f66e22e117a793f3665101e170 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Thu, 18 Jun 2015 13:49:13 -0400 Subject: build all cores with i2c --- sw/Makefile.i2c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sw/Makefile.i2c') diff --git a/sw/Makefile.i2c b/sw/Makefile.i2c index 98cd541..5348918 100755 --- a/sw/Makefile.i2c +++ b/sw/Makefile.i2c @@ -2,7 +2,7 @@ CC = gcc CFLAGS = -Wall -fPIC LIB = libcryptech_i2c.a -BIN = hash_i2c hash_tester_i2c trng_extractor_i2c trng_tester_i2c +BIN = hash_i2c hash_tester_i2c trng_extractor_i2c trng_tester_i2c aes_tester_i2c modexp_tester_i2c INC = cryptech.h PREFIX = /usr/local @@ -24,6 +24,12 @@ hash_tester_i2c: hash_tester.o $(LIB) trng_tester_i2c: trng_tester.o $(LIB) $(CC) -o $@ $^ +aes_tester_i2c: aes_tester.o $(LIB) + $(CC) -o $@ $^ + +modexp_tester_i2c: modexp_tester.o $(LIB) + $(CC) -o $@ $^ + hash_i2c: hash.o $(LIB) $(CC) -o $@ $^ -- cgit v1.2.3 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.i2c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sw/Makefile.i2c') diff --git a/sw/Makefile.i2c b/sw/Makefile.i2c index 5348918..d993883 100755 --- a/sw/Makefile.i2c +++ b/sw/Makefile.i2c @@ -1,4 +1,5 @@ CC = gcc +AR = AR CFLAGS = -Wall -fPIC LIB = libcryptech_i2c.a @@ -16,7 +17,7 @@ all: $(LIB) $(BIN) $(CC) $(CFLAGS) -c -o $@ $< libcryptech_i2c.a: tc_i2c.o - ar rcs $@ $^ + $(AR) rcs $@ $^ hash_tester_i2c: hash_tester.o $(LIB) $(CC) -o $@ $^ -- cgit v1.2.3