-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
40 lines (28 loc) · 897 Bytes
/
Copy pathmakefile
File metadata and controls
40 lines (28 loc) · 897 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# AMP
# @author Daniel Zainzinger
# @matrikelnummer 11777778
# @date 30.04.2020
CXX=g++
CFLAGS= -Wall -fopenmp -c -O3 -MMD -std=c++17
LDFLAGS= -fopenmp
SOURCES=main.cpp node.cpp benchmark.cpp Coarse_Grained.cpp Fine_Grained.cpp Optimistic.cpp Optimistic_mem.cpp Lazy.cpp Lazy_mem.cpp Lock_free.cpp Lock_free_impr.cpp Lock_free_impr_mem.cpp
BUILD_DIR = ./.build
OBJECTS=$(SOURCES:%.cpp=$(BUILD_DIR)/%.o)
DEP = $(OBJECTS:%.o=%.d)
EXECUTABLE=main
all: $(EXECUTABLE)
.PHONY: clean
$(EXECUTABLE): $(OBJECTS) #linker
$(CXX) $(LDFLAGS) $(OBJECTS) -o $@
# Include all .d files
-include $(DEP)
# The -MMD flags additionaly creates a .d file with
# the same name as the .o file.
$(BUILD_DIR)/%.o : %.cpp
mkdir -p $(@D)
$(CXX) $(CFLAGS) $< -o $@
clean:
rm -rf $(OBJECTS) $(DEP) $(EXECUTABLE) $(BUILD_DIR)
testFiles:
cd testcases && rm -f *.csv
cd testcases && python3 permutations.py