add a few TODOs in constructionModelesEMGLLF.R
[valse.git] / src / test / Makefile
1 CC = gcc
2 CFLAGS = -g -std=gnu99 -Wno-implicit-function-declaration
3 LDFLAGS = -lm -lgsl -lcblas -lgomp
4 TEST_LDFLAGS = -L. libvalse_core.so
5 LIB = libvalse_core.so
6 LIB_SRC = $(wildcard ../sources/*.c)
7 LIB_OBJ = $(LIB_SRC:.c=.o)
8 INCLUDES = -I../sources
9 TESTS = test.EMGLLF test.EMGrank test.constructionModelesLassoMLE test.EMGrank\
10 test.constructionModelesLassoRank test.selectionTotale
11
12 all: $(LIB) $(TESTS)
13
14 $(LIB): $(LIB_OBJ)
15 $(CC) -shared -o $@ $^ $(LDFLAGS)
16
17 test.EMGLLF: $(LIB) test.EMGLLF.o test_utils.o
18 $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS)
19
20 test.EMGrank: $(LIB) test.EMGrank.o test_utils.o
21 $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS)
22
23 test.constructionModelesLassoMLE: $(LIB) test.constructionModelesLassoMLE.o test_utils.o
24 $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS)
25
26 test.constructionModelesLassoRank: $(LIB) test.constructionModelesLassoRank.o test_utils.o
27 $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS)
28
29 test.selectionTotale: $(LIB) test.selectionTotale.o test_utils.o
30 $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS)
31
32 %.o: %.c
33 $(CC) -fPIC -o $@ -c $< $(CFLAGS) $(INCLUDES)
34
35 clean:
36 rm -f *.o ../sources/*.o ../adapters/*.o
37
38 cclean: clean
39 rm -f *.so $(TESTS)
40
41 .PHONY: all clean cclean