-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (35 loc) · 1.32 KB
/
Makefile
File metadata and controls
41 lines (35 loc) · 1.32 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
CPPSources := $(wildcard *.cpp)
Objects := $(patsubst %.cpp,%.o,$(CPPSources))
fused-linear-chase-objects := fused-linear-chase.o \
chase-pointers.o linear-chain.o
linear-chase-objects := linear-chase.o \
chase-pointers.o linear-chain.o
random-chase-objects := random-chase.o \
chase-pointers.o
CXX := g++
CPPFLAGS := -std=gnu++11 -Ifmt
CXXFLAGS := -g -O2
Targets := fused-linear-chase linear-chase random-chase
.PHONY: all clean realclean depend
all: $(Objects) $(Targets)
clean: ; rm -f $(Objects)
realclean: clean
rm -f $(Targets)
depend: $(CPPSources)
perl gcc-makedepend/gcc-makedepend.pl $(CPPFLAGS) $(CPPSources)
fused-linear-chase: $(fused-linear-chase-objects)
$(CXX) $(LDFLAGS) -o $@ $(fused-linear-chase-objects)
linear-chase: $(linear-chase-objects)
$(CXX) $(LDFLAGS) -o $@ $(linear-chase-objects)
random-chase: $(random-chase-objects)
$(CXX) $(LDFLAGS) -o $@ $(random-chase-objects)
# DO NOT DELETE
random-chase.o: random-chase.cpp fmt/printf.hpp chase-pointers.hpp \
uniform-int-distribution.hpp
chase-pointers.o: chase-pointers.cpp fmt/printf.hpp chase-pointers.hpp \
walltime.hpp
fused-linear-chase.o: fused-linear-chase.cpp fmt/printf.hpp \
linear-chain.hpp walltime.hpp
linear-chase.o: linear-chase.cpp fmt/printf.hpp chase-pointers.hpp \
linear-chain.hpp
linear-chain.o: linear-chain.cpp linear-chain.hpp