28 lines
607 B
Makefile
28 lines
607 B
Makefile
MAKEFLAGS += --no-print-directory
|
|
|
|
## Formatter
|
|
STYLE_BLUEPRINT=webkit
|
|
FORMATTER=clang-format -i -style=$(STYLE_BLUEPRINT)
|
|
|
|
build-examples:
|
|
cd examples/core && make all
|
|
cd examples/more && make all
|
|
|
|
format-examples:
|
|
cd examples/core && make format-all
|
|
cd examples/more && make format-all
|
|
|
|
format: squiggle.c squiggle.h
|
|
$(FORMATTER) squiggle.c squiggle.h
|
|
$(FORMATTER) squiggle_more.c squiggle_more.h
|
|
|
|
lint:
|
|
clang-tidy squiggle.c -- -lm
|
|
clang-tidy squiggle_more.c -- -lm
|
|
|
|
profile:
|
|
OMP_NUM_THREADS=16 sudo perf record ./examples/more/12_time_to_botec_parallel/example
|
|
sudo perf report
|
|
rm perf.data
|
|
|