Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fancy clang stuff
[spectrwm.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
9e2e5f1
..
af73051
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-23,5
+23,19
@@
MANDIR= ${PREFIX}/man/man
obj: _xenocara_obj
obj: _xenocara_obj
+# clang targets
+.if ${.TARGETS:M*analyze*}
+CC=clang
+CXX=clang++
+CPP=clang -E
+CFLAGS+=--analyze
+.elif ${.TARGETS:M*clang*}
+CC=clang
+CXX=clang++
+CPP=clang -E
+.endif
+
+analyze: all
+clang: all
.include <bsd.prog.mk>
.include <bsd.xorg.mk>
.include <bsd.prog.mk>
.include <bsd.xorg.mk>