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
2CFLAGS=-I. -Wall -g -DDEBUG -fPIC 2CFLAGS=-I. -Wall -g -DDEBUG -fPIC
3LIBS=-lpthread -lusb -lrt 3LIBS=-lpthread -lusb -lrt
4LDFLAGS=-L. 4LDFLAGS=-L.
5INSTALL_PREFIX=/usr 5INSTALL_PREFIX=/usr/local
6 6
7all: $(TARGETS) 7all: $(TARGETS)
8 8
@@ -33,6 +33,8 @@ realclean: clean
33 33
34install: all 34install: all
35 install -m 755 usbmuxd $(INSTALL_PREFIX)/sbin/ 35 install -m 755 usbmuxd $(INSTALL_PREFIX)/sbin/
36 # udev crack
37 install -m 644 85-usbmuxd.rules $(INSTALL_PREFIX)/lib/udev/rules.d/
36 # protocol 38 # protocol
37 install -m 644 usbmuxd-proto.h $(INSTALL_PREFIX)/include/ 39 install -m 644 usbmuxd-proto.h $(INSTALL_PREFIX)/include/
38 # iproxy 40 # iproxy
@@ -40,4 +42,12 @@ install: all
40 install -m 644 usbmuxd.h $(INSTALL_PREFIX)/include/ 42 install -m 644 usbmuxd.h $(INSTALL_PREFIX)/include/
41 install -m 755 iproxy $(INSTALL_PREFIX)/bin/ 43 install -m 755 iproxy $(INSTALL_PREFIX)/bin/
42 44
45uninstall:
46 -rm $(INSTALL_PREFIX)/sbin/usbmuxd
47 -rm $(INSTALL_PREFIX)/lib/udev/rules.d/85-usbmuxd.rules
48 -rm $(INSTALL_PREFIX)/include/usbmuxd-proto.h
49 -rm $(INSTALL_PREFIX)/lib/libusbmux.so
50 -rm $(INSTALL_PREFIX)/include/usbmuxd.h
51 -rm $(INSTALL_PREFIX)/bin/iproxy
52
43.PHONY: all clean realclean 53.PHONY: all clean realclean