17 lines
285 B
Makefile
17 lines
285 B
Makefile
|
CC = clang
|
||
|
TIDY = clang-tidy
|
||
|
CFLAGS = -std=c11 -Wall -Wextra
|
||
|
LDLIBS = -lm
|
||
|
|
||
|
build:
|
||
|
$(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
|