2017-12-05 22:06:18 +00:00
|
|
|
HEADERS=triangle.h linalg.h queue.h
|
|
|
|
|
2020-02-13 22:12:29 +00:00
|
|
|
#SPECIAL_OPTIONS=-O0 -g -D_DEBUG
|
2017-12-05 22:06:18 +00:00
|
|
|
#SPECIAL_OPTIONS=-O3 -pg -funroll-loops -fno-inline
|
2020-02-13 22:12:29 +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)
|
|
|
|
|
2022-06-12 10:44:34 +00:00
|
|
|
all: hyperbolic
|
2018-03-02 16:52:48 +00:00
|
|
|
|
2018-05-26 07:19:03 +00:00
|
|
|
hyperbolic: hyperbolic.o triangle.o linalg.o
|
|
|
|
gcc $(OPTIONS) -o hyperbolic hyperbolic.o triangle.o linalg.o -lm -lgsl -lcblas
|
|
|
|
|
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-05-26 07:19:03 +00:00
|
|
|
hyperbolic.o: hyperbolic.c $(HEADERS)
|
|
|
|
gcc $(OPTIONS) -c hyperbolic.c
|
|
|
|
|
2017-12-05 22:06:18 +00:00
|
|
|
clean:
|
2022-06-12 10:44:34 +00:00
|
|
|
rm -f hyperbolic triangle.o linalg.o hyperbolic.o
|