diff options
| author | 2009-02-25 20:01:34 +0100 | |
|---|---|---|
| committer | 2009-02-25 20:01:34 +0100 | |
| commit | 523c44d0018c2e8480b37ac917aef7469b4b3a65 (patch) | |
| tree | 981015afabe6df3574bb7ee06c82bd438b7f29fe /Makefile | |
| parent | 6e2946da89ce8c44ac2b78e49c8fc934974d021d (diff) | |
| download | usbmuxd-523c44d0018c2e8480b37ac917aef7469b4b3a65.tar.gz usbmuxd-523c44d0018c2e8480b37ac917aef7469b4b3a65.tar.bz2 | |
A Readme, Makefile updates and cosmetic changes.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 35 |
1 files changed, 20 insertions, 15 deletions
| @@ -1,26 +1,31 @@ | |||
| 1 | TARGET=usbmuxd | 1 | TARGETS=usbmuxd iproxy testclient |
| 2 | CFLAGS=-Wall | 2 | CFLAGS=-Wall -g |
| 3 | LDFLAGS=-lpthread -lusb -lrt | 3 | LIBS=-lpthread -lusb -lrt |
| 4 | LDFLAGS= | ||
| 4 | 5 | ||
| 5 | objects = sock_stuff.o usbmuxd.o iphone.o | 6 | all: $(TARGETS) |
| 6 | 7 | ||
| 7 | all: $(TARGET) | 8 | main.o: main.c usbmuxd.h sock_stuff.h iphone.h |
| 9 | iphone.o: iproxy.c iphone.h usbmuxd.h sock_stuff.h | ||
| 10 | sock_stuff.o: sock_stuff.c sock_stuff.h | ||
| 11 | testclient.o: testclient.c sock_stuff.h | ||
| 8 | 12 | ||
| 9 | %.o: %.c %.h | 13 | %.o: %.c |
| 10 | $(CC) -o $@ $(CFLAGS) -c $< | 14 | $(CC) -o $@ $(CFLAGS) -c $< |
| 11 | 15 | ||
| 12 | $(TARGET): $(objects) | 16 | usbmuxd: main.o sock_stuff.o iphone.o |
| 13 | $(CC) -o $@ $(LDFLAGS) $^ | 17 | $(CC) -o $@ $(LDFLAGS) $^ $(LIBS) |
| 18 | |||
| 19 | testclient: testclient.o sock_stuff.o | ||
| 20 | $(CC) -o $@ $(LDFLAGS) $^ $(LIBS) | ||
| 21 | |||
| 22 | iproxy: iproxy.o sock_stuff.o | ||
| 23 | $(CC) -o $@ $(LDFLAGS) $^ $(LIBS) | ||
| 14 | 24 | ||
| 15 | clean: | 25 | clean: |
| 16 | rm -f *.o $(TARGET) | 26 | rm -f *.o $(TARGETS) |
| 17 | 27 | ||
| 18 | realclean: clean | 28 | realclean: clean |
| 19 | rm -f *~ | 29 | rm -f *~ |
| 20 | 30 | ||
| 21 | testclient: testclient.c sock_stuff.o | 31 | .PHONY: all clean realclean |
| 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 | |||
