summaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
authorBear <bear@bengtsson.win>2021-12-27 09:29:58 +0000
committerBear <bear@bengtsson.win>2021-12-27 09:29:58 +0000
commit69262b01ced79c2d776fab9b889926d1816a1e7a (patch)
treef304cd6fa8734e83a7772d07dc9b484781565155 /config.mk
Added DWM
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk69
1 files changed, 69 insertions, 0 deletions
diff --git a/config.mk b/config.mk
new file mode 100644
index 0000000..e782796
--- /dev/null
+++ b/config.mk
@@ -0,0 +1,69 @@
+# dwm version
+VERSION = 6.2
+
+# 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 / BAR_ALPHA_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 patch / BAR_WINICON_PATCH
+IMLIB2LIBS = -lImlib2
+
+# includes and libs
+INCS = -I${X11INC} -I${FREETYPEINC} ${YAJLINC} ${PANGOINC}
+LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} ${XRENDER} ${MPDCLIENT} ${XEXTLIB} ${XCBLIBS} ${KVMLIB} ${PANGOLIB} ${YAJLLIBS} ${IMLIB2LIBS}
+
+# flags
+CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
+#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
+CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
+LDFLAGS = ${LIBS}
+
+# Solaris
+#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
+#LDFLAGS = ${LIBS}
+
+# compiler and linker
+CC = cc