X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/f95eed34b46dfe73f1511703e0a9301c9d8d1952..cd96232f7e97726413baeb0d411cc5f537575f0e:/config.mk
diff --git a/config.mk b/config.mk
index 820fe1b..f5ec4c1 100644
--- a/config.mk
+++ b/config.mk
@@ -1,4 +1,7 @@
-# Customize to fit your system
+# dwm version
+VERSION = 5.6
+
+# Customize below to fit your system
# paths
PREFIX = /usr/local
@@ -7,24 +10,24 @@ MANPREFIX = ${PREFIX}/share/man
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib
-VERSION = 0.4
+# Xinerama, un-comment if you want it
+XINERAMALIBS = -L${X11LIB} -lXinerama
+XINERAMAFLAGS = -DXINERAMA
# includes and libs
-LIBS = -L${PREFIX}/lib -L/usr/lib -lc -L${X11LIB} -lX11
-
-# Linux/BSD
-CFLAGS = -Os -I. -I${PREFIX}/include -I/usr/include -I${X11INC} \
- -DVERSION=\"${VERSION}\"
-LDFLAGS = ${LIBS}
-#CFLAGS = -g -Wall -O2 -I. -I${PREFIX}/include -I/usr/include -I${X11INC} \
-# -DVERSION=\"${VERSION}\"
-#LDFLAGS = -g ${LIBS}
+INCS = -I. -I/usr/include -I${X11INC}
+LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${XINERAMALIBS}
+# flags
+CPPFLAGS = -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
+CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
+#CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
+LDFLAGS = -g ${LIBS}
+#LDFLAGS = -s ${LIBS}
# Solaris
-#CFLAGS = -fast -xtarget=ultra ${INCLUDES} -DVERSION=\"${VERSION}\"
-#LIBS += -lnsl -lsocket
+#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
+#LDFLAGS = ${LIBS}
-AR = ar cr
+# compiler and linker
CC = cc
-RANLIB = ranlib