X-Git-Url: https://code.delx.au/spectrwm/blobdiff_plain/4d964ea1ea42a47e09d1f63aa62943607f3bba36..1bc0a49dc3a5666d3c9104c09cdfbba5bf141ead:/Makefile diff --git a/Makefile b/Makefile index e4034ad..94955eb 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,3 @@ -# $scrotwm$ .include PREFIX?=/usr/local @@ -6,18 +5,28 @@ PREFIX?=/usr/local BINDIR=${PREFIX}/bin SUBDIR= lib -PROG=scrotwm -MAN=scrotwm.1 scrotwm_es.1 scrotwm_it.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 +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