use the Diffie-Hellman functionality of libstrongswan
[strongswan.git] / src / pluto / Makefile.am
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...
4
5 ipsec_PROGRAMS = pluto _pluto_adns
6
7 pluto_SOURCES = \
8 ac.c ac.h \
9 alg_info.c alg_info.h \
10 ca.c ca.h \
11 certs.c certs.h \
12 connections.c connections.h \
13 constants.c constants.h \
14 cookie.c cookie.h \
15 crl.c crl.h \
16 crypto.c crypto.h \
17 db_ops.c db_ops.h \
18 defs.c defs.h \
19 demux.c demux.h \
20 dnskey.c dnskey.h \
21 fetch.c fetch.h \
22 foodgroups.c foodgroups.h \
23 id.c id.h \
24 ike_alg.c ike_alg.h \
25 ipsec_doi.c ipsec_doi.h \
26 kameipsec.h \
27 kernel.c kernel.h \
28 kernel_alg.c kernel_alg.h \
29 kernel_netlink.c kernel_netlink.h \
30 kernel_noklips.c kernel_noklips.h \
31 kernel_pfkey.c kernel_pfkey.h \
32 keys.c keys.h \
33 lex.c lex.h \
34 log.c log.h \
35 modecfg.c modecfg.h \
36 mp_defs.c mp_defs.h \
37 nat_traversal.c nat_traversal.h \
38 ocsp.c ocsp.h \
39 packet.c packet.h \
40 pem.c pem.h \
41 pgp.c pgp.h \
42 pkcs1.c pkcs1.h \
43 pkcs7.c pkcs7.h \
44 plutomain.c \
45 rcv_whack.c rcv_whack.h \
46 server.c server.h \
47 smartcard.c smartcard.h \
48 spdb.c spdb.h \
49 state.c state.h \
50 timer.c timer.h \
51 vendor.c vendor.h \
52 virtual.c virtual.h \
53 xauth.c xauth.h \
54 x509.c x509.h \
55 alg/ike_alg_3des.c alg/ike_alg_aes.c \
56 alg/ike_alg_blowfish.c alg/ike_alg_twofish.c alg/ike_alg_serpent.c\
57 alg/ike_alg_md5_sha1.c alg/ike_alg_sha2.c \
58 alg/ike_alg_dh_groups.c \
59 rsaref/pkcs11t.h rsaref/pkcs11.h rsaref/unix.h rsaref/pkcs11f.h
60
61 _pluto_adns_SOURCES = adns.c adns.h
62
63 LIBSTRONGSWANDIR=$(top_builddir)/src/libstrongswan
64 LIBFREESWANDIR=$(top_builddir)/src/libfreeswan
65
66 INCLUDES = \
67 -I${linuxdir} \
68 -I$(top_srcdir)/src/libstrongswan \
69 -I$(top_srcdir)/src/libfreeswan \
70 -I$(top_srcdir)/src/whack
71
72 AM_CFLAGS = \
73 -DIPSEC_DIR=\"${ipsecdir}\" \
74 -DIPSEC_CONFDIR=\"${confdir}\" \
75 -DIPSEC_PIDDIR=\"${piddir}\" \
76 -DSHARED_SECRETS_FILE=\"${confdir}/ipsec.secrets\" \
77 -DIPSEC_PLUGINDIR=\"${plugindir}\" \
78 -DPLUGINS=\""${pluto_plugins}\"" \
79 -DSTRONGSWAN_CONF=\"${strongswan_conf}\" \
80 -DKERNEL26_SUPPORT -DKERNEL26_HAS_KAME_DUPLICATES \
81 -DNO_CREDENTIAL_FACTORY \
82 -DPLUTO -DKLIPS -DDEBUG
83
84 pluto_LDADD = \
85 $(LIBSTRONGSWANDIR)/libstrongswan.la \
86 $(LIBFREESWANDIR)/libfreeswan.a \
87 -lgmp -lresolv -lpthread $(DLLIB)
88
89 _pluto_adns_LDADD = \
90 $(LIBFREESWANDIR)/libfreeswan.a \
91 -lresolv $(DLLIB)
92
93 dist_man_MANS = pluto.8 ipsec.secrets.5
94
95 # This compile option activates the sending of a strongSwan VID
96 if USE_VENDORID
97   AM_CFLAGS += -DVENDORID
98 endif
99
100 # This compile option activates the sending of the XAUTH VID
101 if USE_XAUTH_VID
102   AM_CFLAGS += -DXAUTH_VID
103 endif
104
105 # This compile option activates the support of the Cisco VPN client
106 if USE_CISCO_QUIRKS
107   AM_CFLAGS += -DCISCO_QUIRKS
108 endif
109
110 # This compile option activates NAT traversal with IPSec transport mode
111 if USE_NAT_TRANSPORT
112   AM_CFLAGS += -DI_KNOW_TRANSPORT_MODE_HAS_SECURITY_CONCERN_BUT_I_WANT_IT
113 endif
114
115 # This compile option activates smartcard support
116 if USE_SMARTCARD
117   AM_CFLAGS += -DSMARTCARD
118 endif
119
120 # This compile option activates the crypto self-test
121 if USE_SELF_TEST
122   AM_CFLAGS += -DSELF_TEST
123 endif
124
125 if USE_CAPABILITIES
126   pluto_LDADD += -lcap
127 endif
128
129 if USE_THREADS
130   AM_CFLAGS += -DTHREADS
131 endif