aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 436ab9b0b7b9df195bbf47202c4c2a78aab8bccf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.PHONY: check

CFLAGS = -Wall -pedantic -std=c2x -ggdb \
		 -D_POSIX_C_SOURCE=200809L \
		 -D_XOPEN_SOURCE=700 \
		 -D_DEFAULT_SOURCE \
		 -D_BSD_SORUCE \
		 -pthread \
		 -I/usr/local/include \
    	 -fsanitize=thread
####	 -fsanitize=undefined
LDFLAGS = -pthread -L/usr/local/lib
LDLIBS = -lpthread

main: wiki.c
	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LDLIBS)

check:
	cppcheck --enable=all --suppress=missingIncludeSystem wiki.c