X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=config.mk;h=75c6abef054333c2c73bdfcbcabad2b3f82f402b;hb=569a1f925a7cf351e6ec3e38529f46a1d9becf3f;hp=bbeda5da656c50dbd3f43f861d19b5a36d7876e9;hpb=32ea45084b389d604369d74c6806d4a12613099a;p=dmenu.git diff --git a/config.mk b/config.mk index bbeda5d..75c6abe 100644 --- a/config.mk +++ b/config.mk @@ -1,5 +1,5 @@ # dmenu version -VERSION = 0.8 +VERSION = 4.1 # Customize below to fit your system @@ -10,16 +10,22 @@ MANPREFIX = ${PREFIX}/share/man X11INC = /usr/X11R6/include X11LIB = /usr/X11R6/lib +# Xinerama, comment if you don't want it +XINERAMALIBS = -L${X11LIB} -lXinerama +XINERAMAFLAGS = -DXINERAMA + # includes and libs INCS = -I. -I/usr/include -I${X11INC} -LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 +LIBS = -L/usr/lib -lc -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 -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} +CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} +LDFLAGS = -s ${LIBS} + +# Solaris +#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" +#LDFLAGS = ${LIBS} # compiler and linker CC = cc -LD = ${CC}