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