]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- --with-libunbound-only build option, only builds the library and
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 19 Jun 2012 12:20:11 +0000 (12:20 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 19 Jun 2012 12:20:11 +0000 (12:20 +0000)
  not the daemon and other tools.

git-svn-id: file:///svn/unbound/trunk@2689 be551aaa-1e26-0410-a405-d3ace91eadb9

Makefile.in
configure
configure.ac
doc/Changelog

index af9fba8065638f1f9b4ce8f98fc9cd66e6498d04..2e682c1dffbf2804874e8beaa9afac4abdc3ad28 100644 (file)
@@ -30,6 +30,7 @@ PYTHONMOD_INSTALL=@PYTHONMOD_INSTALL@
 PYTHONMOD_UNINSTALL=@PYTHONMOD_UNINSTALL@
 PYUNBOUND_INSTALL=@PYUNBOUND_INSTALL@
 PYUNBOUND_UNINSTALL=@PYUNBOUND_UNINSTALL@
+ALLTARGET=@ALLTARGET@
 
 # _unbound.la if pyunbound enabled.
 PYUNBOUND_TARGET=@PYUNBOUND_TARGET@
@@ -227,9 +228,11 @@ COMPILE=$(LIBTOOL) --tag=CC --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS)
 LINK=$(LIBTOOL) --tag=CC --mode=link $(CC) $(staticexe) $(RUNTIME_PATH) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
 LINK_LIB=$(LIBTOOL) --tag=CC --mode=link $(CC) $(RUNTIME_PATH) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(staticexe) -version-info @LIBUNBOUND_CURRENT@:@LIBUNBOUND_REVISION@:@LIBUNBOUND_AGE@ -no-undefined
 
-.PHONY:        clean realclean doc lint all install uninstall tests test strip lib longtest longcheck check
+.PHONY:        clean realclean doc lint all install uninstall tests test strip lib longtest longcheck check alltargets
 
-all:   $(COMMON_OBJ) unbound$(EXEEXT) unbound-checkconf$(EXEEXT) lib unbound-host$(EXEEXT) unbound-control$(EXEEXT) unbound-anchor$(EXEEXT) unbound-control-setup $(WINAPPS) $(PYUNBOUND_TARGET)
+all:   $(COMMON_OBJ) $(ALLTARGET)
+
+alltargets:    unbound$(EXEEXT) unbound-checkconf$(EXEEXT) lib unbound-host$(EXEEXT) unbound-control$(EXEEXT) unbound-anchor$(EXEEXT) unbound-control-setup $(WINAPPS) $(PYUNBOUND_TARGET)
 
 # compat with BSD make, register suffix, and an implicit rule to actualise it.
 .SUFFIXES: .lo
index a40f76bd3f08deb4ad28ddcb9e85093fdcb52992..fb8e7959e76271f3cfdf7afd260eac581fe587a2 100755 (executable)
--- a/configure
+++ b/configure
@@ -613,6 +613,7 @@ ac_includes_default="\
 
 ac_subst_vars='LTLIBOBJS
 ldnsdir
+ALLTARGET
 SOURCEFILE
 SOURCEDETERMINE
 UBSYMS
@@ -798,6 +799,7 @@ with_libexpat
 enable_static_exe
 enable_lock_checks
 enable_allsymbols
+with_libunbound_only
 with_ldns
 '
       ac_precious_vars='build_alias
@@ -1498,6 +1500,7 @@ Optional Packages:
                           an explicit path). Slower, but allows use of large
                           outgoing port ranges.
   --with-libexpat=path    specify explicit path for libexpat.
+  --with-libunbound-only  do not build daemon and tool programs
   --with-ldns=PATH        specify prefix of path of ldns library to use
 
 Some influential environment variables:
@@ -17778,6 +17781,20 @@ rm -f conftest.lo
 
 
 
+# see if we want to build the library or everything
+ALLTARGET="alltargets"
+
+# Check whether --with-libunbound-only was given.
+if test "${with_libunbound_only+set}" = set; then :
+  withval=$with_libunbound_only;
+       if test "$withval" = "yes"; then
+               ALLTARGET="lib"
+       fi
+
+fi
+
+
+
 # check this after all other compilation checks, since the linking of the lib
 # may break checks after this.
 
index 8552a1cfa62fce890f0f247f533c8de048ba1e13..3bb273b19eba43752269a93930b2c0b66bc5fd96 100644 (file)
@@ -970,6 +970,17 @@ rm -f conftest.lo
 AC_SUBST(SOURCEDETERMINE)
 AC_SUBST(SOURCEFILE)
 
+# see if we want to build the library or everything
+ALLTARGET="alltargets"
+AC_ARG_WITH(libunbound-only, AC_HELP_STRING([--with-libunbound-only],
+       [do not build daemon and tool programs]),
+       [
+       if test "$withval" = "yes"; then
+               ALLTARGET="lib"
+       fi
+])
+AC_SUBST(ALLTARGET)
+
 # check this after all other compilation checks, since the linking of the lib
 # may break checks after this.
 AC_ARG_WITH(ldns, AC_HELP_STRING([--with-ldns=PATH], 
index 71409d0b70871a58784a262842494e5cecc28c69..7dd354e6da8e495abbe1dfcc4734df70cd89e694 100644 (file)
@@ -1,3 +1,7 @@
+19 June 2012: Wouter
+       - --with-libunbound-only build option, only builds the library and
+         not the daemon and other tools.
+
 18 June 2012: Wouter
        - code review.