summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-02-20 11:24:52 +0100
committerGravatar Nikias Bassen2009-02-20 11:24:52 +0100
commit71d8775f865b431135cd3c178763d0a294b8ff9e (patch)
tree2d6ea791e24db2d206ad943dce42b3cec5557d43 /Makefile
downloadusbmuxd-71d8775f865b431135cd3c178763d0a294b8ff9e.tar.gz
usbmuxd-71d8775f865b431135cd3c178763d0a294b8ff9e.tar.bz2
initial import
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
+