diff options
Diffstat (limited to 'src/pluto/Makefile.am')
-rw-r--r-- | src/pluto/Makefile.am | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/src/pluto/Makefile.am b/src/pluto/Makefile.am index 934b11a46..3fd0e039c 100644 --- a/src/pluto/Makefile.am +++ b/src/pluto/Makefile.am @@ -2,7 +2,11 @@ # painless way. Only the most important options are included, # further work may be necessary here... -ipsec_PROGRAMS = pluto _pluto_adns +ipsec_PROGRAMS = pluto + +if USE_ADNS +ipsec_PROGRAMS += _pluto_adns +endif pluto_SOURCES = \ ac.c ac.h \ @@ -17,7 +21,6 @@ crypto.c crypto.h \ db_ops.c db_ops.h \ defs.c defs.h \ demux.c demux.h \ -dnskey.c dnskey.h \ event_queue.c event_queue.h \ fetch.c fetch.h \ foodgroups.c foodgroups.h \ @@ -36,6 +39,7 @@ nat_traversal.c nat_traversal.h \ ocsp.c ocsp.h \ packet.c packet.h \ pkcs7.c pkcs7.h \ +plugin_list.c plugin_list.h \ pluto.c pluto.h \ plutomain.c \ rcv_whack.c rcv_whack.h \ @@ -53,7 +57,13 @@ x509.c x509.h \ builder.c builder.h \ rsaref/pkcs11t.h rsaref/pkcs11.h rsaref/unix.h rsaref/pkcs11f.h -_pluto_adns_SOURCES = adns.c adns.h +if USE_ADNS +pluto_SOURCES += \ +dnskey.c dnskey.h + +_pluto_adns_SOURCES = \ +adns.c adns.h +endif plutomain.o : $(top_builddir)/config.status @@ -75,7 +85,7 @@ AM_CFLAGS = -rdynamic \ -DSHARED_SECRETS_FILE=\"${sysconfdir}/ipsec.secrets\" \ -DPLUGINS=\""${pluto_plugins}\"" \ -DPKCS11_DEFAULT_LIB=\"${default_pkcs11}\" \ --DKERNEL26_SUPPORT -DKERNEL26_HAS_KAME_DUPLICATES \ +-DKERNEL26_HAS_KAME_DUPLICATES \ -DPLUTO -DDEBUG pluto_LDADD = \ @@ -84,12 +94,16 @@ $(LIBFREESWANDIR)/libfreeswan.a \ $(LIBHYDRADIR)/libhydra.la \ -lresolv $(PTHREADLIB) $(DLLIB) +if USE_ADNS _pluto_adns_LDADD = \ $(LIBFREESWANDIR)/libfreeswan.a \ -lresolv $(DLLIB) +endif dist_man_MANS = pluto.8 +EXTRA_DIST = Android.mk + # compile options ################# @@ -126,6 +140,10 @@ if USE_THREADS AM_CFLAGS += -DTHREADS endif +if USE_ADNS + AM_CFLAGS += -DADNS +endif + # build optional plugins ######################## |