Users of PLUGINS depend on config.status, rebuilding them if plugin configuration...
[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 plutomain.o :   $(top_srcdir)/config.status
58
59 LIBSTRONGSWANDIR=$(top_builddir)/src/libstrongswan
60 LIBFREESWANDIR=$(top_builddir)/src/libfreeswan
61 LIBHYDRADIR=$(top_builddir)/src/libhydra
62
63 INCLUDES = \
64 -I${linux_headers} \
65 -I$(top_srcdir)/src/libstrongswan \
66 -I$(top_srcdir)/src/libfreeswan \
67 -I$(top_srcdir)/src/libhydra \
68 -I$(top_srcdir)/src/whack
69
70 AM_CFLAGS = \
71 -DIPSEC_DIR=\"${ipsecdir}\" \
72 -DIPSEC_CONFDIR=\"${sysconfdir}\" \
73 -DIPSEC_PIDDIR=\"${piddir}\" \
74 -DSHARED_SECRETS_FILE=\"${sysconfdir}/ipsec.secrets\" \
75 -DPLUGINS=\""${pluto_plugins}\"" \
76 -DPKCS11_DEFAULT_LIB=\"${default_pkcs11}\" \
77 -DKERNEL26_SUPPORT -DKERNEL26_HAS_KAME_DUPLICATES \
78 -DPLUTO -DKLIPS -DDEBUG
79
80 pluto_LDADD = \
81 $(LIBSTRONGSWANDIR)/libstrongswan.la \
82 $(LIBFREESWANDIR)/libfreeswan.a \
83 $(LIBHYDRADIR)/libhydra.la \
84 -lresolv $(PTHREADLIB) $(DLLIB)
85
86 _pluto_adns_LDADD = \
87 $(LIBFREESWANDIR)/libfreeswan.a \
88 -lresolv $(DLLIB)
89
90 dist_man_MANS = pluto.8 ipsec.secrets.5
91
92 # This compile option activates the sending of a strongSwan VID
93 if USE_VENDORID
94   AM_CFLAGS += -DVENDORID
95 endif
96
97 # This compile option activates the sending of the XAUTH VID
98 if USE_XAUTH_VID
99   AM_CFLAGS += -DXAUTH_VID
100 endif
101
102 # This compile option activates the support of the Cisco VPN client
103 if USE_CISCO_QUIRKS
104   AM_CFLAGS += -DCISCO_QUIRKS
105 endif
106
107 # This compile option activates NAT traversal with IPSec transport mode
108 if USE_NAT_TRANSPORT
109   AM_CFLAGS += -DI_KNOW_TRANSPORT_MODE_HAS_SECURITY_CONCERN_BUT_I_WANT_IT
110 endif
111
112 # This compile option activates smartcard support
113 if USE_SMARTCARD
114   AM_CFLAGS += -DSMARTCARD
115 endif
116
117 if USE_CAPABILITIES
118   pluto_LDADD += -lcap
119 endif
120
121 if USE_THREADS
122   AM_CFLAGS += -DTHREADS
123 endif