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...
5 ipsec_PROGRAMS = pluto _pluto_adns
9 alg_info.c alg_info.h \
13 connections.c connections.h \
14 constants.c constants.h \
25 foodgroups.c foodgroups.h \
26 gcryptfix.c gcryptfix.h \
29 ipsec_doi.c ipsec_doi.h \
32 kernel_alg.c kernel_alg.h \
33 kernel_netlink.c kernel_netlink.h \
34 kernel_noklips.c kernel_noklips.h \
35 kernel_pfkey.c kernel_pfkey.h \
43 nat_traversal.c nat_traversal.h \
52 primegen.c smallprime.c \
53 rcv_whack.c rcv_whack.h \
57 smartcard.c smartcard.h \
65 alg/ike_alg_aes.c alg/ike_alg_blowfish.c alg/ike_alg_twofish.c \
66 alg/ike_alg_serpent.c alg/ike_alg_sha2.c alg/ike_alginit.c \
67 rsaref/pkcs11t.h rsaref/pkcs11.h rsaref/unix.h rsaref/pkcs11f.h
69 _pluto_adns_SOURCES = adns.c adns.h
73 -I$(top_srcdir)/src/libfreeswan \
74 -I$(top_srcdir)/src/libcrypto \
75 -I$(top_srcdir)/src/whack
78 -DIPSEC_DIR=\"${ipsecdir}\" \
79 -DIPSEC_CONFDIR=\"${confdir}\" \
80 -DIPSEC_PIDDIR=\"${piddir}\" \
81 -DSHARED_SECRETS_FILE=\"${confdir}/ipsec.secrets\" \
82 -DKERNEL26_SUPPORT -DKERNEL26_HAS_KAME_DUPLICATES \
83 -DPLUTO -DKLIPS -DDEBUG -DTHREADS
86 $(top_srcdir)/src/libfreeswan/libfreeswan.a \
87 $(top_srcdir)/src/libcrypto/libcrypto.a \
88 -lgmp -lresolv -lpthread -ldl
91 $(top_srcdir)/src/libfreeswan/libfreeswan.a \
94 dist_man_MANS = pluto.8 ipsec.secrets.5
95 EXTRA_DIST = oid.pl oid.txt
96 BUILT_SOURCES = oid.c oid.h
97 MAINTAINERCLEANFILES = oid.c oid.h
102 oid.h: oid.txt oid.pl
105 # This compile option activates the sending of a strongSwan VID
107 AM_CFLAGS += -DVENDORID
110 # This compile option activates the support of the Cisco VPN client
112 AM_CFLAGS += -DCISCO_QUIRKS
115 # This compile option activates NAT traversal with IPSec transport mode
117 AM_CFLAGS += -DI_KNOW_TRANSPORT_MODE_HAS_SECURITY_CONCERN_BUT_I_WANT_IT
120 # This compile option activates dynamic URL fetching using libcurl
122 pluto_LDADD += -lcurl
125 # This compile option activates dynamic LDAP CRL fetching
127 pluto_LDADD += -lldap -llber
131 mkdir -p -m 755 $(confdir)/ipsec.d
132 mkdir -p -m 755 $(confdir)/ipsec.d/cacerts
133 mkdir -p -m 755 $(confdir)/ipsec.d/ocspcerts
134 mkdir -p -m 755 $(confdir)/ipsec.d/certs
135 mkdir -p -m 755 $(confdir)/ipsec.d/acerts
136 mkdir -p -m 755 $(confdir)/ipsec.d/aacerts
137 mkdir -p -m 755 $(confdir)/ipsec.d/crls
138 mkdir -p -m 755 $(confdir)/ipsec.d/reqs
139 mkdir -p -m 700 $(confdir)/ipsec.d/private
140 chown -R $(ipsecuid):$(ipsecgid) $(confdir)/ipsec.d