| 1 | CC = gcc |
| 2 | CFLAGS = -g -std=gnu99 -Wno-implicit-function-declaration |
| 3 | LDFLAGS = -Lobj/ -lvalse_core |
| 4 | LIB = valse_core.so |
| 5 | LIB_SRC = $(wildcard ../sources/*.c) |
| 6 | LIB_OBJ = $(LIB_SRC:.c=.o) |
| 7 | |
| 8 | all: $(LIB) test.EMGLLF test.EMGrank test.constructionModelesLassoMLE test.EMGrank test.constructionModelesLassoRank test.selectionTotale |
| 9 | |
| 10 | $(LIB): $(LIB_OBJ) |
| 11 | $(CC) -o $@ $^ |
| 12 | |
| 13 | test.EMGLLF: test.EMGLLF.o |
| 14 | $(CC) -o $@ $^ $(LDFLAGS) |
| 15 | |
| 16 | test.constructionModelesLassoMLE: test.constructionModelesLassoMLE.o |
| 17 | $(CC) -o $@ $^ $(LDFLAGS) |
| 18 | |
| 19 | test.EMGrank: test.EMGrank.o |
| 20 | $(CC) -o $@ $^ $(LDFLAGS) |
| 21 | |
| 22 | test.constructionModelesLassoRank: test.constructionModelesLassoRank.o |
| 23 | $(CC) -o $@ $^ $(LDFLAGS) |
| 24 | |
| 25 | test.selectionTotale: test.selectionTotale.o |
| 26 | $(CC) -o $@ $^ $(LDFLAGS) |
| 27 | |
| 28 | %.o: %.c |
| 29 | $(CC) -o $@ -c $< $(CFLAGS) |
| 30 | |
| 31 | clean: |
| 32 | rm -f *.o ../sources/*.o |
| 33 | |
| 34 | cclean: clean |
| 35 | rm -f $(LIB) $(TEST) |
| 36 | |
| 37 | .PHONY: all clean cclean |