Add an option to skip building the main programs (--disable-apps)

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1622 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Rutger Hofman 16 years ago
parent 915126d9dd
commit 324c76a696

@ -1,3 +1,8 @@
2009-05-23 Rutger Hofman <rfhh>
* configure.ac, Makefile.am: add an option (--disable-apps) to build only
the library, not the application main programs
2009-05-23 Arnim Laeuger <arniml>
* src/bsdl2jtag, configure.ac, Makefile.am, src/Makefile.am,

@ -28,10 +28,14 @@ SUBDIRS = \
include/urjtag \
data \
src \
src/apps/jtag \
src/apps/bsdl2jtag \
po
if ENABLE_APPS
SUBDIRS += \
src/apps/jtag \
src/apps/bsdl2jtag
endif
DIST_SUBDIRS = \
$(SUBDIRS)

@ -295,6 +295,18 @@ AC_SUBST(WARNINGCFLAGS)
CPPFLAGS="-I\$(top_srcdir) -I\$(top_srcdir)/include $CPPFLAGS"
AC_ARG_ENABLE([apps],
[AS_HELP_STRING([--disable-apps],
[disable building the jtag and bsdl2jtag main programs])],,
[enable_apps=yes])
AS_IF([test "x$enable_apps" = xyes], [
AM_CONDITIONAL(ENABLE_APPS, true)
AC_DEFINE(ENABLE_APPS, 1, [define if you want to build the jtag and bsdl2jtag main programs])
],[
AM_CONDITIONAL(ENABLE_APPS, false)
])
# check for lex/flex
AC_PROG_LEX

Loading…
Cancel
Save