find-cursor/Makefile

22 lines
405 B
Makefile
Raw Normal View History

2022-01-11 21:03:56 +00:00
CC ?= cc
PREFIX ?= /usr/local
NAME ?= find-cursor
CFLAGS += -std=c99 -pedantic -Wall -Wextra -Wpedantic -Os
LDFLAGS += -L/usr/lib
LIBS += -lX11 -lXext -lXfixes
2022-01-11 21:03:56 +00:00
.PHONY: all clean install uninstall
2017-09-06 05:52:35 +00:00
2015-09-09 21:59:43 +00:00
all:
${CC} ${CFLAGS} ${LDFLAGS} -o ${NAME} *.c ${LIBS}
2022-01-11 21:03:56 +00:00
clean:
rm -f ${NAME}
2015-09-18 14:42:06 +00:00
install:
2022-01-11 21:03:56 +00:00
install -Dm755 ${NAME} ${DESTDIR}${PREFIX}/bin/${NAME}
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/${NAME}