aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-10-14 13:30:16 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-10-14 13:30:16 +0200
commit072173228aaab17be2a2600d4ad93052d1b609e1 (patch)
treef193cb093013d7e00fa27ff9338cd03289b5d40c /Makefile
parenttor 5 okt 2023 16:37:35 CEST (diff)
downloadwiki-public-072173228aaab17be2a2600d4ad93052d1b609e1.tar.gz
wiki-public-072173228aaab17be2a2600d4ad93052d1b609e1.tar.xz
lör 14 okt 2023 13:30:16 CEST
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9d93ccd..436ab9b 100644
--- a/Makefile
+++ b/Makefile
@@ -6,13 +6,14 @@ CFLAGS = -Wall -pedantic -std=c2x -ggdb \
-D_DEFAULT_SOURCE \
-D_BSD_SORUCE \
-pthread \
- -I/usr/local/include
-#### -fsanitize=thread \
+ -I/usr/local/include \
+ -fsanitize=thread
#### -fsanitize=undefined
LDFLAGS = -pthread -L/usr/local/lib
LDLIBS = -lpthread
-wiki: wiki.c
+main: wiki.c
+ $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LDLIBS)
check:
cppcheck --enable=all --suppress=missingIncludeSystem wiki.c