2023-05-25 15:25:50 +02:00
|
|
|
# dwm version
|
2023-12-11 19:16:33 +01:00
|
|
|
VERSION = 6.4
|
2023-05-25 15:25:50 +02:00
|
|
|
|
|
|
|
# Customize below to fit your system
|
|
|
|
|
|
|
|
# paths
|
|
|
|
PREFIX = /usr/local
|
|
|
|
MANPREFIX = ${PREFIX}/share/man
|
|
|
|
|
|
|
|
X11INC = /usr/X11R6/include
|
|
|
|
X11LIB = /usr/X11R6/lib
|
|
|
|
|
2023-12-11 19:16:33 +01:00
|
|
|
# FreeBSD (uncomment)
|
|
|
|
#X11INC = /usr/local/include
|
|
|
|
#X11LIB = /usr/local/lib
|
|
|
|
|
2023-05-25 15:25:50 +02:00
|
|
|
# Xinerama, comment if you don't want it
|
|
|
|
XINERAMALIBS = -lXinerama
|
|
|
|
XINERAMAFLAGS = -DXINERAMA
|
|
|
|
|
|
|
|
# freetype
|
|
|
|
FREETYPELIBS = -lfontconfig -lXft
|
|
|
|
FREETYPEINC = /usr/include/freetype2
|
2023-12-11 19:16:33 +01:00
|
|
|
# FreeBSD (uncomment)
|
|
|
|
#FREETYPEINC = /usr/local/include/freetype2
|
2023-05-25 15:25:50 +02:00
|
|
|
# OpenBSD (uncomment)
|
|
|
|
#FREETYPEINC = ${X11INC}/freetype2
|
2023-12-11 19:16:33 +01:00
|
|
|
# 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 = `pkg-config --cflags fribidi`
|
|
|
|
#BDLIBS = `pkg-config --libs fribidi`
|
2023-05-25 15:25:50 +02:00
|
|
|
|
|
|
|
# includes and libs
|
2023-12-11 19:16:33 +01:00
|
|
|
INCS = -I${X11INC} -I${FREETYPEINC} ${YAJLINC} ${PANGOINC} ${BDINC}
|
|
|
|
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} ${XRENDER} ${MPDCLIENT} ${XEXTLIB} ${XCBLIBS} ${KVMLIB} ${PANGOLIB} ${YAJLLIBS} ${IMLIB2LIBS} $(BDLIBS)
|
2023-05-25 15:25:50 +02:00
|
|
|
|
|
|
|
# flags
|
2023-12-11 19:16:33 +01:00
|
|
|
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
|
2023-05-25 15:25:50 +02:00
|
|
|
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
|
2023-12-11 19:16:33 +01:00
|
|
|
CFLAGS = -std=c99 -pedantic -Wall -Wno-unused-function -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
|
2023-05-25 15:25:50 +02:00
|
|
|
LDFLAGS = ${LIBS}
|
|
|
|
|
|
|
|
# Solaris
|
|
|
|
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
|
|
|
|
#LDFLAGS = ${LIBS}
|
|
|
|
|
|
|
|
# compiler and linker
|
|
|
|
CC = cc
|