mirror of
https://github.com/arp242/find-cursor
synced 2024-10-30 09:20:51 +00:00
22 lines
405 B
Makefile
22 lines
405 B
Makefile
CC ?= cc
|
|
PREFIX ?= /usr/local
|
|
NAME ?= find-cursor
|
|
|
|
CFLAGS += -std=c99 -pedantic -Wall -Wextra -Wpedantic -Os
|
|
LDFLAGS += -L/usr/lib
|
|
LIBS += -lX11 -lXext -lXfixes
|
|
|
|
.PHONY: all clean install uninstall
|
|
|
|
all:
|
|
${CC} ${CFLAGS} ${LDFLAGS} -o ${NAME} *.c ${LIBS}
|
|
|
|
clean:
|
|
rm -f ${NAME}
|
|
|
|
install:
|
|
install -Dm755 ${NAME} ${DESTDIR}${PREFIX}/bin/${NAME}
|
|
|
|
uninstall:
|
|
rm -f ${DESTDIR}${PREFIX}/bin/${NAME}
|