X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=Makefile;h=048eb327c9e3939a81331bde5fe25d13dac41184;hb=e468d771f657f081722efc8e7b54dacd923867c2;hp=c9c82fc19c45bfd3ee34e1de5b83e0c02583e4f4;hpb=a74952e12f9a8f483f5781e951d4210b2206ee1e;p=spectrwm.git diff --git a/Makefile b/Makefile index c9c82fc..048eb32 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,44 @@ -# $epitome$ .include -PROG=scrotwm -NOMAN= -#MAN=scrotwm.1 +PREFIX?=/usr/local +BINDIR=${PREFIX}/bin +SUBDIR= lib + +PROG=spectrwm +#MAN=spectrwm_pt.1 spectrwm_ru.1 +MAN=spectrwm.1 spectrwm_es.1 spectrwm_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+=-L${X11BASE}/lib -lX11 +LDADD+=-lutil -L${X11BASE}/lib -lX11 -lXrandr -lXtst +BUILDVERSION != sh "${.CURDIR}/buildver.sh" +.if !${BUILDVERSION} == "" +CPPFLAGS+= -DSPECTRWM_BUILDSTR=\"$(BUILDVERSION)\" +.endif -MANDIR= ${X11BASE}/man/cat +MANDIR= ${PREFIX}/man/man + +#spectrwm_ru.cat1: spectrwm_ru.1 +# nroff -mandoc ${.CURDIR}/spectrwm_ru.1 > ${.TARGET} 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