From 3252102d1c9c0e1fffce61391dab4d37f231655c Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Tue, 31 Mar 2015 16:36:44 -0400 Subject: Refactor common code into tc_[eim|i2c].[ch], add general-purpose hash utilities, add trng_tester_i2c. --- i2c/sw/Makefile | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'i2c/sw/Makefile') 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 -- cgit v1.2.3