find-cursor-1.8-makefile-destdir.patch 509 B

1234567891011121314151617181920
  1. --- a/Makefile 2022-07-12 11:48:18.488263029 +0200
  2. +++ b/Makefile 2022-07-12 12:07:25.885165083 +0200
  3. @@ -1,14 +1,14 @@
  4. CC ?= cc
  5. -PREFIX ?= /usr/local
  6. +PREFIX ?= /usr
  7. NAME ?= find-cursor
  8. CFLAGS += -std=c99 -pedantic -Wall -Wextra -Wpedantic -Os
  9. -LDFLAGS += -L/usr/lib -lX11 -lXext -lXfixes
  10. +LIBS += -lX11 -lXext -lXfixes
  11. .PHONY: all clean install uninstall
  12. all:
  13. - ${CC} ${CFLAGS} ${LDFLAGS} -o ${NAME} *.c
  14. + ${CC} ${CFLAGS} ${LDFLAGS} -o ${NAME} *.c ${LIBS}
  15. clean:
  16. rm -f ${NAME}