19 lines
329 B
Makefile
19 lines
329 B
Makefile
CFLAGS=-Wall -Wextra -pedantic -Wno-type-limits -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
|