diff options
| author | 2008-10-30 19:58:49 +0100 | |
|---|---|---|
| committer | 2008-10-30 20:00:55 +0100 | |
| commit | e46784e5cfe7dbf760d9ab3c0a31c95305a86808 (patch) | |
| tree | 3369724dd04d741fe5751a8157b799382183f42d | |
| parent | 41778c3dcd0bf0ede8f526d9045a023a9188d455 (diff) | |
| download | libimobiledevice-e46784e5cfe7dbf760d9ab3c0a31c95305a86808.tar.gz libimobiledevice-e46784e5cfe7dbf760d9ab3c0a31c95305a86808.tar.bz2 | |
move dev specific tools to dev/ subdir.
update autoconf files accordingly
| -rw-r--r-- | Makefile.am | 5 | ||||
| -rw-r--r-- | configure.ac | 23 | ||||
| -rw-r--r-- | dev/afccheck.c (renamed from src/afccheck.c) | 3 | ||||
| -rw-r--r-- | dev/lckdclient.c (renamed from src/lckdclient.c) | 3 | ||||
| -rw-r--r-- | dev/main.c (renamed from src/main.c) | 3 | ||||
| -rw-r--r-- | src/Makefile.am | 16 |
6 files changed, 18 insertions, 35 deletions
diff --git a/Makefile.am b/Makefile.am index d2db548..938986f 100644 --- a/Makefile.am +++ b/Makefile.am | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | AUTOMAKE_OPTIONS = foreign | 1 | AUTOMAKE_OPTIONS = foreign |
| 2 | SUBDIRS = src include fdi | 2 | |
| 3 | SUBDIRS = src include fdi $(DEV_SUB) | ||
| 3 | 4 | ||
| 4 | pkgconfigdir = $(libdir)/pkgconfig | 5 | pkgconfigdir = $(libdir)/pkgconfig |
| 5 | pkgconfig_DATA = libiphone-1.0.pc | 6 | pkgconfig_DATA = libiphone-1.0.pc |
| @@ -8,4 +9,4 @@ doc: | |||
| 8 | doxygen doxygen.cfg | 9 | doxygen doxygen.cfg |
| 9 | 10 | ||
| 10 | indent: | 11 | indent: |
| 11 | indent -kr -ut -ts4 -l120 src/*.c src/*.h | 12 | indent -kr -ut -ts4 -l120 src/*.c src/*.h dev/*.h dev/*.c |
diff --git a/configure.ac b/configure.ac index 24eec9b..286b1d8 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -43,13 +43,20 @@ AC_ARG_ENABLE([dev-tools], | |||
| 43 | [build development helper tools (default is no)])], | 43 | [build development helper tools (default is no)])], |
| 44 | [build_dev_tools=true], | 44 | [build_dev_tools=true], |
| 45 | [build_dev_tools=false]) | 45 | [build_dev_tools=false]) |
| 46 | AM_CONDITIONAL([BUILD_DEV_TOOLS], [test x$build_dev_tools = xtrue]) | 46 | if test "$build_dev_tools" = true; then |
| 47 | DEV_SUB=dev | ||
| 48 | else | ||
| 49 | DEV_SUB= | ||
| 50 | fi | ||
| 51 | AC_SUBST([DEV_SUB]) | ||
| 47 | 52 | ||
| 48 | AC_ARG_ENABLE([debug-code], | 53 | AC_ARG_ENABLE([debug-code], |
| 49 | [AS_HELP_STRING([--enable-debug-code], | 54 | [AS_HELP_STRING([--disable-debug-code], |
| 50 | [enable debug message reporting in library (default is yes)])], | 55 | [disable debug message reporting in library (default is yes)])], |
| 51 | [debug_code=true], | 56 | [no_debug_code=false], |
| 52 | [debug_code=false]) | 57 | [no_debug_code=true]) |
| 53 | AM_CONDITIONAL([STRIP_DEBUG_CODE], [test x$debug_code = xfalse]) | 58 | if test "$no_debug_code" = true; then |
| 54 | 59 | AC_DEFINE(STRIP_DEBUG_CODE,1,[Strip debug reporting code]) | |
| 55 | AC_OUTPUT(Makefile src/Makefile include/Makefile fdi/Makefile libiphone-1.0.pc) | 60 | fi |
| 61 | |||
| 62 | AC_OUTPUT(Makefile src/Makefile include/Makefile fdi/Makefile dev/Makefile libiphone-1.0.pc) | ||
diff --git a/src/afccheck.c b/dev/afccheck.c index e772d99..028110a 100644 --- a/src/afccheck.c +++ b/dev/afccheck.c | |||
| @@ -23,14 +23,11 @@ | |||
| 23 | #include <string.h> | 23 | #include <string.h> |
| 24 | #include <glib.h> | 24 | #include <glib.h> |
| 25 | 25 | ||
| 26 | #include "usbmux.h" | ||
| 27 | #include "iphone.h" | ||
| 28 | #include <libiphone/libiphone.h> | 26 | #include <libiphone/libiphone.h> |
| 29 | 27 | ||
| 30 | #define BUFFER_SIZE 20000 | 28 | #define BUFFER_SIZE 20000 |
| 31 | #define NB_THREADS 10 | 29 | #define NB_THREADS 10 |
| 32 | 30 | ||
| 33 | int debug = 0; | ||
| 34 | 31 | ||
| 35 | typedef struct { | 32 | typedef struct { |
| 36 | iphone_afc_client_t afc; | 33 | iphone_afc_client_t afc; |
diff --git a/src/lckdclient.c b/dev/lckdclient.c index b3b9942..96bc27d 100644 --- a/src/lckdclient.c +++ b/dev/lckdclient.c | |||
| @@ -25,9 +25,6 @@ | |||
| 25 | #include <readline/readline.h> | 25 | #include <readline/readline.h> |
| 26 | #include <readline/history.h> | 26 | #include <readline/history.h> |
| 27 | 27 | ||
| 28 | |||
| 29 | #include "usbmux.h" | ||
| 30 | #include "iphone.h" | ||
| 31 | #include <libiphone/libiphone.h> | 28 | #include <libiphone/libiphone.h> |
| 32 | 29 | ||
| 33 | 30 | ||
| @@ -24,9 +24,6 @@ | |||
| 24 | #include <errno.h> | 24 | #include <errno.h> |
| 25 | #include <usb.h> | 25 | #include <usb.h> |
| 26 | 26 | ||
| 27 | #include "usbmux.h" | ||
| 28 | #include "iphone.h" | ||
| 29 | |||
| 30 | #include <libxml/parser.h> | 27 | #include <libxml/parser.h> |
| 31 | #include <libxml/tree.h> | 28 | #include <libxml/tree.h> |
| 32 | 29 | ||
diff --git a/src/Makefile.am b/src/Makefile.am index a66c05b..785aacf 100644 --- a/src/Makefile.am +++ b/src/Makefile.am | |||
| @@ -5,22 +5,6 @@ AM_LDFLAGS = $(libxml2_LIBS) $(libusb_LIBS) $(libglib2_LIBS) $(libgnutls_LIBS) $ | |||
| 5 | 5 | ||
| 6 | bin_PROGRAMS = libiphone-initconf | 6 | bin_PROGRAMS = libiphone-initconf |
| 7 | 7 | ||
| 8 | if BUILD_DEV_TOOLS | ||
| 9 | bin_PROGRAMS += iphoneclient lckd-client afccheck | ||
| 10 | endif | ||
| 11 | |||
| 12 | iphoneclient_SOURCES = main.c | ||
| 13 | iphoneclient_LDADD = libiphone.la | ||
| 14 | |||
| 15 | lckd_client_SOURCES = lckdclient.c | ||
| 16 | lckd_client_CFLAGS = $(AM_CFLAGS) | ||
| 17 | lckd_client_LDFLAGS = -lreadline $(AM_LDFLAGS) | ||
| 18 | lckd_client_LDADD = libiphone.la | ||
| 19 | |||
| 20 | afccheck_SOURCES = afccheck.c | ||
| 21 | afccheck_CFLAGS = $(AM_CFLAGS) | ||
| 22 | afccheck_LDFLAGS = $(AM_LDFLAGS) | ||
| 23 | afccheck_LDADD = libiphone.la | ||
| 24 | 8 | ||
| 25 | libiphone_initconf_SOURCES = initconf.c userpref.c lockdown.c plist.c usbmux.c iphone.c utils.c | 9 | libiphone_initconf_SOURCES = initconf.c userpref.c lockdown.c plist.c usbmux.c iphone.c utils.c |
| 26 | libiphone_initconf_CFLAGS = $(libgthread2_CFLAGS) $(AM_CFLAGS) | 10 | libiphone_initconf_CFLAGS = $(libgthread2_CFLAGS) $(AM_CFLAGS) |
