spectrwm/Makefile
David Hill 2a64e76451 remove -lXlib-xcb and -lXtst. Replace with -lX11 and -lxcb.
-lX11 is still needed for keysym stuff.
2012-07-21 05:59:30 +08:00

47 lines
1,016 B
Makefile

.include <bsd.xconf.mk>
PREFIX?=/usr/local
BINDIR=${PREFIX}/bin
SUBDIR= lib
PROG=spectrwm
#MAN=spectrwm_pt.1 spectrwm_ru.1 spectrwm_es.1 spectrwm_it.1
MAN=spectrwm.1
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 -lxcb -lxcb-aux -lxcb-icccm -lxcb-keysyms -lxcb-randr -lxcb-xtest
BUILDVERSION != sh "${.CURDIR}/buildver.sh"
.if !${BUILDVERSION} == ""
CPPFLAGS+= -DSPECTRWM_BUILDSTR=\"$(BUILDVERSION)\"
.endif
MANDIR= ${PREFIX}/man/man
#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 <bsd.prog.mk>
.include <bsd.xorg.mk>