2 CFLAGS = -g -std=gnu99 -Wno-implicit-function-declaration
3 LDFLAGS = -lm -lgsl -lcblas
4 TEST_LDFLAGS = -L. libvalse_core.so
6 LIB_SRC = $(wildcard ../pkg/src/sources/*.c)
7 LIB_OBJ = $(LIB_SRC:.c=.o)
8 INCLUDES = -I../pkg/src/sources
9 TESTS = test.EMGLLF test.EMGrank test.constructionModelesLassoMLE test.EMGrank\
10 test.constructionModelesLassoRank test.selectionTotale
15 $(CC) -shared -o $@ $^ $(LDFLAGS)
17 test.EMGLLF: $(LIB) test.EMGLLF.o test_utils.o
18 $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS)
20 test.EMGrank: $(LIB) test.EMGrank.o test_utils.o
21 $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS)
23 test.constructionModelesLassoMLE: $(LIB) test.constructionModelesLassoMLE.o test_utils.o
24 $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS)
26 test.constructionModelesLassoRank: $(LIB) test.constructionModelesLassoRank.o test_utils.o
27 $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS)
29 test.selectionTotale: $(LIB) test.selectionTotale.o test_utils.o
30 $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS)
33 $(CC) -fPIC -o $@ -c $< $(CFLAGS) $(INCLUDES)
36 rm -f *.o ../pkg/src/sources/*.o ../pkg/src/adapters/*.o
41 .PHONY: all clean cclean