xpick/Makefile

24 lines
374 B
Makefile
Raw Normal View History

2020-12-05 11:00:50 +01:00
.POSIX:
2020-11-30 21:59:08 +01:00
2020-12-05 11:00:50 +01:00
PREFIX ?= /usr/local
PKG_CONFIG = pkg-config
CFLAGS = -Wall `$(PKG_CONFIG) --cflags x11`
LDFLAGS = `$(PKG_CONFIG) --libs x11`
all: xpick
2020-11-30 21:59:08 +01:00
2020-12-03 20:45:30 +01:00
xpick:
2020-12-05 11:00:50 +01:00
$(CC) $(CFLAGS) -o ${@} xpick.c $(LDFLAGS)
2020-11-30 21:59:08 +01:00
clean:
rm -f xpick
install: xpick
2020-12-05 11:00:50 +01:00
install -m755 xpick $(DESTDIR)$(PREFIX)/bin/xpick
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/xpick
.PHONY: all clean install uninstall