01237305bcc0f2dba88d123d9b9708c6c2c27e31
[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 nat_traversal.c nat_traversal.h \
37 ocsp.c ocsp.h \
38 packet.c packet.h \
39 pem.c pem.h \
40 pgpcert.c pgpcert.h \
41 pkcs7.c pkcs7.h \
42 plutomain.c \
43 rcv_whack.c rcv_whack.h \
44 server.c server.h \
45 smartcard.c smartcard.h \
46 spdb.c spdb.h \
47 state.c state.h \
48 timer.c timer.h \
49 vendor.c vendor.h \
50 virtual.c virtual.h \
51 xauth.c xauth.h \
52 x509.c x509.h \
53 rsaref/pkcs11t.h rsaref/pkcs11.h rsaref/unix.h rsaref/pkcs11f.h
54
55 _pluto_adns_SOURCES = adns.c adns.h
56
57 LIBSTRONGSWANDIR=$(top_builddir)/src/libstrongswan
58 LIBFREESWANDIR=$(top_builddir)/src/libfreeswan
59
60 INCLUDES = \
61 -I${linuxdir} \
62 -I$(top_srcdir)/src/libstrongswan \
63 -I$(top_srcdir)/src/libfreeswan \
64 -I$(top_srcdir)/src/whack
65
66 AM_CFLAGS = \
67 -DIPSEC_DIR=\"${ipsecdir}\" \
68 -DIPSEC_CONFDIR=\"${confdir}\" \
69 -DIPSEC_PIDDIR=\"${piddir}\" \
70 -DSHARED_SECRETS_FILE=\"${confdir}/ipsec.secrets\" \
71 -DIPSEC_PLUGINDIR=\"${plugindir}\" \
72 -DPLUGINS=\""${pluto_plugins}\"" \
73 -DSTRONGSWAN_CONF=\"${strongswan_conf}\" \
74 -DKERNEL26_SUPPORT -DKERNEL26_HAS_KAME_DUPLICATES \
75 -DPLUTO -DKLIPS -DDEBUG
76
77 pluto_LDADD = \
78 $(LIBSTRONGSWANDIR)/libstrongswan.la \
79 $(LIBFREESWANDIR)/libfreeswan.a \
80 -lresolv -lpthread $(DLLIB)
81
82 _pluto_adns_LDADD = \
83 $(LIBFREESWANDIR)/libfreeswan.a \
84 -lresolv $(DLLIB)
85
86 dist_man_MANS = pluto.8 ipsec.secrets.5
87
88 # This compile option activates the sending of a strongSwan VID
89 if USE_VENDORID
90   AM_CFLAGS += -DVENDORID
91 endif
92
93 # This compile option activates the sending of the XAUTH VID
94 if USE_XAUTH_VID
95   AM_CFLAGS += -DXAUTH_VID
96 endif
97
98 # This compile option activates the support of the Cisco VPN client
99 if USE_CISCO_QUIRKS
100   AM_CFLAGS += -DCISCO_QUIRKS
101 endif
102
103 # This compile option activates NAT traversal with IPSec transport mode
104 if USE_NAT_TRANSPORT
105   AM_CFLAGS += -DI_KNOW_TRANSPORT_MODE_HAS_SECURITY_CONCERN_BUT_I_WANT_IT
106 endif
107
108 # This compile option activates smartcard support
109 if USE_SMARTCARD
110   AM_CFLAGS += -DSMARTCARD
111 endif
112
113 # This compile option activates the integrity test of libstrongswan
114 if USE_INTEGRITY_TEST
115   AM_CFLAGS += -DINTEGRITY_TEST
116 endif
117
118 if USE_CAPABILITIES
119   pluto_LDADD += -lcap
120 endif
121
122 if USE_THREADS
123   AM_CFLAGS += -DTHREADS
124 endif