projects
/
valse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test almost working
[valse.git]
/
src
/
test
/
Makefile
diff --git
a/src/test/Makefile
b/src/test/Makefile
index
c4931ad
..
796b424
100644
(file)
--- a/
src/test/Makefile
+++ b/
src/test/Makefile
@@
-1,32
+1,34
@@
CC = gcc
CFLAGS = -g -std=gnu99 -Wno-implicit-function-declaration
CC = gcc
CFLAGS = -g -std=gnu99 -Wno-implicit-function-declaration
-LDFLAGS = -Lobj/ -lvalse_core
+LDFLAGS = -lm -lgsl -lcblas -lgomp
+LDFLAGS_TEST = -Lobj/ -lvalse_core
LIB = valse_core.so
LIB_SRC = $(wildcard ../sources/*.c)
LIB_OBJ = $(LIB_SRC:.c=.o)
LIB = valse_core.so
LIB_SRC = $(wildcard ../sources/*.c)
LIB_OBJ = $(LIB_SRC:.c=.o)
+INCLUDES = -I../sources
all: $(LIB) test.EMGLLF test.EMGrank test.constructionModelesLassoMLE test.EMGrank test.constructionModelesLassoRank test.selectionTotale
$(LIB): $(LIB_OBJ)
all: $(LIB) test.EMGLLF test.EMGrank test.constructionModelesLassoMLE test.EMGrank test.constructionModelesLassoRank test.selectionTotale
$(LIB): $(LIB_OBJ)
- $(CC) -
o $@ $^
+ $(CC) -
shared -o $@ $^ $(LDFLAGS)
test.EMGLLF: test.EMGLLF.o
test.EMGLLF: test.EMGLLF.o
- $(CC) -o $@ $^ $(LDFLAGS)
+ $(CC) -o $@ $^ $(LDFLAGS)
$(TEST_LDFLAGS)
test.constructionModelesLassoMLE: test.constructionModelesLassoMLE.o
test.constructionModelesLassoMLE: test.constructionModelesLassoMLE.o
- $(CC) -o $@ $^ $(LDFLAGS)
+ $(CC) -o $@ $^ $(LDFLAGS)
$(TEST_LDFLAGS)
test.EMGrank: test.EMGrank.o
test.EMGrank: test.EMGrank.o
- $(CC) -o $@ $^ $(LDFLAGS)
+ $(CC) -o $@ $^ $(LDFLAGS)
$(TEST_LDFLAGS)
test.constructionModelesLassoRank: test.constructionModelesLassoRank.o
test.constructionModelesLassoRank: test.constructionModelesLassoRank.o
- $(CC) -o $@ $^ $(LDFLAGS)
+ $(CC) -o $@ $^ $(LDFLAGS)
$(TEST_LDFLAGS)
test.selectionTotale: test.selectionTotale.o
test.selectionTotale: test.selectionTotale.o
- $(CC) -o $@ $^ $(LDFLAGS)
+ $(CC) -o $@ $^ $(LDFLAGS)
$(TEST_LDFLAGS)
%.o: %.c
%.o: %.c
- $(CC) -o $@ -c $< $(CFLAGS)
+ $(CC) -o $@ -c $< $(CFLAGS)
$(INCLUDES)
clean:
rm -f *.o ../sources/*.o
clean:
rm -f *.o ../sources/*.o