]> code.delx.au - spectrwm/blob - Makefile
Allow apps to manually manage SKIP_TASKBAR and SKIP_PAGER
[spectrwm] / Makefile
1 .include <bsd.xconf.mk>
2
3 PREFIX?=/usr/local
4
5 BINDIR=${PREFIX}/bin
6 SUBDIR= lib
7
8 PROG=spectrwm
9 MAN=spectrwm.1
10
11 CFLAGS+=-std=c99 -Wmissing-prototypes -Wall -Wextra -Wshadow -Wno-uninitialized -g
12 # Uncomment define below to disallow user settable clock format string
13 #CFLAGS+=-DSWM_DENY_CLOCK_FORMAT
14 CPPFLAGS+= -I${X11BASE}/include -I${X11BASE}/include/freetype2
15 LDADD+=-lutil -L${X11BASE}/lib -lX11 -lX11-xcb -lxcb-util -lxcb-icccm -lxcb-keysyms -lxcb-randr -lxcb-xtest -lXft -lXcursor
16 BUILDVERSION != sh "${.CURDIR}/buildver.sh"
17 .if !${BUILDVERSION} == ""
18 CPPFLAGS+= -DSPECTRWM_BUILDSTR=\"$(BUILDVERSION)\"
19 .endif
20
21 MANDIR= ${PREFIX}/man/man
22
23 obj: _xenocara_obj
24
25 beforeinstall:
26 ln -sf ${PROG} ${BINDIR}/scrotwm
27
28 spectrwm.html: spectrwm.1
29 mandoc -Thtml ${.CURDIR}/spectrwm.1 > spectrwm.html
30
31 .include <bsd.prog.mk>
32 .include <bsd.xorg.mk>