2022-06-13 10:05:34 +00:00
|
|
|
HEADERS=mat.h coxeter.h enumerate.h generators.h qext.h
|
2020-07-01 14:59:16 +00:00
|
|
|
|
2022-06-14 13:41:43 +00:00
|
|
|
#SPECIAL_OPTIONS=-O0 -g -D_DEBUG -DQEXT
|
2022-02-15 01:34:06 +00:00
|
|
|
#SPECIAL_OPTIONS=-O3 -pg -g -funroll-loops -fno-inline
|
2022-06-14 13:41:43 +00:00
|
|
|
SPECIAL_OPTIONS=-O3 -flto -funroll-loops -Winline -DQEXT
|
2021-10-01 18:36:56 +00:00
|
|
|
#SPECIAL_OPTIONS=-O3 -flto -funroll-loops -Winline -mavx512f -mavx512cd -mavx512er -mavx512pf # KNL
|
2020-07-01 14:59:16 +00:00
|
|
|
#SPECIAL_OPTIONS=
|
|
|
|
|
2021-10-01 18:36:56 +00:00
|
|
|
OPTIONS=-I../mps/include -L../mps/lib -pthread -m64 -std=gnu99 -D_GNU_SOURCE $(SPECIAL_OPTIONS)
|
2022-06-13 10:05:34 +00:00
|
|
|
CC=gcc
|
2020-07-01 14:59:16 +00:00
|
|
|
|
2022-06-13 10:05:34 +00:00
|
|
|
all: complex_anosov
|
2020-07-01 14:59:16 +00:00
|
|
|
|
2022-06-13 10:05:34 +00:00
|
|
|
complex_anosov: complex_anosov.o mat.o coxeter.o enumerate.o generators.o qext.o
|
|
|
|
$(CC) $(OPTIONS) -o complex_anosov -lm complex_anosov.o mat.o coxeter.o enumerate.o generators.o qext.o -lgmp -lmps
|
2021-10-01 18:36:56 +00:00
|
|
|
|
2022-06-13 10:05:34 +00:00
|
|
|
complex_anosov.o: complex_anosov.c $(HEADERS)
|
|
|
|
gcc $(OPTIONS) -c complex_anosov.c
|
2021-10-04 00:18:10 +00:00
|
|
|
|
2022-06-13 10:05:34 +00:00
|
|
|
enumerate.o: enumerate.c $(HEADERS)
|
|
|
|
gcc $(OPTIONS) -c enumerate.c
|
2021-10-23 17:09:40 +00:00
|
|
|
|
2022-06-13 10:05:34 +00:00
|
|
|
generators.o: generators.c $(HEADERS)
|
|
|
|
gcc $(OPTIONS) -c generators.c
|
2020-07-01 14:59:16 +00:00
|
|
|
|
2020-08-02 22:48:33 +00:00
|
|
|
coxeter.o: coxeter.c $(HEADERS)
|
|
|
|
gcc $(OPTIONS) -c coxeter.c
|
2020-07-01 14:59:16 +00:00
|
|
|
|
2020-07-02 02:26:42 +00:00
|
|
|
mat.o: mat.c $(HEADERS)
|
|
|
|
gcc $(OPTIONS) -c mat.c
|
|
|
|
|
2022-04-25 19:09:45 +00:00
|
|
|
qext.o: qext.c $(HEADERS)
|
|
|
|
gcc $(OPTIONS) -c qext.c
|
|
|
|
|
2020-07-01 14:59:16 +00:00
|
|
|
clean:
|
2022-06-13 10:05:34 +00:00
|
|
|
rm -f complex_anosov complex_anosov.o mat.o coxeter.o enumerate.o generators.o qext.o
|