mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-18 05:05:48 +02:00
5498fed42b
config.mk: update to _XOPEN_SOURCE=700L SA_NOCLDWAIT is marked as XSI in the posix spec [0] and FreeBSD and NetBSD seems to more be strict about the feature test macro [1]. so update the macro to use _XOPEN_SOURCE=700L instead, which is equivalent to _POSIX_C_SOURCE=200809L except that it also unlocks the X/Open System Interfaces. [0]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/signal.h.html#tag_13_42 [1]: https://lists.suckless.org/dev/2302/35111.html Tested on: * NetBSD 9.3 (fixed). * FreeBSD 13 (fixed). * Void Linux musl. * Void Linux glibc. * OpenBSD 7.2 (stable). * Slackware 11. Reported-by: beastie <pufferfish@riseup.net> Ref. https://git.suckless.org/dwm/commit/348f6559ab0d4793db196ffa56ba96ab95a594a6.html
74 lines
2.1 KiB
Makefile
74 lines
2.1 KiB
Makefile
# dwm version
|
|
VERSION = 6.4
|
|
|
|
# Customize below to fit your system
|
|
|
|
# paths
|
|
PREFIX = /usr/local
|
|
MANPREFIX = ${PREFIX}/share/man
|
|
|
|
X11INC = /usr/X11R6/include
|
|
X11LIB = /usr/X11R6/lib
|
|
|
|
# FreeBSD (uncomment)
|
|
#X11INC = /usr/local/include
|
|
#X11LIB = /usr/local/lib
|
|
|
|
# Xinerama, comment if you don't want it
|
|
XINERAMALIBS = -lXinerama
|
|
XINERAMAFLAGS = -DXINERAMA
|
|
|
|
# freetype
|
|
FREETYPELIBS = -lfontconfig -lXft
|
|
FREETYPEINC = /usr/include/freetype2
|
|
# FreeBSD (uncomment)
|
|
#FREETYPEINC = /usr/local/include/freetype2
|
|
# OpenBSD (uncomment)
|
|
#FREETYPEINC = ${X11INC}/freetype2
|
|
# OpenBSD - Uncomment this for the swallow patch / SWALLOW_PATCH
|
|
#KVMLIB = -lkvm
|
|
|
|
# Uncomment this for the alpha patch and the winicon patch (BAR_ALPHA_PATCH, BAR_WINICON_PATCH)
|
|
XRENDER = -lXrender
|
|
|
|
# Uncomment this for the mdpcontrol patch / MDPCONTROL_PATCH
|
|
#MPDCLIENT = -lmpdclient
|
|
|
|
# Uncomment for the pango patch / BAR_PANGO_PATCH
|
|
#PANGOINC = `pkg-config --cflags xft pango pangoxft`
|
|
#PANGOLIB = `pkg-config --libs xft pango pangoxft`
|
|
|
|
# Uncomment for the ipc patch / IPC_PATCH
|
|
#YAJLLIBS = -lyajl
|
|
#YAJLINC = -I/usr/include/yajl
|
|
|
|
# Uncomment this for the rounded corners patch / ROUNDED_CORNERS_PATCH
|
|
#XEXTLIB = -lXext
|
|
|
|
# Uncomment this for the swallow patch / SWALLOW_PATCH
|
|
#XCBLIBS = -lX11-xcb -lxcb -lxcb-res
|
|
|
|
# This is needed for the winicon and tagpreview patches / BAR_WINICON_PATCH / BAR_TAGPREVIEW_PATCH
|
|
#IMLIB2LIBS = -lImlib2
|
|
|
|
# Uncomment for the bidi patch
|
|
#BDINC = -I/usr/include/fribidi
|
|
#BDLIBS = -lfribidi
|
|
|
|
# includes and libs
|
|
INCS = -I${X11INC} -I${FREETYPEINC} ${YAJLINC} ${PANGOINC} ${BDINC}
|
|
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} ${XRENDER} ${MPDCLIENT} ${XEXTLIB} ${XCBLIBS} ${KVMLIB} ${PANGOLIB} ${YAJLLIBS} ${IMLIB2LIBS} $(BDLIBS)
|
|
|
|
# flags
|
|
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D__XSI_VISIBLE=1 -D_XOPEN_SOURCE=700L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
|
|
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
|
|
CFLAGS = -std=c99 -pedantic -Wall -Wno-unused-function -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
|
|
LDFLAGS = ${LIBS}
|
|
|
|
# Solaris
|
|
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
|
|
#LDFLAGS = ${LIBS}
|
|
|
|
# compiler and linker
|
|
CC = cc
|