summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2008-10-25 16:50:28 +0200
committerGravatar Jonathan Beck2008-10-25 16:52:23 +0200
commit113b2250b7d6f075f6b2c3aacae7500ab9f8fb03 (patch)
tree86f07cb376d224bc72d482ff162c527a77474b3d
parent0b2cfd2c7c6211ff5902e48720c34067f238ce90 (diff)
downloadlibimobiledevice-113b2250b7d6f075f6b2c3aacae7500ab9f8fb03.tar.gz
libimobiledevice-113b2250b7d6f075f6b2c3aacae7500ab9f8fb03.tar.bz2
add configure options to control building of development tools
-rw-r--r--configure.ac7
-rw-r--r--src/Makefile.am20
2 files changed, 19 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac
index 7fc417c..2c08d10 100644
--- a/configure.ac
+++ b/configure.ac
@@ -38,4 +38,11 @@ AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([strcasecmp strdup strerror strndup])
+AC_ARG_ENABLE([dev-tools],
+ [AS_HELP_STRING([--enable-dev-tools],
+ [build development helper tools (default is no)])],
+ [build_dev_tools=true],
+ [build_dev_tools=false])
+AM_CONDITIONAL(BUILD_DEV_TOOLS, test x$build_dev_tools = xtrue)
+
AC_OUTPUT(Makefile src/Makefile include/Makefile fdi/Makefile libiphone-1.0.pc)
diff --git a/src/Makefile.am b/src/Makefile.am
index 6c2b275..a8f7cbf 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -3,18 +3,22 @@ INCLUDES = -I$(top_srcdir)/include
AM_CFLAGS = $(libxml2_CFLAGS) $(libusb_CFLAGS) $(libglib2_CFLAGS) $(libgnutls_CFLAGS) $(libtasn1_CFLAGS) -g
AM_LDFLAGS = $(libxml2_LIBS) $(libusb_LIBS) $(libglib2_LIBS) $(libgnutls_LIBS) $(libtasn1_LIBS)
-bin_PROGRAMS = iphoneclient libiphone-initconf lckd-client
-iphoneclient_SOURCES = main.c
-iphoneclient_LDADD = libiphone.la
+bin_PROGRAMS = libiphone-initconf
+
+if BUILD_DEV_TOOLS
+ bin_PROGRAMS = iphoneclient libiphone-initconf lckd-client
+ iphoneclient_SOURCES = main.c
+ iphoneclient_LDADD = libiphone.la
+
+ lckd_client_SOURCES = lckdclient.c
+ lckd_client_CFLAGS = $(AM_CFLAGS)
+ lckd_client_LDFLAGS = -lreadline $(AM_LDFLAGS)
+ lckd_client_LDADD = libiphone.la
+endif
libiphone_initconf_SOURCES = initconf.c userpref.c lockdown.c plist.c usbmux.c iphone.c utils.c
libiphone_initconf_CFLAGS = $(libgthread2_CFLAGS) $(AM_CFLAGS)
libiphone_initconf_LDFLAGS = $(libgthread2_LIBS) $(AM_LDFLAGS)
-lckd_client_SOURCES = lckdclient.c
-lckd_client_CFLAGS = $(AM_CFLAGS)
-lckd_client_LDFLAGS = -lreadline $(AM_LDFLAGS)
-lckd_client_LDADD = libiphone.la
-
lib_LTLIBRARIES = libiphone.la
libiphone_la_SOURCES = usbmux.c iphone.c plist.c lockdown.c AFC.c userpref.c utils.c