# this Makefile is for building btcli it depends on pkg-config libdbus-1-dev (and build-essential) packages BTPASS_VERSION?=1.3 prefix=/usr/local btpasskey: btpasskey.c $(CC) `pkg-config --libs --cflags dbus-1` -g -DDBUS_API_SUBJECT_TO_CHANGE -DVERSION="\"$(BTPASS_VERSION)\"" -o btpasskey btpasskey.c install: btpasskey install -m 755 -o root btpasskey $(DESTDIR)$(prefix)/bin install -m 644 -o root btpasskey.1 $(DESTDIR)$(prefix)/share/man/man1 clean: rm *.o btpasskey