2017-12-05 22:06:18 +00:00
|
|
|
HEADERS=triangle.h linalg.h queue.h
|
|
|
|
|
2018-01-19 11:25:01 +00:00
|
|
|
SPECIAL_OPTIONS=-O0 -g -D_DEBUG
|
2017-12-05 22:06:18 +00:00
|
|
|
#SPECIAL_OPTIONS=-O3 -pg -funroll-loops -fno-inline
|
2018-01-19 11:25:01 +00:00
|
|
|
#SPECIAL_OPTIONS=-O3 -flto -funroll-loops -Winline
|
2017-12-05 22:06:18 +00:00
|
|
|
#SPECIAL_OPTIONS=
|
|
|
|
|
|
|
|
OPTIONS=-m64 -march=native -mtune=native -std=gnu99 -D_GNU_SOURCE $(SPECIAL_OPTIONS)
|
|
|
|
|
2018-03-02 16:52:48 +00:00
|
|
|
all: triangle_group element_path limit_set
|
2017-12-05 22:06:18 +00:00
|
|
|
|
|
|
|
triangle_group: triangle.o linalg.o main.o
|
|
|
|
gcc $(OPTIONS) -o triangle_group triangle.o linalg.o main.o -lm -lgsl -lcblas
|
|
|
|
|
2018-03-02 16:52:48 +00:00
|
|
|
element_path: element_path.o linalg.o
|
|
|
|
gcc $(OPTIONS) -o element_path element_path.o linalg.o -lm -lgsl -lcblas
|
|
|
|
|
|
|
|
limit_set: limit_set.o linalg.o triangle.o
|
|
|
|
gcc $(OPTIONS) -o limit_set limit_set.o linalg.o triangle.o -lm -lgsl -lcblas
|
|
|
|
|
2017-12-05 22:06:18 +00:00
|
|
|
main.o: main.c $(HEADERS)
|
|
|
|
gcc $(OPTIONS) -c main.c
|
|
|
|
|
2018-03-02 16:52:48 +00:00
|
|
|
element_path.o: element_path.c $(HEADERS)
|
|
|
|
gcc $(OPTIONS) -c element_path.c
|
|
|
|
|
2017-12-05 22:06:18 +00:00
|
|
|
linalg.o: linalg.c $(HEADERS)
|
|
|
|
gcc $(OPTIONS) -c linalg.c
|
|
|
|
|
|
|
|
triangle.o: triangle.c $(HEADERS)
|
|
|
|
gcc $(OPTIONS) -c triangle.c
|
|
|
|
|
2018-03-02 16:52:48 +00:00
|
|
|
limit_set.o: limit_set.c $(HEADERS)
|
|
|
|
gcc $(OPTIONS) -c limit_set.c
|
|
|
|
|
2017-12-05 22:06:18 +00:00
|
|
|
clean:
|
2018-03-02 16:52:48 +00:00
|
|
|
rm -f triangle_group element_path limit_set triangle.o linalg.o main.o element_path.o limit_set.o
|