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