2023-12-21 18:17:20 +00:00
|
|
|
CC=gcc
|
2023-12-29 23:24:15 +00:00
|
|
|
CFLAGS=-O0 -g3 -ggdb -std=c89 -W -Werror -Wall -Wextra -Wpedantic -pedantic-errors -Wformat-signedness -I.
|
2024-01-03 16:02:42 +00:00
|
|
|
CFLAGS+=-Wlogical-op -Wmissing-declarations -Wswitch-default -Wundef -Wformat=2 -lasan -lm
|
2023-12-30 13:10:40 +00:00
|
|
|
CFLAGS+=-fsanitize=pointer-overflow,undefined,shift,shift-exponent,shift-base,integer-divide-by-zero,null,signed-integer-overflow,bounds
|
2023-12-29 23:24:15 +00:00
|
|
|
CFILES=$(wildcard *.c)
|
2024-01-03 16:02:42 +00:00
|
|
|
BINFILE=lis3dh
|
|
|
|
|
2023-12-21 18:17:20 +00:00
|
|
|
all:
|
2024-01-03 16:02:42 +00:00
|
|
|
$(CC) $(CFLAGS) $(CFILES) -o $(BINFILE)
|
2023-12-21 20:52:17 +00:00
|
|
|
|
|
|
|
clean:
|
2024-01-03 16:02:42 +00:00
|
|
|
rm -rf $(BINFILE)
|