-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (19 loc) · 746 Bytes
/
Makefile
File metadata and controls
24 lines (19 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
CFLAGS += -O3 -g -ggdb -Isrc/include -DNDEBUG
CXXFLAGS += -O3 -g -ggdb -Isrc/include -DNDEBUG
LIBS += -lrt -lpthread
LIBRARY_FILES=$(wildcard src/include/*)
all: \
build/benchmark/fork_bandwidth\
build/benchmark/fork_latency\
build/benchmark/thread_bandwidth\
build/benchmark/thread_bandwidth_cpp\
build/benchmark/fork_named_bandwidth
build/%: src/%.c $(LIBRARY_FILES) Makefile
mkdir -p $(dir $@)
$(CC) $(CFLAGS) $< -o $@ $(LIBS)
build/benchmark/%: src/benchmark/%.c $(LIBRARY_FILES) Makefile $(wildcard src/benchmark/*.h)
mkdir -p $(dir $@)
$(CC) $(CFLAGS) $< -o $@ $(LIBS)
build/benchmark/%: src/benchmark/%.cpp $(LIBRARY_FILES) Makefile $(wildcard src/benchmark/*.h)
mkdir -p $(dir $@)
$(CXX) $(CXXFLAGS) $< -o $@ $(LIBS)