summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 04a36b3e792a28755cd4afcf780ebf0858792103 (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
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