diff options
Diffstat (limited to 'i2c/sw/Makefile')
-rwxr-xr-x | i2c/sw/Makefile | 25 |
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 |