summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..04a36b3
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,26 @@
+TARGET=usbmuxd
+CFLAGS=-Wall
+LDFLAGS=-lpthread -lusb -lrt
+
+objects = sock_stuff.o usbmuxd.o iphone.o
+
+all: $(TARGET)
+
+%.o: %.c %.h
+ $(CC) -o $@ $(CFLAGS) -c $<
+
+$(TARGET): $(objects)
+ $(CC) -o $@ $(LDFLAGS) $^
+
+clean:
+ rm -f *.o $(TARGET)
+
+realclean: clean
+ rm -f *~
+
+testclient: testclient.c sock_stuff.o
+ $(CC) $(LDFLAGS) -o testclient $(CFLAGS) $< sock_stuff.o
+
+iproxy: iproxy.c sock_stuff.o
+ $(CC) -lpthread -o iproxy $(CFLAGS) $< sock_stuff.o
+