summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2008-10-30 19:58:49 +0100
committerGravatar Jonathan Beck2008-10-30 20:00:55 +0100
commite46784e5cfe7dbf760d9ab3c0a31c95305a86808 (patch)
tree3369724dd04d741fe5751a8157b799382183f42d
parent41778c3dcd0bf0ede8f526d9045a023a9188d455 (diff)
downloadlibimobiledevice-e46784e5cfe7dbf760d9ab3c0a31c95305a86808.tar.gz
libimobiledevice-e46784e5cfe7dbf760d9ab3c0a31c95305a86808.tar.bz2
move dev specific tools to dev/ subdir.
update autoconf files accordingly
-rw-r--r--Makefile.am5
-rw-r--r--configure.ac23
-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.am16
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 @@
1AUTOMAKE_OPTIONS = foreign 1AUTOMAKE_OPTIONS = foreign
2SUBDIRS = src include fdi 2
3SUBDIRS = src include fdi $(DEV_SUB)
3 4
4pkgconfigdir = $(libdir)/pkgconfig 5pkgconfigdir = $(libdir)/pkgconfig
5pkgconfig_DATA = libiphone-1.0.pc 6pkgconfig_DATA = libiphone-1.0.pc
@@ -8,4 +9,4 @@ doc:
8 doxygen doxygen.cfg 9 doxygen doxygen.cfg
9 10
10indent: 11indent:
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])
46AM_CONDITIONAL([BUILD_DEV_TOOLS], [test x$build_dev_tools = xtrue]) 46if test "$build_dev_tools" = true; then
47 DEV_SUB=dev
48else
49 DEV_SUB=
50fi
51AC_SUBST([DEV_SUB])
47 52
48AC_ARG_ENABLE([debug-code], 53AC_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])
53AM_CONDITIONAL([STRIP_DEBUG_CODE], [test x$debug_code = xfalse]) 58if test "$no_debug_code" = true; then
54 59 AC_DEFINE(STRIP_DEBUG_CODE,1,[Strip debug reporting code])
55AC_OUTPUT(Makefile src/Makefile include/Makefile fdi/Makefile libiphone-1.0.pc) 60fi
61
62AC_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
33int debug = 0;
34 31
35typedef struct { 32typedef 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
diff --git a/src/main.c b/dev/main.c
index 055cb4b..2dbfb4a 100644
--- a/src/main.c
+++ b/dev/main.c
@@ -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
6bin_PROGRAMS = libiphone-initconf 6bin_PROGRAMS = libiphone-initconf
7 7
8if BUILD_DEV_TOOLS
9 bin_PROGRAMS += iphoneclient lckd-client afccheck
10endif
11
12iphoneclient_SOURCES = main.c
13iphoneclient_LDADD = libiphone.la
14
15lckd_client_SOURCES = lckdclient.c
16lckd_client_CFLAGS = $(AM_CFLAGS)
17lckd_client_LDFLAGS = -lreadline $(AM_LDFLAGS)
18lckd_client_LDADD = libiphone.la
19
20afccheck_SOURCES = afccheck.c
21afccheck_CFLAGS = $(AM_CFLAGS)
22afccheck_LDFLAGS = $(AM_LDFLAGS)
23afccheck_LDADD = libiphone.la
24 8
25libiphone_initconf_SOURCES = initconf.c userpref.c lockdown.c plist.c usbmux.c iphone.c utils.c 9libiphone_initconf_SOURCES = initconf.c userpref.c lockdown.c plist.c usbmux.c iphone.c utils.c
26libiphone_initconf_CFLAGS = $(libgthread2_CFLAGS) $(AM_CFLAGS) 10libiphone_initconf_CFLAGS = $(libgthread2_CFLAGS) $(AM_CFLAGS)