diff options
Diffstat (limited to 'test/Makefile')
-rw-r--r-- | test/Makefile | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/test/Makefile b/test/Makefile index 8ee538c..2a8ad9c 100644 --- a/test/Makefile +++ b/test/Makefile @@ -25,13 +25,22 @@ functest: getrandom_test: getrandom_test.c ${CC} -o $@ ${CFLAGS} $< -randomtest: getrandom_test +randomtest: getrandom_test use_lib_random ./randomtest.sh +librandom.o: librandom.c + ${CC} -c -o $@ -fpic ${CFLAGS} $< + +librandom.so: librandom.o + ${CC} -o $@ -shared ${CFLAGS} $< + +use_lib_random: use_lib_random.c librandom.so + ${CC} -L. -o $@ ${CFLAGS} $< -lrandom + clean: - @rm -f ${OBJ} timetest getrandom_test + @rm -f ${OBJ} timetest getrandom_test librandom.o librandom.so use_lib_random distclean: clean @echo -.PHONY: all test clean distclean +.PHONY: all test clean distclean randomtest |