X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=config.mk;h=faea37ff746ede27b1a55a6767974f59ccd142a6;hb=164986763a29db97abb52b15cbd282b5636d83c0;hp=d9f5a27ce40eee5148364eca6044533ce8477089;hpb=a7aee433ccfd2590e0785a7b93a89d8d0593a234;p=dmenu.git diff --git a/config.mk b/config.mk index d9f5a27..faea37f 100644 --- a/config.mk +++ b/config.mk @@ -1,13 +1,10 @@ # dmenu version -VERSION = 4.2 - -# Customize below to fit your system +VERSION = 4.6 # paths PREFIX = /usr/local MANPREFIX = ${PREFIX}/share/man -# Xlib X11INC = /usr/X11R6/include X11LIB = /usr/X11R6/lib @@ -15,12 +12,18 @@ X11LIB = /usr/X11R6/lib XINERAMALIBS = -lXinerama XINERAMAFLAGS = -DXINERAMA +# freetype +FREETYPELIBS = -lfontconfig -lXft +FREETYPEINC = /usr/include/freetype2 +# OpenBSD (uncomment) +#FREETYPEINC = ${X11INC}/freetype2 + # includes and libs -INCS = -I${X11INC} -LIBS = -L${X11LIB} -ldraw -lX11 ${XINERAMALIBS} +INCS = -I${X11INC} -I${FREETYPEINC} +LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} # flags -CPPFLAGS = -D_BSD_SOURCE -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} +CPPFLAGS = -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} LDFLAGS = -s ${LIBS}