X-Git-Url: https://code.delx.au/spectrwm/blobdiff_plain/b9b62a7f36155c48b9b11b7789cdefec4a1c21da..refs/heads/trim_whitespace_when_loading_config:/Makefile diff --git a/Makefile b/Makefile index 9e432cc..94955eb 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,32 @@ -# $scrotwm$ .include +PREFIX?=/usr/local + +BINDIR=${PREFIX}/bin SUBDIR= lib -PROG=scrotwm -MAN=scrotwm.1 +PROG=spectrwm +MAN=spectrwm.1 -CFLAGS+=-std=c89 -Wall -Wno-uninitialized -ggdb3 -CPPFLAGS+= -I${X11BASE}/include -LDADD+=-lutil -L${X11BASE}/lib -lX11 -lXrandr +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 -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= ${X11BASE}/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