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 \
51 primegen.c smallprime.c \
52 rcv_whack.c rcv_whack.h \
56 smartcard.c smartcard.h \
64 alg/ike_alg_aes.c alg/ike_alg_blowfish.c alg/ike_alg_twofish.c \
65 alg/ike_alg_serpent.c alg/ike_alg_sha2.c alg/ike_alginit.c \
66 rsaref/pkcs11t.h rsaref/pkcs11.h rsaref/unix.h rsaref/pkcs11f.h
68 _pluto_adns_SOURCES = adns.c adns.h
70 LIBSTRONGSWANDIR=$(top_srcdir)/src/libstrongswan
71 LIBFREESWANDIR=$(top_srcdir)/src/libfreeswan
72 LIBCRYPTODIR=$(top_srcdir)/src/libcrypto
77 -I$(LIBSTRONGSWANDIR)\
78 -I$(top_srcdir)/src/libfreeswan \
79 -I$(top_srcdir)/src/libcrypto \
80 -I$(top_srcdir)/src/whack
83 -DIPSEC_DIR=\"${ipsecdir}\" \
84 -DIPSEC_CONFDIR=\"${confdir}\" \
85 -DIPSEC_PIDDIR=\"${piddir}\" \
86 -DSHARED_SECRETS_FILE=\"${confdir}/ipsec.secrets\" \
87 -DKERNEL26_SUPPORT -DKERNEL26_HAS_KAME_DUPLICATES \
88 -DPLUTO -DKLIPS -DDEBUG -DTHREADS
92 $(LIBFREESWANDIR)/libfreeswan.a \
93 $(LIBCRYPTODIR)/libcrypto.a \
94 -lgmp -lresolv -lpthread -ldl
97 $(LIBFREESWANDIR)/libfreeswan.a \
100 dist_man_MANS = pluto.8 ipsec.secrets.5
102 oid.o : $(LIBSTRONGSWANDIR)/asn1/oid.c $(LIBSTRONGSWANDIR)/asn1/oid.h
103 $(COMPILE) -c -o $@ $<
105 # This compile option activates the sending of a strongSwan VID
107 AM_CFLAGS += -DVENDORID
110 # This compile option activates the sending of the XAUTH VID
112 AM_CFLAGS += -DXAUTH_VID
115 # This compile option activates the support of the Cisco VPN client
117 AM_CFLAGS += -DCISCO_QUIRKS
120 # This compile option activates NAT traversal with IPSec transport mode
122 AM_CFLAGS += -DI_KNOW_TRANSPORT_MODE_HAS_SECURITY_CONCERN_BUT_I_WANT_IT
125 # This compile option activates dynamic URL fetching using libcurl
127 pluto_LDADD += -lcurl
130 # This compile option activates dynamic LDAP CRL fetching
132 pluto_LDADD += -lldap -llber
136 mkdir -p -m 755 $(DESTDIR)$(confdir)/ipsec.d
137 mkdir -p -m 755 $(DESTDIR)$(confdir)/ipsec.d/cacerts
138 mkdir -p -m 755 $(DESTDIR)$(confdir)/ipsec.d/ocspcerts
139 mkdir -p -m 755 $(DESTDIR)$(confdir)/ipsec.d/certs
140 mkdir -p -m 755 $(DESTDIR)$(confdir)/ipsec.d/acerts
141 mkdir -p -m 755 $(DESTDIR)$(confdir)/ipsec.d/aacerts
142 mkdir -p -m 755 $(DESTDIR)$(confdir)/ipsec.d/crls
143 mkdir -p -m 755 $(DESTDIR)$(confdir)/ipsec.d/reqs
144 mkdir -p -m 700 $(DESTDIR)$(confdir)/ipsec.d/private
145 chown -R $(ipsecuid):$(ipsecgid) $(DESTDIR)$(confdir)/ipsec.d