X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=Makefile;h=0095a316715b325aad45f5ecea2f081d5c92e647;hb=a0b5fd0279684bedd34f240174907cbe02d53517;hp=9e432cc76e46ba79817de7a86cf0330f8d992b33;hpb=b9b62a7f36155c48b9b11b7789cdefec4a1c21da;p=spectrwm.git diff --git a/Makefile b/Makefile index 9e432cc..0095a31 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,47 @@ -# $scrotwm$ .include +PREFIX?=/usr/local + +BINDIR=${PREFIX}/bin SUBDIR= lib -PROG=scrotwm -MAN=scrotwm.1 +PROG=spectrwm +#MAN=spectrwm_pt.1 spectrwm_ru.1 spectrwm_es.1 spectrwm_it.1 +MAN=spectrwm.1 -CFLAGS+=-std=c89 -Wall -Wno-uninitialized -ggdb3 +CFLAGS+=-std=gnu89 -Wall -Wno-uninitialized -g +# 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 +LDADD+=-lutil -L${X11BASE}/lib -lX11-xcb -lxcb-aux -lxcb-icccm -lxcb-keysyms -lxcb-randr -lxcb-xtest -lXtst +BUILDVERSION != sh "${.CURDIR}/buildver.sh" +.if !${BUILDVERSION} == "" +CPPFLAGS+= -DSPECTRWM_BUILDSTR=\"$(BUILDVERSION)\" +.endif + +MANDIR= ${PREFIX}/man/man -MANDIR= ${X11BASE}/man/cat +#spectrwm_ru.cat1: spectrwm_ru.1 +# nroff -mandoc ${.CURDIR}/spectrwm_ru.1 > ${.TARGET} obj: _xenocara_obj +beforeinstall: + ln -sf ${BINDIR}/${PROG} ${BINDIR}/scrotwm + +# 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