X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=Makefile;h=d32b0b2ebec0d0ec2a8f1dfa254b4952aa4eb071;hb=10147c617a24ccc28626d8717f4e92c1f0ecf8ca;hp=4aa16f97cbc07007cabc5aff3a8dfc38a03e5005;hpb=aaee1e4644e54f3b77e4f7745b8127f35d2b7821;p=spectrwm.git diff --git a/Makefile b/Makefile index 4aa16f9..d32b0b2 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,3 @@ -# $scrotwm$ .include PREFIX?=/usr/local @@ -6,21 +5,39 @@ PREFIX?=/usr/local BINDIR=${PREFIX}/bin SUBDIR= lib -PROG=scrotwm -MAN=scrotwm.1 scrotwm_es.1 scrotwm_it.1 scrotwm_pt.1 scrotwm_ru.1 +PROG=spectrwm +#MAN=spectrwm_pt.1 spectrwm_ru.1 spectrwm_es.1 spectrwm_it.1 +MAN=spectrwm.1 -CFLAGS+=-std=c89 -Wall -Wno-uninitialized -ggdb3 +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 -LDADD+=-lutil -L${X11BASE}/lib -lX11 -lXrandr +CPPFLAGS+= -I${X11BASE}/include -I${X11BASE}/include/freetype2 +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} == "" +CPPFLAGS+= -DSPECTRWM_BUILDSTR=\"$(BUILDVERSION)\" +.endif -MANDIR= ${PREFIX}/man/cat +MANDIR= ${PREFIX}/man/man -scrotwm_ru.cat1: scrotwm_ru.1 - nroff -mandoc ${.CURDIR}/scrotwm_ru.1 > ${.TARGET} +#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 +.endif + +analyze: all +clang: all .include .include