status/makefile
ale ab7365cc31 compatible with openbsd
made the makefile compatible with openbsd, also since battery status is not exposed
trough the filesystem, just printing "not supported" for now.
2021-05-01 18:08:21 +02:00

23 lines
478 B
Makefile

INCS = -I/usr/X11R6/include
CFLAGS = -Wall -Werror -pedantic -Ofast -std=c99 ${INCS}
LDFLAGS = -L/usr/X11R6/lib -lX11
CC ?= gcc
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man
status: status.c
debug: status.c
${CC} ${LDFLAGS} -O0 -g -o stat_debug $?
install: status
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f status ${DESTDIR}${PREFIX}/bin/status
chmod 755 ${DESTDIR}${PREFIX}/bin/status
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/status
clean:
rm -f status stat_debug