~brown121407/dwm

c75ffcfb2567da762bc606ed44e15d9d4eda2c2a — Alexandru-Sergiu Marton a year ago c7d335e
Link everything with pkg-config.
1 files changed, 6 insertions(+), 6 deletions(-)

M config.mk
M config.mk => config.mk +6 -6
@@ 5,19 5,19 @@ VERSION = 6.2
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man

X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib

PKG_CONFIG = pkg-config

INCS = -I$(X11INC) \
INCS = `$(PKG_CONFIG) --cflags x11` \
	   `$(PKG_CONFIG) --cflags freetype2`

LIBS = -L$(X11LIB) -lX11 -lXft \
LIBS = `$(PKG_CONFIG) --libs x11` \
	   `$(PKG_CONFIG) --libs xft` \
	   `$(PKG_CONFIG) --libs xinerama` \
	   `$(PKG_CONFIG) --libs freetype2` \
	   `$(PKG_CONFIG) --libs fontconfig` \
	   -lX11-xcb -lxcb -lxcb-res
	   `$(PKG_CONFIG) --libs x11-xcb` \
	   `$(PKG_CONFIG) --libs xcb` \
	   `$(PKG_CONFIG) --libs xcb-res`

# flags
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" -DXINERAMA