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