summaryrefslogtreecommitdiff
path: root/Makefile
blob: f18cd3594a0907c4fc13f71d7c18cdb579f37231 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CC = clang
CFLAGS = -Wall -Wextra -std=c99 -fsanitize=address -g -O0
TARGET = tests

all: $(TARGET)

$(TARGET): tests.c nonstd.h minunit.h
	$(CC) $(CFLAGS) -o $(TARGET) tests.c

test: $(TARGET)
	./$(TARGET)

clean:
	rm -f $(TARGET)

format:
	clang-format -i nonstd.h tests.c examples/*.c

.PHONY: all test clean format