2023-07-02 01:39:07 +02:00
|
|
|
# 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
|
|
|
|
|
|
|
|
# Xinerama, comment if you don't want it
|
|
|
|
XINERAMALIBS = -lXinerama
|
|
|
|
XINERAMAFLAGS = -DXINERAMA
|
|
|
|
|
2023-07-04 18:50:24 +02:00
|
|
|
|
2023-07-02 01:39:07 +02:00
|
|
|
# OpenBSD (uncomment)
|
|
|
|
#MANPREFIX = ${PREFIX}/man
|
2023-07-04 18:50:24 +02:00
|
|
|
#KVMLIB = -lkvm
|
2023-07-02 01:39:07 +02:00
|
|
|
|
|
|
|
# includes and libs
|
2023-07-02 02:34:56 +02:00
|
|
|
INCS = -I${X11INC} `pkg-config --cflags cairo pango pangocairo`
|
2023-07-04 18:50:24 +02:00
|
|
|
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} `pkg-config --libs cairo pango pangocairo` -lXrender -lX11-xcb -lxcb -lxcb-res ${KVMLIB}
|
2023-07-02 01:39:07 +02:00
|
|
|
|
|
|
|
# flags
|
2023-07-02 02:51:22 +02:00
|
|
|
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
|
2023-07-02 01:39:07 +02:00
|
|
|
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
|
2023-07-02 02:19:59 +02:00
|
|
|
CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -O0 ${INCS} ${CPPFLAGS}
|
2023-07-02 01:39:07 +02:00
|
|
|
LDFLAGS = ${LIBS}
|
|
|
|
|
|
|
|
# Solaris
|
|
|
|
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
|
|
|
|
#LDFLAGS = ${LIBS}
|
|
|
|
|
|
|
|
# compiler and linker
|
|
|
|
CC = cc
|