d8f4e1060449c20e75c969debb0beed90c0ebb6f
[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 rsaref/pkcs11t.h rsaref/pkcs11.h rsaref/unix.h rsaref/pkcs11f.h
59
60 _pluto_adns_SOURCES = adns.c adns.h
61
62 LIBSTRONGSWANDIR=$(top_builddir)/src/libstrongswan
63 LIBFREESWANDIR=$(top_builddir)/src/libfreeswan
64
65 INCLUDES = \
66 -I${linuxdir} \
67 -I$(top_srcdir)/src/libstrongswan \
68 -I$(top_srcdir)/src/libfreeswan \
69 -I$(top_srcdir)/src/whack
70
71 AM_CFLAGS = \
72 -DIPSEC_DIR=\"${ipsecdir}\" \
73 -DIPSEC_CONFDIR=\"${confdir}\" \
74 -DIPSEC_PIDDIR=\"${piddir}\" \
75 -DSHARED_SECRETS_FILE=\"${confdir}/ipsec.secrets\" \
76 -DIPSEC_PLUGINDIR=\"${plugindir}\" \
77 -DPLUGINS=\""${pluto_plugins}\"" \
78 -DSTRONGSWAN_CONF=\"${strongswan_conf}\" \
79 -DKERNEL26_SUPPORT -DKERNEL26_HAS_KAME_DUPLICATES \
80 -DNO_CREDENTIAL_FACTORY \
81 -DPLUTO -DKLIPS -DDEBUG
82
83 pluto_LDADD = \
84 $(LIBSTRONGSWANDIR)/libstrongswan.la \
85 $(LIBFREESWANDIR)/libfreeswan.a \
86 -lgmp -lresolv -lpthread $(DLLIB)
87
88 _pluto_adns_LDADD = \
89 $(LIBFREESWANDIR)/libfreeswan.a \
90 -lresolv $(DLLIB)
91
92 dist_man_MANS = pluto.8 ipsec.secrets.5
93
94 # This compile option activates the sending of a strongSwan VID
95 if USE_VENDORID
96   AM_CFLAGS += -DVENDORID
97 endif
98
99 # This compile option activates the sending of the XAUTH VID
100 if USE_XAUTH_VID
101   AM_CFLAGS += -DXAUTH_VID
102 endif
103
104 # This compile option activates the support of the Cisco VPN client
105 if USE_CISCO_QUIRKS
106   AM_CFLAGS += -DCISCO_QUIRKS
107 endif
108
109 # This compile option activates NAT traversal with IPSec transport mode
110 if USE_NAT_TRANSPORT
111   AM_CFLAGS += -DI_KNOW_TRANSPORT_MODE_HAS_SECURITY_CONCERN_BUT_I_WANT_IT
112 endif
113
114 # This compile option activates smartcard support
115 if USE_SMARTCARD
116   AM_CFLAGS += -DSMARTCARD
117 endif
118
119 # This compile option activates the crypto self-test
120 if USE_SELF_TEST
121   AM_CFLAGS += -DSELF_TEST
122 endif
123
124 if USE_CAPABILITIES
125   pluto_LDADD += -lcap
126 endif
127
128 if USE_THREADS
129   AM_CFLAGS += -DTHREADS
130 endif