-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
33 lines (22 loc) · 939 Bytes
/
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
# Use g++ or clang++
# GCC seems to generate a faster solver by a small constant factor.
CC=g++
all: main
main: solver.o table.o line.o deduction.o line-solver.o line-solver-dynamic.o line-solver-fast.o
$(CC) -O3 -fopenmp solver.o table.o line.o deduction.o line-solver.o line-solver-dynamic.o line-solver-fast.o `libpng-config --ldflags --libs` -o solver
solver.o: solver.cc
$(CC) -O3 -fopenmp -c solver.cc
table.o: table.cc
$(CC) -O3 -fopenmp -c -w -fpermissive `libpng-config --ldflags --libs` table.cc
line.o: line.cc
$(CC) -O3 -fopenmp -c line.cc
deduction.o: deduction.cc
$(CC) -O3 -fopenmp -c deduction.cc
line-solver.o: line-solver.cc
$(CC) -O3 -fopenmp -c line-solver.cc
line-solver-dynamic.o: line-solver-dynamic.cc
$(CC) -O3 -fopenmp -c line-solver-dynamic.cc
line-solver-fast.o: line-solver-fast.cc
$(CC) -O3 -fopenmp -c line-solver-fast.cc
clean:
rm *o solver