Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
config.h: use common default font, pass Xft font name to dmenu
[dwm.git]
/
config.mk
diff --git
a/config.mk
b/config.mk
index
d4b16f7
..
4eefb71
100644
(file)
--- a/
config.mk
+++ b/
config.mk
@@
-1,5
+1,5
@@
# dwm version
# dwm version
-VERSION =
1.5
+VERSION =
6.1
# Customize below to fit your system
# Customize below to fit your system
@@
-10,16
+10,29
@@
MANPREFIX = ${PREFIX}/share/man
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib
+# Xinerama, comment if you don't want it
+XINERAMALIBS = -lXinerama
+XINERAMAFLAGS = -DXINERAMA
+
+# freetype
+FREETYPELIBS = -lfontconfig -lXft
+FREETYPEINC = /usr/include/freetype2
+# OpenBSD (uncomment)
+#FREETYPEINC = ${X11INC}/freetype2
+
# includes and libs
# includes and libs
-INCS = -I
. -I/usr/include -I${X11
INC}
-LIBS = -L
/usr/lib -lc -L${X11LIB} -lX11
+INCS = -I
${X11INC} -I${FREETYPE
INC}
+LIBS = -L
${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
# flags
# flags
-CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\"
-LDFLAGS = ${LIBS}
-#CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\"
-#LDFLAGS = -g ${LIBS}
+CPPFLAGS = -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
+#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
+CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
+LDFLAGS = -s ${LIBS}
+
+# Solaris
+#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
+#LDFLAGS = ${LIBS}
# compiler and linker
CC = cc
# compiler and linker
CC = cc
-LD = ${CC}