projects
/
valse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix test.constructionModelesLassoMLE; TODO: det(rho[,,r]) ? numerical errors ? ....
[valse.git]
/
src
/
test
/
Makefile
diff --git
a/src/test/Makefile
b/src/test/Makefile
index
c4931ad
..
d582826
100644
(file)
--- a/
src/test/Makefile
+++ b/
src/test/Makefile
@@
-1,37
+1,41
@@
CC = gcc
CFLAGS = -g -std=gnu99 -Wno-implicit-function-declaration
CC = gcc
CFLAGS = -g -std=gnu99 -Wno-implicit-function-declaration
-LDFLAGS = -Lobj/ -lvalse_core
-LIB = valse_core.so
+LDFLAGS = -lm -lgsl -lcblas -lgomp
+TEST_LDFLAGS = -L. libvalse_core.so
+LIB = libvalse_core.so
LIB_SRC = $(wildcard ../sources/*.c)
LIB_OBJ = $(LIB_SRC:.c=.o)
LIB_SRC = $(wildcard ../sources/*.c)
LIB_OBJ = $(LIB_SRC:.c=.o)
+INCLUDES = -I../sources
+TESTS = test.EMGLLF test.EMGrank test.constructionModelesLassoMLE test.EMGrank\
+ test.constructionModelesLassoRank test.selectionTotale
-all: $(LIB)
test.EMGLLF test.EMGrank test.constructionModelesLassoMLE test.EMGrank test.constructionModelesLassoRank test.selectionTotale
+all: $(LIB)
$(TESTS)
$(LIB): $(LIB_OBJ)
$(LIB): $(LIB_OBJ)
- $(CC) -
o $@ $^
+ $(CC) -
shared -o $@ $^ $(LDFLAGS)
-test.EMGLLF:
test.EMGLLF
.o
- $(CC) -o $@ $^ $(LDFLAGS)
+test.EMGLLF:
$(LIB) test.EMGLLF.o test_utils
.o
+ $(CC) -o $@ $^ $(LDFLAGS)
$(TEST_LDFLAGS)
-test.
constructionModelesLassoMLE: test.constructionModelesLassoMLE
.o
- $(CC) -o $@ $^ $(LDFLAGS)
+test.
EMGrank: $(LIB) test.EMGrank.o test_utils
.o
+ $(CC) -o $@ $^ $(LDFLAGS)
$(TEST_LDFLAGS)
-test.
EMGrank: test.EMGrank
.o
- $(CC) -o $@ $^ $(LDFLAGS)
+test.
constructionModelesLassoMLE: $(LIB) test.constructionModelesLassoMLE.o test_utils
.o
+ $(CC) -o $@ $^ $(LDFLAGS)
$(TEST_LDFLAGS)
-test.constructionModelesLassoRank:
test.constructionModelesLassoRank
.o
- $(CC) -o $@ $^ $(LDFLAGS)
+test.constructionModelesLassoRank:
$(LIB) test.constructionModelesLassoRank.o test_utils
.o
+ $(CC) -o $@ $^ $(LDFLAGS)
$(TEST_LDFLAGS)
-test.selectionTotale:
test.selectionTotale
.o
- $(CC) -o $@ $^ $(LDFLAGS)
+test.selectionTotale:
$(LIB) test.selectionTotale.o test_utils
.o
+ $(CC) -o $@ $^ $(LDFLAGS)
$(TEST_LDFLAGS)
%.o: %.c
%.o: %.c
- $(CC) -
o $@ -c $< $(CFLAG
S)
+ $(CC) -
fPIC -o $@ -c $< $(CFLAGS) $(INCLUDE
S)
clean:
clean:
- rm -f *.o ../sources/*.o
+ rm -f *.o ../sources/*.o
../adapters/*.o
cclean: clean
cclean: clean
- rm -f $(LIB) $(TEST)
+ rm -f $(LIB) $(TEST
S
)
.PHONY: all clean cclean
.PHONY: all clean cclean