rsys

Basic data structures and low-level features
git clone git://git.meso-star.fr/rsys.git
Log | Files | Refs | README | LICENSE

commit b91a36c9dc9a2a9cb363f2c74f7fa5dd31729242
parent 25c0b2321eecf60eb730b4e28d9e1fc2dd55acc7
Author: vaplv <vaplv@free.fr>
Date:   Mon, 14 Feb 2022 21:31:43 +0100

Add the libtest_lib.so target to the Makefile

It is actually a prerequisite for test_library

Diffstat:
MMakefile | 11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -308,13 +308,22 @@ test_mutex \ : librsys.so $(CC) $(CFLAGS) -o $@ src/$@.o -fopenmp -L$$(pwd) -lrsys -lm + +test_lib.o: src/test_library.c src/rsys.h + $(CC) $(CFLAGS) -c src/test_library.c -DTEST_LIBRARY_BUILD_LIB -o $@ + +libtest_lib.so: test_lib.o + $(CC) $(CFLAGS) -shared -o $@ test_lib.o + +test_library: libtest_lib.so + ################################################################################ # Miscellaneous targets ################################################################################ all: build_library build_tests clean: - @rm -f $(OBJ) $(TEST_OBJ) librsys.so .test + @rm -f $(OBJ) $(TEST_OBJ) librsys.so libtest_lib.so .test @rm -f $$(for i in $(TEST_SRC); do echo $${i} | sed 's/src\/\(.\{1,\}\).c$$/\1/'; done) distclean: clean