status/makefile

23 lines
478 B
Makefile
Raw Permalink Normal View History

INCS = -I/usr/X11R6/include
CFLAGS = -Wall -Werror -pedantic -Ofast -std=c99 ${INCS}
2020-12-30 18:52:31 +01:00
LDFLAGS = -L/usr/X11R6/lib -lX11
CC ?= gcc
2020-12-30 18:52:31 +01:00
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