X-Git-Url: https://code.delx.au/spectrwm/blobdiff_plain/aaee1e4644e54f3b77e4f7745b8127f35d2b7821..1bc0a49dc3a5666d3c9104c09cdfbba5bf141ead:/Makefile diff --git a/Makefile b/Makefile index 4aa16f9..94955eb 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,3 @@ -# $scrotwm$ .include PREFIX?=/usr/local @@ -6,21 +5,28 @@ PREFIX?=/usr/local BINDIR=${PREFIX}/bin SUBDIR= lib -PROG=scrotwm -MAN=scrotwm.1 scrotwm_es.1 scrotwm_it.1 scrotwm_pt.1 scrotwm_ru.1 +PROG=spectrwm +MAN=spectrwm.1 -CFLAGS+=-std=c89 -Wall -Wno-uninitialized -ggdb3 +CFLAGS+=-std=c99 -Wmissing-prototypes -Wall -Wextra -Wshadow -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 +CPPFLAGS+= -I${X11BASE}/include -I${X11BASE}/include/freetype2 +LDADD+=-lutil -L${X11BASE}/lib -lX11 -lX11-xcb -lxcb-util -lxcb-icccm -lxcb-keysyms -lxcb-randr -lxcb-xtest -lXft -lXcursor +BUILDVERSION != sh "${.CURDIR}/buildver.sh" +.if !${BUILDVERSION} == "" +CPPFLAGS+= -DSPECTRWM_BUILDSTR=\"$(BUILDVERSION)\" +.endif -MANDIR= ${PREFIX}/man/cat - -scrotwm_ru.cat1: scrotwm_ru.1 - nroff -mandoc ${.CURDIR}/scrotwm_ru.1 > ${.TARGET} +MANDIR= ${PREFIX}/man/man obj: _xenocara_obj +beforeinstall: + ln -sf ${PROG} ${BINDIR}/scrotwm + +spectrwm.html: spectrwm.1 + mandoc -Thtml ${.CURDIR}/spectrwm.1 > spectrwm.html + .include .include