X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=Makefile;h=ad27745ddf227156f69145f1e96a71c6dff8de3a;hb=34e5a4f61d11e1b15127bce2ba82df0871997968;hp=6b3c93f7a1d9997148415cde7d33016315cd7b49;hpb=623ccee72222f16ed35512484589d92232685815;p=spectrwm.git diff --git a/Makefile b/Makefile index 6b3c93f..ad27745 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,3 @@ -# $scrotwm$ .include PREFIX?=/usr/local @@ -7,14 +6,18 @@ BINDIR=${PREFIX}/bin SUBDIR= lib PROG=scrotwm -#MAN=scrotwm.1 scrotwm_es.1 scrotwm_it.1 scrotwm_pt.1 scrotwm_ru.1 -MAN=scrotwm.1 +#MAN=scrotwm_pt.1 scrotwm_ru.1 +MAN=scrotwm.1 scrotwm_es.1 scrotwm_it.1 CFLAGS+=-std=c89 -Wall -Wno-uninitialized -ggdb3 # Uncomment define below to disallow user settable clock format string #CFLAGS+=-DSWM_DENY_CLOCK_FORMAT CPPFLAGS+= -I${X11BASE}/include LDADD+=-lutil -L${X11BASE}/lib -lX11 -lXrandr -lXtst +BUILDVERSION != sh "${.CURDIR}/buildver.sh" +.if !${BUILDVERSION} == "" +CPPFLAGS+= -DSCROTWM_BUILDSTR=\"$(BUILDVERSION)\" +.endif MANDIR= ${PREFIX}/man/man @@ -23,5 +26,19 @@ MANDIR= ${PREFIX}/man/man 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 .include