-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
38 lines (30 loc) · 1.07 KB
/
Makefile
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
# the compiler: gcc for C program, g++ for C++ program
CXX = g++
GIT_VERSION := "$(shell git describe --abbrev=0 --tags)"
# compiler flags:
# -g adds debugging information to the executable file
# -Wall turns on most, but not all, compiler warnings
# -Wextra enables some extra warning flags that are not enabled by -Wall
CXX_FLAGS = --std=c++17 -g -Wall -Wextra -O3 -DVERSION=\"$(GIT_VERSION)\"
OPENMP = -fopenmp
# All output target executables
TARGETS = sudoku_main
# All object files
OBJECTS = *.o *.out
DEPENDENCIES = \
./src/SudokuBoard.cpp \
./src/SudokuBoardDeque.cpp \
./src/SudokuTest.cpp \
./src/SudokuSolver.cpp \
./src/SudokuSolver_SequentialBacktracking.cpp \
./src/SudokuSolver_SequentialBruteForce.cpp \
./src/SudokuSolver_ParallelBruteForce.cpp \
./src/Node.cpp \
./src/SudokuSolver_SequentialDLX.cpp \
./src/SudokuSolver_ParallelDLX.cpp \
./src/SudokuSolver_SequentialForwardChecking.cpp
all: $(TARGETS)
sudoku_main: sudoku_main.cpp $(DEPENDENCIES)
$(CXX) $(CXX_FLAGS) $(OPENMP) -I ./inc -o $@ $^
clean:
rm -f $(TARGETS) $(OBJECTS) solution.txt