Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Willemt Raft
Commits
f0a22790
Commit
f0a22790
authored
Nov 22, 2017
by
Willem Thiart
Browse files
Add make infer
parent
a7a8291e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
f0a22790
...
...
@@ -18,6 +18,7 @@ SHAREDFLAGS = -dynamiclib
SHAREDEXT
=
dylib
# We need to include the El Capitan specific /usr/includes, aargh
CFLAGS
+=
-I
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/
CFLAGS
+=
-I
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include
CFLAGS
+=
-fsanitize
=
address
else
SHAREDFLAGS
=
-shared
...
...
@@ -60,6 +61,14 @@ tests: src/raft_server.c src/raft_server_properties.c src/raft_log.c src/raft_no
amalgamation
:
./scripts/amalgamate.sh
>
raft.h
.PHONY
:
infer
infer
:
do_infer
.PHONY
:
do_infer
do_infer
:
make clean
infer
--
make static
clean
:
@
rm
-f
$(TEST_DIR)
/main_test.c
*
.o
$(GCOV_OUTPUT)
;
\
if
[
-f
"libraft.
$(SHAREDEXT)
"
]
;
then
rm
libraft.
$(SHAREDEXT)
;
fi
;
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment