triangle_reflection_complex/Makefile
Florian Stecker ec34567ace Makefile fix
2022-06-15 15:27:08 +02:00

37 lines
1.1 KiB
Makefile

HEADERS=mat.h coxeter.h enumerate.h generators.h qext.h
#SPECIAL_OPTIONS=-O0 -g -D_DEBUG -DQEXT
#SPECIAL_OPTIONS=-O3 -pg -g -funroll-loops -fno-inline
SPECIAL_OPTIONS=-O3 -flto -funroll-loops -Winline -DQEXT
#SPECIAL_OPTIONS=-O3 -flto -funroll-loops -Winline -mavx512f -mavx512cd -mavx512er -mavx512pf # KNL
#SPECIAL_OPTIONS=
OPTIONS=-I../mps/include -L../mps/lib -pthread -m64 -std=gnu99 -D_GNU_SOURCE $(SPECIAL_OPTIONS)
CC=gcc
all: complex_anosov
complex_anosov: complex_anosov.o mat.o coxeter.o enumerate.o generators.o qext.o
$(CC) $(OPTIONS) -o complex_anosov complex_anosov.o mat.o coxeter.o enumerate.o generators.o qext.o -lgmp -lmps -lm
complex_anosov.o: complex_anosov.c $(HEADERS)
gcc $(OPTIONS) -c complex_anosov.c
enumerate.o: enumerate.c $(HEADERS)
gcc $(OPTIONS) -c enumerate.c
generators.o: generators.c $(HEADERS)
gcc $(OPTIONS) -c generators.c
coxeter.o: coxeter.c $(HEADERS)
gcc $(OPTIONS) -c coxeter.c
mat.o: mat.c $(HEADERS)
gcc $(OPTIONS) -c mat.c
qext.o: qext.c $(HEADERS)
gcc $(OPTIONS) -c qext.c
clean:
rm -f complex_anosov complex_anosov.o mat.o coxeter.o enumerate.o generators.o qext.o