X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=src%2Ftest%2FMakefile;fp=src%2Ftest%2FMakefile;h=c4931ad13f712ada07be857992fcbde4157d0e9d;hb=7b2720733e9aebe177c211119a9ec160c7e7117b;hp=0000000000000000000000000000000000000000;hpb=4725af564bfdbeb40d0caf7f124ab94ac05a97eb;p=valse.git diff --git a/src/test/Makefile b/src/test/Makefile new file mode 100644 index 0000000..c4931ad --- /dev/null +++ b/src/test/Makefile @@ -0,0 +1,37 @@ +CC = gcc +CFLAGS = -g -std=gnu99 -Wno-implicit-function-declaration +LDFLAGS = -Lobj/ -lvalse_core +LIB = valse_core.so +LIB_SRC = $(wildcard ../sources/*.c) +LIB_OBJ = $(LIB_SRC:.c=.o) + +all: $(LIB) test.EMGLLF test.EMGrank test.constructionModelesLassoMLE test.EMGrank test.constructionModelesLassoRank test.selectionTotale + +$(LIB): $(LIB_OBJ) + $(CC) -o $@ $^ + +test.EMGLLF: test.EMGLLF.o + $(CC) -o $@ $^ $(LDFLAGS) + +test.constructionModelesLassoMLE: test.constructionModelesLassoMLE.o + $(CC) -o $@ $^ $(LDFLAGS) + +test.EMGrank: test.EMGrank.o + $(CC) -o $@ $^ $(LDFLAGS) + +test.constructionModelesLassoRank: test.constructionModelesLassoRank.o + $(CC) -o $@ $^ $(LDFLAGS) + +test.selectionTotale: test.selectionTotale.o + $(CC) -o $@ $^ $(LDFLAGS) + +%.o: %.c + $(CC) -o $@ -c $< $(CFLAGS) + +clean: + rm -f *.o ../sources/*.o + +cclean: clean + rm -f $(LIB) $(TEST) + +.PHONY: all clean cclean