triangle_reflection_complex/Makefile

35 lines
1.1 KiB
Makefile
Raw Normal View History

2020-08-02 22:48:33 +00:00
HEADERS=linalg.h mat.h coxeter.h
#SPECIAL_OPTIONS=-O0 -g -D_DEBUG
2020-08-02 22:48:33 +00:00
#SPECIAL_OPTIONS=-O3 -pg -funroll-loops -fno-inline
SPECIAL_OPTIONS=-O3 -flto -funroll-loops -Winline
#SPECIAL_OPTIONS=
OPTIONS=-m64 -march=native -mtune=native -std=gnu99 -D_GNU_SOURCE $(SPECIAL_OPTIONS)
2021-04-01 03:45:25 +00:00
all: singular_values special_element
2020-08-02 22:48:33 +00:00
singular_values: singular_values.o coxeter.o linalg.o mat.o
gcc $(OPTIONS) -o singular_values coxeter.o linalg.o singular_values.o mat.o -lm -lgsl -lcblas -lgmp -lmps -lpthread
2021-04-01 03:45:25 +00:00
special_element: special_element.o coxeter.o linalg.o mat.o
gcc $(OPTIONS) -o special_element coxeter.o linalg.o special_element.o mat.o -lm -lgsl -lcblas -lgmp -lmps -lpthread
singular_values.o: singular_values.c $(HEADERS)
gcc $(OPTIONS) -c singular_values.c
2021-04-01 03:45:25 +00:00
special_element.o: special_element.c $(HEADERS)
gcc $(OPTIONS) -c special_element.c
linalg.o: linalg.c $(HEADERS)
gcc $(OPTIONS) -c linalg.c
2020-08-02 22:48:33 +00:00
coxeter.o: coxeter.c $(HEADERS)
gcc $(OPTIONS) -c coxeter.c
mat.o: mat.c $(HEADERS)
gcc $(OPTIONS) -c mat.c
clean:
2021-04-01 03:45:25 +00:00
rm -f singular_values special_element coxeter.o linalg.o singular_values.o mat.o special_element.o