X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=config.mk;h=c0d466bb3903d8b6a9ba6de367115faa0aebc09e;hb=14f72a276334de4a46543cf648a4922bc54f1e9f;hp=7005311496e928537b9378363e8f655d412c9550;hpb=49ce444d3228ef00f1ad3b2deab9e133b3495b6b;p=dmenu.git diff --git a/config.mk b/config.mk index 7005311..c0d466b 100644 --- a/config.mk +++ b/config.mk @@ -1,7 +1,5 @@ # dmenu version -VERSION = 0.7 - -# Customize below to fit your system +VERSION = 4.5-tip # paths PREFIX = /usr/local @@ -10,16 +8,18 @@ MANPREFIX = ${PREFIX}/share/man X11INC = /usr/X11R6/include X11LIB = /usr/X11R6/lib +# Xinerama, comment if you don't want it +XINERAMALIBS = -lXinerama +XINERAMAFLAGS = -DXINERAMA + # includes and libs -INCS = -I. -I/usr/include -I${X11INC} -LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 +INCS = -I${X11INC} +LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} # 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=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} +CFLAGS = -ansi -pedantic -Wall -Os ${INCS} ${CPPFLAGS} +LDFLAGS = -s ${LIBS} # compiler and linker CC = cc -LD = ${CC}