Skip to content

Commit

Permalink
move dev specific tools to dev/ subdir.
Browse files Browse the repository at this point in the history
update autoconf files accordingly
  • Loading branch information
JonathanBeck committed Oct 30, 2008
1 parent 41778c3 commit e46784e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 35 deletions.
5 changes: 3 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
AUTOMAKE_OPTIONS = foreign
SUBDIRS = src include fdi

SUBDIRS = src include fdi $(DEV_SUB)

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libiphone-1.0.pc
Expand All @@ -8,4 +9,4 @@ doc:
doxygen doxygen.cfg

indent:
indent -kr -ut -ts4 -l120 src/*.c src/*.h
indent -kr -ut -ts4 -l120 src/*.c src/*.h dev/*.h dev/*.c
23 changes: 15 additions & 8 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,20 @@ AC_ARG_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])
if test "$build_dev_tools" = true; then
DEV_SUB=dev
else
DEV_SUB=
fi
AC_SUBST([DEV_SUB])

AC_ARG_ENABLE([debug-code],
[AS_HELP_STRING([--enable-debug-code],
[enable debug message reporting in library (default is yes)])],
[debug_code=true],
[debug_code=false])
AM_CONDITIONAL([STRIP_DEBUG_CODE], [test x$debug_code = xfalse])

AC_OUTPUT(Makefile src/Makefile include/Makefile fdi/Makefile libiphone-1.0.pc)
[AS_HELP_STRING([--disable-debug-code],
[disable debug message reporting in library (default is yes)])],
[no_debug_code=false],
[no_debug_code=true])
if test "$no_debug_code" = true; then
AC_DEFINE(STRIP_DEBUG_CODE,1,[Strip debug reporting code])
fi

AC_OUTPUT(Makefile src/Makefile include/Makefile fdi/Makefile dev/Makefile libiphone-1.0.pc)
3 changes: 0 additions & 3 deletions src/afccheck.c → dev/afccheck.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,11 @@
#include <string.h>
#include <glib.h>

#include "usbmux.h"
#include "iphone.h"
#include <libiphone/libiphone.h>

#define BUFFER_SIZE 20000
#define NB_THREADS 10

int debug = 0;

typedef struct {
iphone_afc_client_t afc;
Expand Down
3 changes: 0 additions & 3 deletions src/lckdclient.c → dev/lckdclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
#include <readline/readline.h>
#include <readline/history.h>


#include "usbmux.h"
#include "iphone.h"
#include <libiphone/libiphone.h>


Expand Down
3 changes: 0 additions & 3 deletions src/main.c → dev/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
#include <errno.h>
#include <usb.h>

#include "usbmux.h"
#include "iphone.h"

#include <libxml/parser.h>
#include <libxml/tree.h>

Expand Down
16 changes: 0 additions & 16 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,6 @@ AM_LDFLAGS = $(libxml2_LIBS) $(libusb_LIBS) $(libglib2_LIBS) $(libgnutls_LIBS) $

bin_PROGRAMS = libiphone-initconf

if BUILD_DEV_TOOLS
bin_PROGRAMS += iphoneclient lckd-client afccheck
endif

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

afccheck_SOURCES = afccheck.c
afccheck_CFLAGS = $(AM_CFLAGS)
afccheck_LDFLAGS = $(AM_LDFLAGS)
afccheck_LDADD = libiphone.la

libiphone_initconf_SOURCES = initconf.c userpref.c lockdown.c plist.c usbmux.c iphone.c utils.c
libiphone_initconf_CFLAGS = $(libgthread2_CFLAGS) $(AM_CFLAGS)
Expand Down

0 comments on commit e46784e

Please sign in to comment.