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