aboutsummaryrefslogtreecommitdiff
path: root/i2c/sw/Makefile
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2015-03-31 16:36:44 -0400
committerPaul Selkirk <paul@psgd.org>2015-03-31 16:36:44 -0400
commit3252102d1c9c0e1fffce61391dab4d37f231655c (patch)
tree4acb6b55a46fab448c0d9ed1f4ad1270e11fb326 /i2c/sw/Makefile
parentc61362a96ef83600d2711f794549ab30540615fc (diff)
Refactor common code into tc_[eim|i2c].[ch], add general-purpose hash utilities, add trng_tester_i2c.
Diffstat (limited to 'i2c/sw/Makefile')
-rwxr-xr-xi2c/sw/Makefile25
1 files changed, 21 insertions, 4 deletions
diff --git a/i2c/sw/Makefile b/i2c/sw/Makefile
index 0142c92..02e7e7d 100755
--- a/i2c/sw/Makefile
+++ b/i2c/sw/Makefile
@@ -1,7 +1,24 @@
-all: hash_tester_i2c
+all: hash_tester_i2c trng_tester_i2c hash_i2c
-hash_tester_i2c: hash_tester_i2c.c
- gcc -Wall -o $@ $^
+.c.o:
+ gcc -c -Wall -o $@ $<
+
+hash_tester_i2c: hash_tester_i2c.o tc_i2c.o
+ gcc -o $@ $^
+
+hash_tester_i2c.o: hash_tester_i2c.c tc_i2c.h
+
+trng_tester_i2c: trng_tester_i2c.o tc_i2c.o
+ gcc -o $@ $^
+
+trng_tester_i2c.o: trng_tester_i2c.c tc_i2c.h
+
+hash_i2c: hash_i2c.o tc_i2c.o
+ gcc -o $@ $^
+
+hash_i2c.o: hash_i2c.c tc_i2c.h
+
+tc_i2c.o: tc_i2c.c tc_i2c.h
clean:
- rm -f hash_tester_i2c
+ rm -f *.o hash_tester_i2c trng_tester_i2c hash_i2c