triangle_group_limit_set/Makefile

37 lines
1.1 KiB
Makefile
Raw Permalink Normal View History

2019-02-03 12:18:14 +00:00
HEADERS=triangle.h linalg.h queue.h initcairo.h main.h
2018-08-08 14:24:03 +00:00
2019-02-03 12:18:14 +00:00
SPECIAL_OPTIONS=-O0 -g -D_DEBUG
2018-08-08 14:24:03 +00:00
#SPECIAL_OPTIONS=-O3 -pg -funroll-loops -fno-inline
2019-02-03 12:18:14 +00:00
#SPECIAL_OPTIONS=-O3 -flto -funroll-loops -Winline -Wall -Wno-unused-function -Werror=implicit-function-declaration
2018-08-08 14:24:03 +00:00
#SPECIAL_OPTIONS=
CAIRO_OPTIONS=$(shell pkg-config --cflags cairo)
GENERAL_OPTIONS=-m64 -march=native -mtune=native -std=gnu99 -D_GNU_SOURCE
OPTIONS=$(GENERAL_OPTIONS) $(CAIRO_OPTIONS) $(SPECIAL_OPTIONS)
all: limit_set
2019-02-03 12:18:14 +00:00
limit_set: limit_set.o linalg.o triangle.o initcairo.o draw.o main.o
gcc $(OPTIONS) -o limit_set limit_set.o linalg.o triangle.o initcairo.o draw.o main.o -lm -lgsl -lcblas -lcairo -lX11
2018-08-08 14:24:03 +00:00
linalg.o: linalg.c $(HEADERS)
gcc $(OPTIONS) -c linalg.c
triangle.o: triangle.c $(HEADERS)
gcc $(OPTIONS) -c triangle.c
limit_set.o: limit_set.c $(HEADERS)
gcc $(OPTIONS) -c limit_set.c
initcairo.o: initcairo.c $(HEADERS)
gcc $(OPTIONS) -c initcairo.c
2019-02-03 12:18:14 +00:00
draw.o: draw.c $(HEADERS)
gcc $(OPTIONS) -c draw.c
main.o: main.c $(HEADERS)
gcc $(OPTIONS) -c main.c
2018-08-08 14:24:03 +00:00
clean:
2019-02-03 12:18:14 +00:00
rm -f limit_set linalg.o triangle.o limit_set.o draw.o main.o