default plugins for pluto
[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 dsa.c dsa.h \
22 elgamal.c elgamal.h \
23 fetch.c fetch.h \
24 foodgroups.c foodgroups.h \
25 gcryptfix.c gcryptfix.h \
26 id.c id.h \
27 ike_alg.c ike_alg.h \
28 ipsec_doi.c ipsec_doi.h \
29 kameipsec.h \
30 kernel.c kernel.h \
31 kernel_alg.c kernel_alg.h \
32 kernel_netlink.c kernel_netlink.h \
33 kernel_noklips.c kernel_noklips.h \
34 kernel_pfkey.c kernel_pfkey.h \
35 keys.c keys.h \
36 lex.c lex.h \
37 log.c log.h \
38 md2.c md2.h \
39 md5.c md5.h \
40 modecfg.c modecfg.h \
41 mp_defs.c mp_defs.h \
42 nat_traversal.c nat_traversal.h \
43 ocsp.c ocsp.h \
44 packet.c packet.h \
45 pem.c pem.h \
46 pgp.c pgp.h \
47 pkcs1.c pkcs1.h \
48 pkcs7.c pkcs7.h \
49 plutomain.c \
50 primegen.c smallprime.c \
51 rcv_whack.c rcv_whack.h \
52 server.c server.h \
53 sha1.c sha1.h \
54 smartcard.c smartcard.h \
55 spdb.c spdb.h \
56 state.c state.h \
57 timer.c timer.h \
58 vendor.c vendor.h \
59 virtual.c virtual.h \
60 xauth.c xauth.h \
61 x509.c x509.h \
62 alg/ike_alg_aes.c alg/ike_alg_blowfish.c alg/ike_alg_twofish.c \
63 alg/ike_alg_serpent.c alg/ike_alg_sha2.c alg/ike_alginit.c \
64 rsaref/pkcs11t.h rsaref/pkcs11.h rsaref/unix.h rsaref/pkcs11f.h
65
66 _pluto_adns_SOURCES = adns.c adns.h
67
68 LIBSTRONGSWANDIR=$(top_builddir)/src/libstrongswan
69 LIBFREESWANDIR=$(top_builddir)/src/libfreeswan
70 LIBCRYPTODIR=$(top_builddir)/src/libcrypto
71
72
73 INCLUDES = \
74 -I${linuxdir} \
75 -I$(top_srcdir)/src/libstrongswan \
76 -I$(top_srcdir)/src/libfreeswan \
77 -I$(top_srcdir)/src/libcrypto \
78 -I$(top_srcdir)/src/whack
79
80 AM_CFLAGS = \
81 -DIPSEC_DIR=\"${ipsecdir}\" \
82 -DIPSEC_CONFDIR=\"${confdir}\" \
83 -DIPSEC_PIDDIR=\"${piddir}\" \
84 -DSHARED_SECRETS_FILE=\"${confdir}/ipsec.secrets\" \
85 -DIPSEC_PLUGINDIR=\"${plugindir}\" \
86 -DPLUGINS=\""${pluto_plugins}\"" \
87 -DSTRONGSWAN_CONF=\"${strongswan_conf}\" \
88 -DKERNEL26_SUPPORT -DKERNEL26_HAS_KAME_DUPLICATES \
89 -DPLUTO -DKLIPS -DDEBUG
90
91 pluto_LDADD = \
92 $(LIBSTRONGSWANDIR)/libstrongswan.la \
93 $(LIBFREESWANDIR)/libfreeswan.a \
94 $(LIBCRYPTODIR)/libcrypto.a \
95 -lgmp -lresolv -lpthread -ldl
96
97 _pluto_adns_LDADD = \
98 $(LIBFREESWANDIR)/libfreeswan.a \
99 -lresolv -ldl
100
101 dist_man_MANS = pluto.8 ipsec.secrets.5
102
103 # This compile option activates the sending of a strongSwan VID
104 if USE_VENDORID
105   AM_CFLAGS += -DVENDORID
106 endif
107
108 # This compile option activates the sending of the XAUTH VID
109 if USE_XAUTH_VID
110   AM_CFLAGS += -DXAUTH_VID
111 endif
112
113 # This compile option activates the support of the Cisco VPN client
114 if USE_CISCO_QUIRKS
115   AM_CFLAGS += -DCISCO_QUIRKS
116 endif
117
118 # This compile option activates NAT traversal with IPSec transport mode
119 if USE_NAT_TRANSPORT
120   AM_CFLAGS += -DI_KNOW_TRANSPORT_MODE_HAS_SECURITY_CONCERN_BUT_I_WANT_IT
121 endif
122
123 # This compile option activates smartcard support
124 if USE_SMARTCARD
125   AM_CFLAGS += -DSMARTCARD
126 endif
127
128 if USE_CAPABILITIES
129   pluto_LDADD += -lcap
130 endif
131
132 if USE_THREADS
133   AM_CFLAGS += -DTHREADS
134 endif