X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=src%2Ftest%2FMakefile;h=71c23425650d05475a11ddea0e695b1f42dd69f2;hb=9ff729fb6afff5bed327fa8619138fd3b6f6f13b;hp=796b4248be497450074ffeb2eb1bc984cdf46e0d;hpb=7ea8c1e58b3ab98eda5b003ccdffe5e35222bb4f;p=valse.git diff --git a/src/test/Makefile b/src/test/Makefile index 796b424..71c2342 100644 --- a/src/test/Makefile +++ b/src/test/Makefile @@ -1,8 +1,8 @@ CC = gcc CFLAGS = -g -std=gnu99 -Wno-implicit-function-declaration LDFLAGS = -lm -lgsl -lcblas -lgomp -LDFLAGS_TEST = -Lobj/ -lvalse_core -LIB = valse_core.so +TEST_LDFLAGS = -L. libvalse_core.so +LIB = libvalse_core.so LIB_SRC = $(wildcard ../sources/*.c) LIB_OBJ = $(LIB_SRC:.c=.o) INCLUDES = -I../sources @@ -12,23 +12,23 @@ all: $(LIB) test.EMGLLF test.EMGrank test.constructionModelesLassoMLE test.EMGra $(LIB): $(LIB_OBJ) $(CC) -shared -o $@ $^ $(LDFLAGS) -test.EMGLLF: test.EMGLLF.o +test.EMGLLF: test.EMGLLF.o test_utils.o $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS) -test.constructionModelesLassoMLE: test.constructionModelesLassoMLE.o +test.constructionModelesLassoMLE: test.constructionModelesLassoMLE.o test_utils.o $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS) -test.EMGrank: test.EMGrank.o +test.EMGrank: test.EMGrank.o test_utils.o $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS) -test.constructionModelesLassoRank: test.constructionModelesLassoRank.o +test.constructionModelesLassoRank: test.constructionModelesLassoRank.o test_utils.o $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS) -test.selectionTotale: test.selectionTotale.o +test.selectionTotale: test.selectionTotale.o test_utils.o $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS) %.o: %.c - $(CC) -o $@ -c $< $(CFLAGS) $(INCLUDES) + $(CC) -fPIC -o $@ -c $< $(CFLAGS) $(INCLUDES) clean: rm -f *.o ../sources/*.o