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