From 71d8775f865b431135cd3c178763d0a294b8ff9e Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 20 Feb 2009 11:24:52 +0100 Subject: initial import --- Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 + -- cgit v1.1-32-gdbae