JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
3ab3d06ea2c9b1eaf5058ab693f4fd9212933993
[spectrwm.git] / 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_pt.1 spectrwm_ru.1 spectrwm_es.1 spectrwm_it.1
10 MAN=spectrwm.1
11
12 CFLAGS+=-std=gnu89 -Wall -Wno-uninitialized -g
13 # Uncomment define below to disallow user settable clock format string
14 #CFLAGS+=-DSWM_DENY_CLOCK_FORMAT
15 CPPFLAGS+= -I${X11BASE}/include -I${X11BASE}/include/freetype2
16 LDADD+=-lutil -L${X11BASE}/lib -lX11 -lX11-xcb -lxcb-aux -lxcb-icccm -lxcb-keysyms -lxcb-randr -lxcb-xtest -lXft
17 BUILDVERSION != sh "${.CURDIR}/buildver.sh"
18 .if !${BUILDVERSION} == ""
19 CPPFLAGS+= -DSPECTRWM_BUILDSTR=\"$(BUILDVERSION)\"
20 .endif
21
22 MANDIR= ${PREFIX}/man/man
23
24 #spectrwm_ru.cat1: spectrwm_ru.1
25 #        nroff -mandoc ${.CURDIR}/spectrwm_ru.1 > ${.TARGET}
26
27 obj: _xenocara_obj
28
29 beforeinstall:
30         ln -sf ${BINDIR}/${PROG} ${BINDIR}/scrotwm
31
32 # clang targets
33 .if ${.TARGETS:M*analyze*}
34 CC=clang
35 CXX=clang++
36 CPP=clang -E
37 CFLAGS+=--analyze
38 .elif ${.TARGETS:M*clang*}
39 CC=clang
40 CXX=clang++
41 CPP=clang -E
42 .endif
43
44 analyze: all
45 clang: all
46 .include <bsd.prog.mk>
47 .include <bsd.xorg.mk>