X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/cfa0d9e8feacd6a314ac443716c0c2496b9a1462..84a2f117a32f0796045941260cdc4b69852b41e0:/config.mk diff --git a/config.mk b/config.mk index bb6b8e8..2516e6e 100644 --- a/config.mk +++ b/config.mk @@ -1,19 +1,22 @@ -VERSION = 2.0 +# slstatus version +VERSION = 0 +# customize below to fit your system + +# paths PREFIX = /usr/local -MANPREFIX = ${PREFIX}/share/man +MANPREFIX = $(PREFIX)/share/man X11INC = /usr/X11R6/include X11LIB = /usr/X11R6/lib -INCS = -I. -I/usr/include -I${X11INC} -LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 -lasound - # flags -CPPFLAGS = -DVERSION=\"${VERSION}\" -D_GNU_SOURCE -CFLAGS = -std=c99 -pedantic -Wno-unused-function -Wall -Wextra -Os ${INCS} ${CPPFLAGS} -LDFLAGS = ${LIBS} +CPPFLAGS = -I$(X11INC) -D_DEFAULT_SOURCE +CFLAGS = -std=c99 -pedantic -Wall -Wextra -Os +LDFLAGS = -L$(X11LIB) -s +# OpenBSD: add -lsndio +# FreeBSD: add -lkvm +LDLIBS = -lX11 +# compiler and linker CC = cc -LD = ld -