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 @@
1TARGET=usbmuxd
2CFLAGS=-Wall
3LDFLAGS=-lpthread -lusb -lrt
4
5objects = sock_stuff.o usbmuxd.o iphone.o
6
7all: $(TARGET)
8
9%.o: %.c %.h
10 $(CC) -o $@ $(CFLAGS) -c $<
11
12$(TARGET): $(objects)
13 $(CC) -o $@ $(LDFLAGS) $^
14
15clean:
16 rm -f *.o $(TARGET)
17
18realclean: clean
19 rm -f *~
20
21testclient: testclient.c sock_stuff.o
22 $(CC) $(LDFLAGS) -o testclient $(CFLAGS) $< sock_stuff.o
23
24iproxy: iproxy.c sock_stuff.o
25 $(CC) -lpthread -o iproxy $(CFLAGS) $< sock_stuff.o
26