1 # Makefile.am was ported from the old Makefile the most
2 # painless way. Only the most important options are included,
3 # further work may be necessary here...
5 ipsec_PROGRAMS = pluto _pluto_adns
9 alg_info.c alg_info.h \
12 connections.c connections.h \
13 constants.c constants.h \
22 foodgroups.c foodgroups.h \
24 ipsec_doi.c ipsec_doi.h \
27 kernel_alg.c kernel_alg.h \
28 kernel_netlink.c kernel_netlink.h \
29 kernel_noklips.c kernel_noklips.h \
30 kernel_pfkey.c kernel_pfkey.h \
36 nat_traversal.c nat_traversal.h \
42 rcv_whack.c rcv_whack.h \
44 smartcard.c smartcard.h \
50 whack_attribute.c whack_attribute.h \
51 xauth/xauth_manager.c xauth/xauth_manager.h \
52 xauth/xauth_provider.h xauth/xauth_verifier.h \
55 rsaref/pkcs11t.h rsaref/pkcs11.h rsaref/unix.h rsaref/pkcs11f.h
57 _pluto_adns_SOURCES = adns.c adns.h
59 plutomain.o : $(top_builddir)/config.status
61 LIBSTRONGSWANDIR=$(top_builddir)/src/libstrongswan
62 LIBFREESWANDIR=$(top_builddir)/src/libfreeswan
63 LIBHYDRADIR=$(top_builddir)/src/libhydra
67 -I$(top_srcdir)/src/libstrongswan \
68 -I$(top_srcdir)/src/libfreeswan \
69 -I$(top_srcdir)/src/libhydra \
70 -I$(top_srcdir)/src/whack
72 AM_CFLAGS = -rdynamic \
73 -DIPSEC_DIR=\"${ipsecdir}\" \
74 -DIPSEC_CONFDIR=\"${sysconfdir}\" \
75 -DIPSEC_PIDDIR=\"${piddir}\" \
76 -DSHARED_SECRETS_FILE=\"${sysconfdir}/ipsec.secrets\" \
77 -DPLUGINS=\""${pluto_plugins} ${libhydra_plugins}\"" \
78 -DPKCS11_DEFAULT_LIB=\"${default_pkcs11}\" \
79 -DKERNEL26_SUPPORT -DKERNEL26_HAS_KAME_DUPLICATES \
80 -DPLUTO -DKLIPS -DDEBUG
83 $(LIBSTRONGSWANDIR)/libstrongswan.la \
84 $(LIBFREESWANDIR)/libfreeswan.a \
85 $(LIBHYDRADIR)/libhydra.la \
86 -lresolv $(PTHREADLIB) $(DLLIB)
89 $(LIBFREESWANDIR)/libfreeswan.a \
92 CLEANFILES = ipsec.secrets.5
93 dist_man_MANS = pluto.8 ipsec.secrets.5
94 EXTRA_DIST = ipsec.secrets.5.in
99 # This compile option activates the sending of a strongSwan VID
101 AM_CFLAGS += -DVENDORID
104 # This compile option activates the sending of the XAUTH VID
106 AM_CFLAGS += -DXAUTH_VID
109 # This compile option activates the support of the Cisco VPN client
111 AM_CFLAGS += -DCISCO_QUIRKS
114 # This compile option activates NAT traversal with IPSec transport mode
116 AM_CFLAGS += -DI_KNOW_TRANSPORT_MODE_HAS_SECURITY_CONCERN_BUT_I_WANT_IT
119 # This compile option activates smartcard support
121 AM_CFLAGS += -DSMARTCARD
129 AM_CFLAGS += -DTHREADS
132 # build optional plugins
133 ########################
138 SUBDIRS += plugins/xauth
141 ipsec.secrets.5 : ipsec.secrets.5.in
143 -e "s:@IPSEC_VERSION@:$(PACKAGE_VERSION):" \