2 CFLAGS = -g -std=gnu99 -Wno-implicit-function-declaration
3 LDFLAGS = -lm -lgsl -lcblas -lgomp
4 TEST_LDFLAGS = -L. libvalse_core.so
6 LIB_SRC = $(wildcard ../sources/*.c)
7 LIB_OBJ = $(LIB_SRC:.c=.o)
8 INCLUDES = -I../sources
10 all: $(LIB) test.EMGLLF test.EMGrank test.constructionModelesLassoMLE test.EMGrank test.constructionModelesLassoRank test.selectionTotale
13 $(CC) -shared -o $@ $^ $(LDFLAGS)
15 test.EMGLLF: test.EMGLLF.o utils.o
16 $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS)
18 test.constructionModelesLassoMLE: test.constructionModelesLassoMLE.o utils.o
19 $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS)
21 test.EMGrank: test.EMGrank.o utils.o
22 $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS)
24 test.constructionModelesLassoRank: test.constructionModelesLassoRank.o utils.o
25 $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS)
27 test.selectionTotale: test.selectionTotale.o utils.o
28 $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS)
31 $(CC) -fPIC -o $@ -c $< $(CFLAGS) $(INCLUDES)
34 rm -f *.o ../sources/*.o
39 .PHONY: all clean cclean