X-Git-Url: https://git.auder.net/?p=valse.git;a=blobdiff_plain;f=src%2Ftest%2FMakefile;h=136b1d29c57783072d2e2c3a31ce77169dbe7534;hp=71c23425650d05475a11ddea0e695b1f42dd69f2;hb=ef67d338c7f28ba041abe40ca9a8ab69f8365a90;hpb=c3bc47052f3ccb659659c59a82e9a99ea842398d diff --git a/src/test/Makefile b/src/test/Makefile index 71c2342..136b1d2 100644 --- a/src/test/Makefile +++ b/src/test/Makefile @@ -6,25 +6,27 @@ LIB = libvalse_core.so LIB_SRC = $(wildcard ../sources/*.c) LIB_OBJ = $(LIB_SRC:.c=.o) INCLUDES = -I../sources +TESTS = test.EMGLLF test.EMGrank test.constructionModelesLassoMLE test.EMGrank\ + test.constructionModelesLassoRank test.selectionTotale -all: $(LIB) test.EMGLLF test.EMGrank test.constructionModelesLassoMLE test.EMGrank test.constructionModelesLassoRank test.selectionTotale +all: $(LIB) $(TESTS) $(LIB): $(LIB_OBJ) $(CC) -shared -o $@ $^ $(LDFLAGS) -test.EMGLLF: test.EMGLLF.o test_utils.o +test.EMGLLF: $(LIB) test.EMGLLF.o test_utils.o $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS) -test.constructionModelesLassoMLE: test.constructionModelesLassoMLE.o test_utils.o +test.EMGrank: $(LIB) test.EMGrank.o test_utils.o $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS) -test.EMGrank: test.EMGrank.o test_utils.o +test.constructionModelesLassoMLE: $(LIB) test.constructionModelesLassoMLE.o test_utils.o $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS) -test.constructionModelesLassoRank: test.constructionModelesLassoRank.o test_utils.o +test.constructionModelesLassoRank: $(LIB) test.constructionModelesLassoRank.o test_utils.o $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS) -test.selectionTotale: test.selectionTotale.o test_utils.o +test.selectionTotale: $(LIB) test.selectionTotale.o test_utils.o $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS) %.o: %.c @@ -34,6 +36,6 @@ clean: rm -f *.o ../sources/*.o cclean: clean - rm -f $(LIB) $(TEST) + rm -f $(LIB) $(TESTS) .PHONY: all clean cclean