-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
74 lines (53 loc) · 2.06 KB
/
Copy pathMakefile
File metadata and controls
74 lines (53 loc) · 2.06 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
64
65
66
67
68
69
70
71
72
73
CXX = g++
CXXFLAGS := -O3
ifeq ($(USE_SSE),1)
CXXFLAGS := $(CXXFLAGS) -msse2
endif
FLAGS_TO_PASS = \
"CXX = $(CXX)" \
"CXXFLAGS = $(CXXFLAGS)"
OBJECTS = convolution.o kernels.o DataManager.o LongFloat.o ErrorEstimate.o \
RealEstimate.o RealFuncs.o RealObject.o Real.o MachineEstimate.o
all: Real.a makeexamples makemanual
Real.a: $(OBJECTS)
ar -rvs Real.a $(OBJECTS)
MachineEstimate.h: MachineEstimateMul.h MachineEstimateSSE2.h
if test "$(USE_SSE)" = "1"; then MACHEST=MachineEstimateSSE2; \
else MACHEST=MachineEstimateMul; \
fi; \
cp $$MACHEST.h MachineEstimate.h
MachineEstimate.cpp: MachineEstimate.h MachineEstimateMul.cpp \
MachineEstimateSSE2.cpp
if test "$(USE_SSE)" = "1"; then MACHEST=MachineEstimateSSE2; \
else MACHEST=MachineEstimateMul; \
fi; \
cp $$MACHEST.cpp MachineEstimate.cpp
makeexamples:
cd examples; $(MAKE) $(FLAGS_TO_PASS)
makemanual:
cd manual; $(MAKE) $(FLAGS_TO_PASS)
clean:
cd examples; $(MAKE) clean
cd manual; $(MAKE) clean
rm -f *.o *.a
rm MachineEstimate.cpp
rm MachineEstimate.h
convolution.o: convolution.cpp defs.h GCChelper.h convolution.h
kernels.o: kernels.cpp kernels.h defs.h GCChelper.h convolution.h
DataManager.o: DataManager.cpp DataManager.h defs.h GCChelper.h
ErrorEstimate.o: ErrorEstimate.cpp defs.h GCChelper.h ErrorEstimate.h \
LongFloat.h
LongFloat.o: LongFloat.cpp LongFloat.h defs.h GCChelper.h DataManager.h \
kernels.h
RealEstimate.o: RealEstimate.cpp defs.h GCChelper.h RealEstimate.h \
LongFloat.h ErrorEstimate.h DataManager.h
RealFuncs.o: RealFuncs.cpp MachineEstimate.h defs.h GCChelper.h \
RealEstimate.h LongFloat.h ErrorEstimate.h RealFuncs.h
MachineEstimate.o: MachineEstimate.cpp MachineEstimate.h defs.h \
GCChelper.h RealEstimate.h LongFloat.h ErrorEstimate.h
RealObject.o: RealObject.cpp defs.h GCChelper.h RealObject.h \
RealEncapsulation.h LongFloat.h RealEstimate.h ErrorEstimate.h \
MachineEstimate.h RealFuncs.h
Real.o: Real.cpp defs.h GCChelper.h Real.h RealEncapsulation.h \
LongFloat.h RealEstimate.h ErrorEstimate.h MachineEstimate.h \
RealFuncs.h RealObject.h