18 lines
311 B
Makefile
18 lines
311 B
Makefile
CC = clang
|
|
TIDY = clang-tidy
|
|
CFLAGS = -std=c11 -Wall -Wextra
|
|
LDLIBS = -lm
|
|
|
|
all:
|
|
$(CC) $(CFLAGS) main.c $(LDLIBS) -o main
|
|
|
|
tidy:
|
|
$(TIDY) --header-filter='.*' --warnings-as-errors='*' --quiet *.h *.c -- $(CFLAGS)
|
|
|
|
format:
|
|
clang-format -i -style=file *.h *.c
|
|
|
|
clean:
|
|
rm -f main *.o
|
|
|
|
.PHONY: tidy format clean
|