xpick/Makefile
sh+github@codevoid.de 9cc4dfd46e Update Makefile
2020-12-05 10:00:50 +00:00

24 lines
374 B
Makefile

.POSIX:
PREFIX ?= /usr/local
PKG_CONFIG = pkg-config
CFLAGS = -Wall `$(PKG_CONFIG) --cflags x11`
LDFLAGS = `$(PKG_CONFIG) --libs x11`
all: xpick
xpick:
$(CC) $(CFLAGS) -o ${@} xpick.c $(LDFLAGS)
clean:
rm -f xpick
install: xpick
install -m755 xpick $(DESTDIR)$(PREFIX)/bin/xpick
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/xpick
.PHONY: all clean install uninstall