aboutsummaryrefslogtreecommitdiff
path: root/sw/test-sha256/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sw/test-sha256/Makefile')
-rwxr-xr-xsw/test-sha256/Makefile18
1 files changed, 13 insertions, 5 deletions
diff --git a/sw/test-sha256/Makefile b/sw/test-sha256/Makefile
index c513ed0..ee8536e 100755
--- a/sw/test-sha256/Makefile
+++ b/sw/test-sha256/Makefile
@@ -1,11 +1,19 @@
-all: test-sha256
+all: test-sha256 hash_tester
+
+.c.o:
+ gcc -c -Wall -o $@ $<
test-sha256 : test-sha256.o novena-eim.o
gcc -o test-sha256 test-sha256.o novena-eim.o
-test-sha256.o: test-sha256.c novena-eim.h novena-eim.c
- gcc -c test-sha256.c
- gcc -c novena-eim.c
+test-sha256.o: test-sha256.c novena-eim.h
+
+hash_tester : hash_tester.o novena-eim.o
+ gcc -o hash_tester hash_tester.o novena-eim.o
+
+hash_tester.o: hash_tester.c novena-eim.h
+
+novena-eim.o: novena-eim.c novena-eim.h
clean:
- rm -f *.o test-sha256
+ rm -f *.o test-adder test-sha256 hash_tester