summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e0c8971..40c1e0a 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ TARGETS=usbmuxd iproxy libusbmuxd.so
CFLAGS=-I. -Wall -g -DDEBUG -fPIC
LIBS=-lpthread -lusb -lrt
LDFLAGS=-L.
-INSTALL_PREFIX=/usr
+INSTALL_PREFIX=/usr/local
all: $(TARGETS)
@@ -33,6 +33,8 @@ realclean: clean
install: all
install -m 755 usbmuxd $(INSTALL_PREFIX)/sbin/
+ # udev crack
+ install -m 644 85-usbmuxd.rules $(INSTALL_PREFIX)/lib/udev/rules.d/
# protocol
install -m 644 usbmuxd-proto.h $(INSTALL_PREFIX)/include/
# iproxy
@@ -40,4 +42,12 @@ install: all
install -m 644 usbmuxd.h $(INSTALL_PREFIX)/include/
install -m 755 iproxy $(INSTALL_PREFIX)/bin/
+uninstall:
+ -rm $(INSTALL_PREFIX)/sbin/usbmuxd
+ -rm $(INSTALL_PREFIX)/lib/udev/rules.d/85-usbmuxd.rules
+ -rm $(INSTALL_PREFIX)/include/usbmuxd-proto.h
+ -rm $(INSTALL_PREFIX)/lib/libusbmux.so
+ -rm $(INSTALL_PREFIX)/include/usbmuxd.h
+ -rm $(INSTALL_PREFIX)/bin/iproxy
+
.PHONY: all clean realclean