1ef3cf79e970acc464fba8789e33e941d6a55114
[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 ike_alg.c ike_alg.h \
24 ipsec_doi.c ipsec_doi.h \
25 kameipsec.h \
26 kernel.c kernel.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 \
31 keys.c keys.h \
32 lex.c lex.h \
33 log.c log.h \
34 myid.c myid.h \
35 modecfg.c modecfg.h \
36 nat_traversal.c nat_traversal.h \
37 ocsp.c ocsp.h \
38 packet.c packet.h \
39 pkcs7.c pkcs7.h \
40 plutomain.c \
41 rcv_whack.c rcv_whack.h \
42 server.c server.h \
43 smartcard.c smartcard.h \
44 spdb.c spdb.h \
45 state.c state.h \
46 timer.c timer.h \
47 vendor.c vendor.h \
48 virtual.c virtual.h \
49 whack_attribute.c whack_attribute.h \
50 xauth.c xauth.h \
51 x509.c x509.h \
52 builder.c builder.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 LIBHYDRADIR=$(top_builddir)/src/libhydra
60
61 INCLUDES = \
62 -I${linux_headers} \
63 -I$(top_srcdir)/src/libstrongswan \
64 -I$(top_srcdir)/src/libfreeswan \
65 -I$(top_srcdir)/src/libhydra \
66 -I$(top_srcdir)/src/whack
67
68 AM_CFLAGS = \
69 -DIPSEC_DIR=\"${ipsecdir}\" \
70 -DIPSEC_CONFDIR=\"${sysconfdir}\" \
71 -DIPSEC_PIDDIR=\"${piddir}\" \
72 -DSHARED_SECRETS_FILE=\"${sysconfdir}/ipsec.secrets\" \
73 -DPLUGINS=\""${pluto_plugins}\"" \
74 -DPKCS11_DEFAULT_LIB=\"${default_pkcs11}\" \
75 -DKERNEL26_SUPPORT -DKERNEL26_HAS_KAME_DUPLICATES \
76 -DPLUTO -DKLIPS -DDEBUG
77
78 pluto_LDADD = \
79 $(LIBSTRONGSWANDIR)/libstrongswan.la \
80 $(LIBFREESWANDIR)/libfreeswan.a \
81 $(LIBHYDRADIR)/libhydra.la \
82 -lresolv $(PTHREADLIB) $(DLLIB)
83
84 _pluto_adns_LDADD = \
85 $(LIBFREESWANDIR)/libfreeswan.a \
86 -lresolv $(DLLIB)
87
88 dist_man_MANS = pluto.8 ipsec.secrets.5
89
90 # This compile option activates the sending of a strongSwan VID
91 if USE_VENDORID
92   AM_CFLAGS += -DVENDORID
93 endif
94
95 # This compile option activates the sending of the XAUTH VID
96 if USE_XAUTH_VID
97   AM_CFLAGS += -DXAUTH_VID
98 endif
99
100 # This compile option activates the support of the Cisco VPN client
101 if USE_CISCO_QUIRKS
102   AM_CFLAGS += -DCISCO_QUIRKS
103 endif
104
105 # This compile option activates NAT traversal with IPSec transport mode
106 if USE_NAT_TRANSPORT
107   AM_CFLAGS += -DI_KNOW_TRANSPORT_MODE_HAS_SECURITY_CONCERN_BUT_I_WANT_IT
108 endif
109
110 # This compile option activates smartcard support
111 if USE_SMARTCARD
112   AM_CFLAGS += -DSMARTCARD
113 endif
114
115 if USE_CAPABILITIES
116   pluto_LDADD += -lcap
117 endif
118
119 if USE_THREADS
120   AM_CFLAGS += -DTHREADS
121 endif