spectrwm/Makefile

44 lines
1 KiB
Makefile
Raw Normal View History

2009-01-13 16:24:34 +00:00
.include <bsd.xconf.mk>
PREFIX?=/usr/local
BINDIR=${PREFIX}/bin
SUBDIR= lib
2012-02-15 14:09:13 -06:00
PROG=spectrwm
#MAN=spectrwm_pt.1 spectrwm_ru.1 spectrwm_es.1 spectrwm_it.1
MAN=spectrwm.1
2009-01-13 16:24:34 +00:00
2012-08-28 19:46:51 -04:00
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
2012-07-17 16:03:30 -04:00
CPPFLAGS+= -I${X11BASE}/include -I${X11BASE}/include/freetype2
2012-08-26 18:53:45 +08:00
LDADD+=-lutil -L${X11BASE}/lib -lX11 -lX11-xcb -lxcb-aux -lxcb-icccm -lxcb-keysyms -lxcb-randr -lxcb-xtest -lXft -lXcursor
BUILDVERSION != sh "${.CURDIR}/buildver.sh"
.if !${BUILDVERSION} == ""
2012-02-15 14:09:13 -06:00
CPPFLAGS+= -DSPECTRWM_BUILDSTR=\"$(BUILDVERSION)\"
.endif
2009-01-13 16:24:34 +00:00
MANDIR= ${PREFIX}/man/man
2009-01-13 16:24:34 +00:00
2012-02-15 14:09:13 -06:00
#spectrwm_ru.cat1: spectrwm_ru.1
# nroff -mandoc ${.CURDIR}/spectrwm_ru.1 > ${.TARGET}
2009-01-13 16:24:34 +00:00
obj: _xenocara_obj
2012-02-15 17:26:29 -06:00
beforeinstall:
ln -sf ${PROG} ${BINDIR}/scrotwm
2012-02-15 17:26:29 -06:00
2011-10-25 15:19:29 -05:00
# clang targets
.if ${.TARGETS:M*analyze*}
CC=clang
CXX=clang++
CPP=clang -E
CFLAGS+=--analyze
.endif
analyze: all
clang: all
2009-01-13 16:24:34 +00:00
.include <bsd.prog.mk>
.include <bsd.xorg.mk>