lis3dh/Makefile

12 lines
447 B
Makefile
Raw Normal View History

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.
2023-12-30 13:10:40 +00:00
CFLAGS+=-Wlogical-op -Wmissing-declarations -Wswitch-default -Wundef -Wformat=2 -lasan
CFLAGS+=-fsanitize=pointer-overflow,undefined,shift,shift-exponent,shift-base,integer-divide-by-zero,null,signed-integer-overflow,bounds
2023-12-23 10:28:43 +00:00
LFLAGS=-lm
2023-12-29 23:24:15 +00:00
CFILES=$(wildcard *.c)
2023-12-21 18:17:20 +00:00
all:
2023-12-28 18:10:34 +00:00
$(CC) $(CFLAGS) $(CFILES) -o lis3dh $(LFLAGS)
2023-12-21 20:52:17 +00:00
clean:
2023-12-23 10:28:43 +00:00
rm -rf lis3dh