Refresh package, suppress what we won't do right now. Focus on doc + debug
[valse.git] / test / Makefile
CommitLineData
3453829e
BA
1CC = gcc
2CFLAGS = -g -std=gnu99 -Wno-implicit-function-declaration
3LDFLAGS = -lm -lgsl -lcblas
4TEST_LDFLAGS = -L. libvalse_core.so
5LIB = libvalse_core.so
6LIB_SRC = $(wildcard ../pkg/src/sources/*.c)
7LIB_OBJ = $(LIB_SRC:.c=.o)
8INCLUDES = -I../pkg/src/sources
9TESTS = test.EMGLLF test.EMGrank
10
11all: $(LIB) $(TESTS)
12
13$(LIB): $(LIB_OBJ)
14 $(CC) -shared -o $@ $^ $(LDFLAGS)
15
16test.EMGLLF: $(LIB) test.EMGLLF.o test_utils.o
17 $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS)
18
19test.EMGrank: $(LIB) test.EMGrank.o test_utils.o
20 $(CC) -o $@ $^ $(LDFLAGS) $(TEST_LDFLAGS)
21
22%.o: %.c
23 $(CC) -fPIC -o $@ -c $< $(CFLAGS) $(INCLUDES)
24
25clean:
26 rm -f *.o ../pkg/src/sources/*.o
27
28cclean: clean
29 rm -f *.so ../pkg/src/*.so $(TESTS)
30
31.PHONY: all clean cclean