config.mk (2302B)
1 # dwm version 2 VERSION = 6.8 3 4 # Customize below to fit your system 5 6 # paths 7 PREFIX = /usr/local 8 MANPREFIX = ${PREFIX}/share/man 9 10 X11INC = /usr/X11R6/include 11 X11LIB = /usr/X11R6/lib 12 13 # FreeBSD (uncomment) 14 #X11INC = /usr/local/include 15 #X11LIB = /usr/local/lib 16 17 # Xinerama, comment if you don't want it 18 XINERAMALIBS = -lXinerama 19 XINERAMAFLAGS = -DXINERAMA 20 21 # freetype 22 FREETYPELIBS = -lfontconfig -lXft 23 FREETYPEINC = /usr/include/freetype2 24 # FreeBSD (uncomment) 25 #FREETYPEINC = /usr/local/include/freetype2 26 # OpenBSD (uncomment) 27 #FREETYPEINC = ${X11INC}/freetype2 28 # OpenBSD - Uncomment this for the swallow patch / SWALLOW_PATCH 29 #KVMLIB = -lkvm 30 31 # Uncomment this for the alpha patch and the winicon patch (BAR_ALPHA_PATCH, BAR_WINICON_PATCH) 32 #XRENDER = -lXrender 33 34 # Uncomment this for the mdpcontrol patch / MDPCONTROL_PATCH 35 #MPDCLIENT = -lmpdclient 36 37 # Uncomment for the pango patch / BAR_PANGO_PATCH 38 #PANGOINC = `pkg-config --cflags xft pango pangoxft` 39 #PANGOLIB = `pkg-config --libs xft pango pangoxft` 40 41 # Uncomment for the ipc patch / IPC_PATCH 42 #YAJLLIBS = -lyajl 43 #YAJLINC = -I/usr/include/yajl 44 45 # Uncomment this for the rounded corners patch / ROUNDED_CORNERS_PATCH 46 #XEXTLIB = -lXext 47 48 # Uncomment this for the swallow patch / SWALLOW_PATCH 49 XCBLIBS = -lX11-xcb -lxcb -lxcb-res 50 51 # This is needed for the winicon and tagpreview patches / BAR_WINICON_PATCH / BAR_TAGPREVIEW_PATCH 52 #IMLIB2LIBS = -lImlib2 53 54 # Uncomment for the banish patch / BANISH_PATCH (for mouse related features) 55 #XILIB = `pkg-config --libs xi xfixes` 56 57 # Uncomment for the bidi patch 58 #BDINC = `pkg-config --cflags fribidi` 59 #BDLIBS = `pkg-config --libs fribidi` 60 61 # includes and libs 62 INCS = -I${X11INC} -I${FREETYPEINC} ${YAJLINC} ${PANGOINC} ${BDINC} 63 LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} ${XRENDER} ${MPDCLIENT} ${XEXTLIB} ${XCBLIBS} ${KVMLIB} ${PANGOLIB} ${YAJLLIBS} ${IMLIB2LIBS} $(BDLIBS) $(XILIB) 64 65 # flags 66 CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} 67 #CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS} 68 CFLAGS = -std=c99 -pedantic -Wall -Wno-unused-function -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS} 69 LDFLAGS = ${LIBS} 70 71 # Solaris 72 #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" 73 #LDFLAGS = ${LIBS} 74 75 # compiler and linker 76 CC = cc