meri/GNUmakefile
2025-11-10 21:37:50 +02:00

19 lines
377 B
Makefile

CFLAGS=-Wall -Wextra -pedantic -Wno-type-limits -Wno-tautological-constant-out-of-range-compare -std=c99 -fsanitize=undefined -fsanitize=address
LDFLAGS=-fsanitize=undefined -fsanitize=address
all: tests
.PHONY: all
O=o
include Makefile.common
tests: $(TEST_OBJS)
$(CC) $(LDFLAGS) -o $@ $(TEST_OBJS)
clean:
rm tests *.o
.PHONY: clean
check: tests
./tests
.PHONY: check