summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 6 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index ece8ebb..55d396d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-TARGETS=usbmuxd iproxy testclient
-CFLAGS=-Wall -g -DDEBUG
+TARGETS=usbmuxd iproxy
+CFLAGS=-I. -Wall -g -DDEBUG
LIBS=-lpthread -lusb -lrt
LDFLAGS=
INSTALL_PREFIX=/usr
@@ -7,9 +7,10 @@ INSTALL_PREFIX=/usr
all: $(TARGETS)
main.o: main.c usbmuxd.h sock_stuff.h iphone.h
-iphone.o: iproxy.c iphone.h usbmuxd.h sock_stuff.h
+iphone.o: iphone.c iphone.h usbmuxd.h sock_stuff.h
sock_stuff.o: sock_stuff.c sock_stuff.h
-testclient.o: testclient.c sock_stuff.h
+libusbmuxd.o: libusbmuxd.c libusbmuxd.h usbmuxd.h
+iproxy.o: iproxy.c sock_stuff.h
%.o: %.c
$(CC) -o $@ $(CFLAGS) -c $<
@@ -17,10 +18,7 @@ testclient.o: testclient.c sock_stuff.h
usbmuxd: main.o sock_stuff.o iphone.o
$(CC) -o $@ $(LDFLAGS) $^ $(LIBS)
-testclient: testclient.o sock_stuff.o
- $(CC) -o $@ $(LDFLAGS) $^ $(LIBS)
-
-iproxy: iproxy.o sock_stuff.o
+iproxy: iproxy.o libusbmuxd.o sock_stuff.o
$(CC) -o $@ $(LDFLAGS) $^ $(LIBS)
clean: