[download]

local/src/dwm/config.mk

   1 # dwm version
   2 VERSION = 6.2
   3 
   4 # Customize below to fit your system
   5 
   6 # paths
   7 PREFIX = $(HOME)/.local
   8 MANPREFIX = ${PREFIX}/share/man
   9 
  10 X11INC = /usr/X11R6/include
  11 X11LIB = /usr/X11R6/lib
  12 
  13 # Xinerama, comment if you don't want it
  14 XINERAMALIBS  = -lXinerama
  15 XINERAMAFLAGS = -DXINERAMA
  16 
  17 # freetype
  18 FREETYPELIBS = -lfontconfig -lXft
  19 FREETYPEINC  = /usr/include/freetype2
  20 # OpenBSD (uncomment)
  21 #FREETYPEINC = ${X11INC}/freetype2
  22 
  23 # includes and libs
  24 INCS = -I${X11INC} -I${FREETYPEINC}
  25 LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
  26 
  27 # flags
  28 CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
  29 #CFLAGS   = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
  30 CFLAGS   = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
  31 LDFLAGS  = ${LIBS}
  32 
  33 # Solaris
  34 #CFLAGS  = -fast ${INCS} -DVERSION=\"${VERSION}\"
  35 #LDFLAGS = ${LIBS}
  36 
  37 CFLAGS  += -D PATCH_ALWAYSCENTER
  38 CFLAGS  += -D PATCH_AWESOMEBAR
  39 CFLAGS  += -D PATCH_CENTEREDWINDOWNAME
  40 #CFLAGS  += -D PATCH_COLOREMOJI
  41 #CFLAGS  += -D PATCH_DECORATION_HINTS
  42 CFLAGS  += -D PATCH_FLOATINGABOVE
  43 CFLAGS  += -D PATCH_FOCUSONNETACTIVE
  44 CFLAGS  += -D PATCH_FULLSCREENFOCUS
  45 CFLAGS  += -D PATCH_NOSCHEMESEL
  46 #CFLAGS  += -D PATCH_PERTAG
  47 CFLAGS  += -D PATCH_RESIZECORNERS
  48 CFLAGS  += -D PATCH_SYSTRAY
  49 #CFLAGS  += -D PATCH_WARP
  50 
  51 # compiler and linker
  52 CC = cc