-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathmakefile
More file actions
63 lines (48 loc) · 1.69 KB
/
makefile
File metadata and controls
63 lines (48 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
CC = g++
EXE = SimplexTest TestCommonTest SMapTest CCMTest MultiviewTest DateTimeTest CETest
OBJ = $(EXE:=.o) TestCommon.o
CFLAGS = -D PRINT_DIFFERENCE_IN_RESULTS
CFLAGS += -g
LFLAGS = -lstdc++ -L../lib/ -I../src/ -lEDM -lpthread -llapack
all: $(EXE)
# Need to figure out how to build TestCommon.o automatically
SimplexTest: SimplexTest.cc
$(CC) TestCommon.cc -c $(CFLAGS) $(LFLAGS)
$(CC) $@.cc -o $@ $(CFLAGS) $(LFLAGS) TestCommon.o
DateTimeTest: DateTimeTest.cc ../src/DateTime.cc
$(CC) DateTimeTest.cc -c $(CFLAGS) $(LFLAGS)
$(CC) $@.cc -o $@ $(CFLAGS) $(LFLAGS) TestCommon.o
CCMTest: CCMTest.cc
$(CC) TestCommon.cc -c $(CFLAGS) $(LFLAGS)
$(CC) $@.cc -o $@ $(CFLAGS) $(LFLAGS) TestCommon.o
TestCommonTest: TestCommonTest.cc
$(CC) $@.cc -o $@ $(CFLAGS) $(LFLAGS) TestCommon.o
SMapTest: SMapTest.cc
$(CC) TestCommon.cc -c $(CFLAGS) $(LFLAGS)
$(CC) $@.cc -o $@ $(CFLAGS) $(LFLAGS) TestCommon.o
MultiviewTest: MultiviewTest.cc
$(CC) TestCommon.cc -c $(CFLAGS) $(LFLAGS)
$(CC) $@.cc -o $@ $(CFLAGS) $(LFLAGS) TestCommon.o
CETest: CETest.cc
$(CC) TestCommon.cc -c $(CFLAGS) $(LFLAGS)
$(CC) $@.cc -o $@ $(CFLAGS) $(LFLAGS) TestCommon.o
clean:
rm -f TestCommon.o $(OBJ) $(EXE)
distclean:
rm -f TestCommon.o $(OBJ) $(EXE) *~ *.bak
rm -f *.csv ./data/*_cppEDM.csv
rm -f ./data/Smap_circle_coef.csv ./data/Smap_circle_SV.csv
rm -f ./data/Smap_nan_circle_*.csv
rm -f ./data/CELib_Smap_circle_coef.csv
SRCS = `echo ${OBJ} | sed -e 's/.o /.cc /g'`
depend:
@echo ${SRCS}
makedepend -Y $(SRCS)
# DO NOT DELETE
SimplexTest.o: TestCommon.h
TestCommonTest.o: TestCommon.h
SMapTest.o: TestCommon.h
CCMTest.o: TestCommon.h
MultiviewTest.o: TestCommon.h
DateTimeTest.o: TestCommon.h
CETest.o: TestCommon.h