- introduced autotools
- first working version - make dist should work - things to do: - UML testing! - more cleanupslaforge/swu
parent
eedfdfbe6e
commit
f2c2d395ff
8
LICENSE
8
LICENSE
|
@ -5,22 +5,22 @@ see the file COPYING.
|
|||
See the file CREDITS for details on origins of more of the code.
|
||||
|
||||
The DES library is under a BSD style license, see
|
||||
linux/crypto/ciphers/des/COPYRIGHT.
|
||||
src/libcrypto/libdes/COPYRIGHT.
|
||||
Note that this software has a advertising clause in it.
|
||||
|
||||
The MD2 implementation is from RSA Data Security Inc., so this package must
|
||||
include the following phrase: "RSA Data Security, Inc. MD2 Message Digest
|
||||
Algorithm" It is not under the GPL; see details in programs/pluto/md2.c.
|
||||
Algorithm" It is not under the GPL; see details in src/pluto/md2.c.
|
||||
|
||||
The MD5 implementation is from RSA Data Security Inc., so this package must
|
||||
include the following phrase: "derived from the RSA Data Security, Inc.
|
||||
MD5 Message-Digest Algorithm". It is not under the GPL; see details in
|
||||
linux/net/ipsec/ipsec_md5c.c.
|
||||
src/libfreeswan/ipsec_md5c.c.
|
||||
|
||||
The PKCS#11 header files in programs/pluto/rsaref/ are from RSA Security Inc.,
|
||||
so they must include the following phrase: "RSA Security Inc. PKCS#11
|
||||
Cryptographic Token Interface (Cryptoki)". The headers are not under the GPL;
|
||||
see details in programs/pluto/rsaref/pkcs11.h.
|
||||
see details in src/pluto/rsaref/pkcs11.h.
|
||||
|
||||
The linux/net/ipsec/radij.c code is derived from BSD 4.4lite code
|
||||
from sys/net/radix.c.
|
||||
|
|
42
Makefile
42
Makefile
|
@ -1,42 +0,0 @@
|
|||
# FreeS/WAN master makefile
|
||||
# Copyright (C) 1998-2002 Henry Spencer.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by the
|
||||
# Free Software Foundation; either version 2 of the License, or (at your
|
||||
# option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# for more details.
|
||||
#
|
||||
# RCSID $Id: Makefile,v 1.4 2004/11/14 21:50:59 as Exp $
|
||||
|
||||
|
||||
FREESWANSRCDIR=$(shell pwd)
|
||||
export FREESWANSRCDIR
|
||||
|
||||
include Makefile.inc
|
||||
|
||||
# directories visited by all recursion
|
||||
SUBDIRS=lib src linux
|
||||
|
||||
# declaration for make's benefit
|
||||
.PHONY: programs install clean distclean \
|
||||
uninstall install_file_list
|
||||
|
||||
# programs
|
||||
|
||||
all: programs
|
||||
|
||||
programs install install_file_list clean::
|
||||
@for d in $(SUBDIRS) ; \
|
||||
do \
|
||||
(cd $$d && $(MAKE) FREESWANSRCDIR=.. $@ ) || exit 1; \
|
||||
done; \
|
||||
|
||||
# uninstall, as much as possible
|
||||
uninstall:
|
||||
$(MAKE) --no-print-directory install_file_list | egrep -v '(/ipsec.conf$$|/ipsec.d/)' | xargs rm -f
|
||||
|
|
@ -0,0 +1 @@
|
|||
SUBDIRS = src
|
235
Makefile.inc
235
Makefile.inc
|
@ -1,235 +0,0 @@
|
|||
# FreeS/WAN pathnames and other master configuration
|
||||
# Copyright (C) 2001, 2002 Henry Spencer.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by the
|
||||
# Free Software Foundation; either version 2 of the License, or (at your
|
||||
# option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# for more details.
|
||||
#
|
||||
# RCSID $Id: Makefile.inc,v 1.12 2006/01/25 17:23:15 as Exp $
|
||||
|
||||
|
||||
# Variables in this file with names starting with INC_ are not for use
|
||||
# by Makefiles which include it; they are subject to change without warning.
|
||||
#
|
||||
# "Final" and "finally" refer to where the files will end up on the
|
||||
# running IPsec system, as opposed to where they get installed by our
|
||||
# Makefiles. (The two are different for cross-compiles and the like,
|
||||
# where our Makefiles are not the end of the installation process.)
|
||||
# Paths with FINAL in their names are the only ones that the installed
|
||||
# software itself depends on. (Very few things should know about the
|
||||
# FINAL paths; think twice and consult Henry before making something new
|
||||
# depend on them.) All other paths are install targets.
|
||||
# See also DESTDIR, below.
|
||||
|
||||
|
||||
### boilerplate, do not change
|
||||
SHELL=/bin/sh
|
||||
|
||||
### paths within the source tree
|
||||
|
||||
KLIPSINC=${FREESWANSRCDIR}/linux/include
|
||||
KLIPSSRC=${FREESWANSRCDIR}/linux/net/ipsec
|
||||
|
||||
LIBFREESWANDIR=${FREESWANSRCDIR}/linux/lib/libfreeswan
|
||||
FREESWANLIB=${FREESWANSRCDIR}/lib/libfreeswan/libfreeswan.a
|
||||
|
||||
LWRESDIR=${FREESWANSRCDIR}/lib/liblwres
|
||||
LWRESLIB=${LWRESDIR}/liblwres.a
|
||||
|
||||
LIBDESSRCDIR=${FREESWANSRCDIR}/linux/crypto/ciphers/des
|
||||
LIBDESLITE=${FREESWANSRCDIR}/lib/libdes/libdes.a
|
||||
|
||||
LIBPOLICYDIR=${FREESWANSRCDIR}/linux/lib/libipsecpolicy
|
||||
POLICYLIB=${FREESWANSRCDIR}/lib/libipsecpolicy/libipsecpolicy.a
|
||||
|
||||
.PHONY: programs checkprograms clean
|
||||
|
||||
### install pathnames
|
||||
|
||||
# DESTDIR can be used to supply a prefix to all install targets.
|
||||
# (Note that "final" pathnames, signifying where files will eventually
|
||||
# reside rather than where install puts them, are exempt from this.)
|
||||
# The prefixing is done in this file, so as to have central control over
|
||||
# it; DESTDIR itself should never appear in any other Makefile.
|
||||
DESTDIR?=
|
||||
|
||||
# "local" part of tree, used in building other pathnames
|
||||
INC_USRLOCAL=/usr/local
|
||||
|
||||
# PUBDIR is where the "ipsec" command goes; beware, many things define PATH
|
||||
# settings which are assumed to include it (or at least, to include *some*
|
||||
# copy of the "ipsec" command).
|
||||
PUBDIR=$(DESTDIR)$(INC_USRLOCAL)/sbin
|
||||
|
||||
# BINDIR is where sub-commands get put, FINALBINDIR is where the "ipsec"
|
||||
# command will look for them when it is run. Also called LIBEXECDIR.
|
||||
FINALLIBEXECDIR=$(INC_USRLOCAL)/libexec/ipsec
|
||||
LIBEXECDIR=$(DESTDIR)$(FINALBINDIR)
|
||||
|
||||
FINALBINDIR=${FINALLIBEXECDIR}
|
||||
BINDIR=${LIBEXECDIR}
|
||||
|
||||
|
||||
# SBINDIR is where the user interface command goes.
|
||||
FINALSBINDIR=$(INC_USRLOCAL)/sbin
|
||||
SBINDIR=$(DESTDIR)$(FINALSBINDIR)
|
||||
|
||||
# libdir is where utility files go
|
||||
FINALLIBDIR=$(INC_USRLOCAL)/lib/ipsec
|
||||
LIBDIR=$(DESTDIR)$(FINALLIBDIR)
|
||||
|
||||
# sharedlibdir is where shared libraries go
|
||||
SHAREDLIBDIR=$(DESTDIR)$(INC_USRLOCAL)/lib
|
||||
|
||||
# where the appropriate manpage tree is located
|
||||
# location within INC_USRLOCAL
|
||||
INC_MANDIR=man
|
||||
# the full pathname
|
||||
MANTREE=$(DESTDIR)$(INC_USRLOCAL)/$(INC_MANDIR)
|
||||
# all relevant subdirectories of MANTREE
|
||||
MANPLACES=man3 man5 man8
|
||||
|
||||
# where configuration files go
|
||||
FINALCONFFILE?=/etc/ipsec.conf
|
||||
CONFFILE=$(DESTDIR)$(FINALCONFFILE)
|
||||
|
||||
FINALCONFDIR?=/etc
|
||||
CONFDIR=$(DESTDIR)$(FINALCONFDIR)
|
||||
|
||||
FINALCONFDDIR?=${FINALCONFDIR}/ipsec.d
|
||||
CONFDDIR=$(DESTDIR)$(FINALCONFDDIR)
|
||||
|
||||
# sample configuration files go into
|
||||
INC_DOCDIR?=share/doc
|
||||
FINALEXAMPLECONFDIR=${INC_USRLOCAL}/${INC_DOCDIR}/strongswan
|
||||
EXAMPLECONFDIR=${DESTDIR}${FINALEXAMPLECONFDIR}
|
||||
|
||||
FINALDOCDIR?=${INC_USRLOCAL}/${INC_DOCDIR}/strongswan
|
||||
DOCDIR=${DESTDIR}${FINALDOCDIR}
|
||||
|
||||
# where per-conn pluto logs go
|
||||
VARDIR?=/var
|
||||
LOGDIR?=${VARDIR}/log
|
||||
FINALLOGDIR?=${DESTDIR}${LOGDIR}
|
||||
|
||||
|
||||
# An attempt is made to automatically figure out where boot/shutdown scripts
|
||||
# will finally go: the first directory in INC_RCDIRS which exists gets them.
|
||||
# If none of those exists (or INC_RCDIRS is empty), INC_RCDEFAULT gets them.
|
||||
# With a non-null DESTDIR, INC_RCDEFAULT will be used unless one of the
|
||||
# INC_RCDIRS directories has been pre-created under DESTDIR.
|
||||
INC_RCDIRS=/etc/rc.d/init.d /etc/rc.d /etc/init.d /sbin/init.d
|
||||
INC_RCDEFAULT=/etc/rc.d/init.d
|
||||
|
||||
# RCDIR is where boot/shutdown scripts go; FINALRCDIR is where they think
|
||||
# will finally be (so utils/Makefile can create a symlink in BINDIR to the
|
||||
# place where the boot/shutdown script will finally be, rather than the
|
||||
# place where it is installed).
|
||||
FINALRCDIR=$(shell for d in $(INC_RCDIRS) ; \
|
||||
do if test -d $(DESTDIR)/$$d ; \
|
||||
then echo $$d ; exit 0 ; \
|
||||
fi ; done ; echo $(INC_RCDEFAULT) )
|
||||
RCDIR=$(DESTDIR)$(FINALRCDIR)
|
||||
|
||||
|
||||
|
||||
### misc installation stuff
|
||||
|
||||
# what program to use when installing things
|
||||
INSTALL=install
|
||||
|
||||
# flags to the install program, for programs, manpages, and config files
|
||||
# -b has install make backups (n.b., unlinks original), --suffix controls
|
||||
# how backup names are composed.
|
||||
# Note that the install procedures will never overwrite an existing config
|
||||
# file, which is why -b is not specified for them.
|
||||
INSTBINFLAGS=-b --suffix=.old
|
||||
INSTMANFLAGS=
|
||||
INSTCONFFLAGS=
|
||||
|
||||
|
||||
### misc configuration, included here in hopes that other files will not
|
||||
### have to be changed for common customizations.
|
||||
|
||||
# extra compile flags, for userland and kernel stuff, e.g. -g for debug info
|
||||
# (caution, this stuff is still being sorted out, will change in future)
|
||||
USERCOMPILE?=-g -O3
|
||||
|
||||
# FreeSWAN 3.x will require bind9.
|
||||
USE_LWRES?=false
|
||||
|
||||
# whether or not to use iproute2 based commands.
|
||||
#
|
||||
USE_IPROUTE2?=true
|
||||
|
||||
# what kind of firewalling to use:
|
||||
# 2.0 - ipfwadm
|
||||
# 2.2 - ipchains
|
||||
# 2.4 - iptables
|
||||
IPSEC_FIREWALLTYPE=iptables
|
||||
|
||||
# whether or not to include ipsec policy code into pluto.
|
||||
# false for now, since it is still experimental.
|
||||
USE_IPSECPOLICY?=false
|
||||
|
||||
# include support for KEY RR
|
||||
# this will become false in late 2003.
|
||||
USE_KEYRR?=true
|
||||
|
||||
# include support for KERNEL 2.5/2.6 IPsec in pluto
|
||||
USE_KERNEL26?=true
|
||||
|
||||
# whether or not pluto sends its strongSwan Vendor ID
|
||||
USE_VENDORID?=true
|
||||
|
||||
# whether or not pluto sends an XAUTH VID (Cisco Mode Config Interoperability)
|
||||
USE_XAUTH_VID?=false
|
||||
|
||||
# whether to support NAT Traversal (aka NAT-T)
|
||||
USE_NAT_TRAVERSAL?=true
|
||||
|
||||
# whether to support NAT-T in transport mode (needed for Win2K NAT-T Interop)
|
||||
USE_NAT_TRAVERSAL_TRANSPORT_MODE?=false
|
||||
|
||||
# include libcurl support (currently used for fetching CRLs, OCSP and SCEP)
|
||||
USE_LIBCURL?=false
|
||||
|
||||
# include LDAP support (currently used for fetching CRLs)
|
||||
USE_LDAP?=false
|
||||
|
||||
# uncomment this line if using the LDAPv3 protocol
|
||||
LDAP_VERSION=3
|
||||
# uncomment this line if using the LDAPv2 protocol
|
||||
#LDAP_VERSION=2
|
||||
|
||||
# include PKCS11-based smartcard support
|
||||
USE_SMARTCARD?=false
|
||||
|
||||
# Default PKCS11 library
|
||||
# Uncomment this line if using OpenSC <= 0.9.6
|
||||
#PKCS11_DEFAULT_LIB=\"/usr/lib/pkcs11/opensc-pkcs11.so\"
|
||||
# Uncomment this line if using OpenSC >= 0.10.0
|
||||
PKCS11_DEFAULT_LIB=\"/usr/lib/opensc-pkcs11.so\"
|
||||
# Uncomment and complete this line if using another default library
|
||||
#PKCS11_DEFAULT_LIB=\"/usr/lib/...\"
|
||||
|
||||
# Enable the leak detective to find memory leaks
|
||||
USE_LEAK_DETECTIVE?=false
|
||||
|
||||
# export everything so that scripts can use them.
|
||||
export LIBFREESWANDIR FREESWANSRCDIR FREESWANLIB
|
||||
|
||||
-include ${FREESWANSRCDIR}/Makefile.ver
|
||||
|
||||
# for emacs
|
||||
#
|
||||
# Local Variables: ;;;
|
||||
# mode: makefile ;;;
|
||||
# End Variables: ;;;
|
||||
#
|
|
@ -1 +0,0 @@
|
|||
IPSECVERSION=4.0.0
|
|
@ -1,3 +1,9 @@
|
|||
|
||||
- new build environment featuring autotools. Features such
|
||||
as HTTP, LDAP and smartcard support may be enabled using
|
||||
the ./configure script. Changing install directories
|
||||
is possible, too. See ./configure --help for more details.
|
||||
|
||||
strongswan-4.0.0
|
||||
----------------
|
||||
|
|
@ -0,0 +1,139 @@
|
|||
dnl configure.in for linux strongSwan
|
||||
dnl Copyright (C) 2006 Martin Willi
|
||||
dnl Hochschule fuer Technik Rapperswil
|
||||
dnl
|
||||
dnl This program is free software; you can redistribute it and/or modify it
|
||||
dnl under the terms of the GNU General Public License as published by the
|
||||
dnl Free Software Foundation; either version 2 of the License, or (at your
|
||||
dnl option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
|
||||
dnl
|
||||
dnl This program is distributed in the hope that it will be useful, but
|
||||
dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
dnl for more details.
|
||||
|
||||
dnl ===========================
|
||||
dnl initialize & set some vars
|
||||
dnl ===========================
|
||||
|
||||
AC_INIT(strongSwan,4.0.0)
|
||||
AM_INIT_AUTOMAKE
|
||||
AC_C_BIGENDIAN
|
||||
AC_SUBST(ipsecdir, '${libexecdir}/ipsec')
|
||||
AC_SUBST(confdir, '${sysconfdir}')
|
||||
AC_SUBST(piddir, '/var/run')
|
||||
|
||||
dnl ===========================
|
||||
dnl check --enable-xxx params
|
||||
dnl ===========================
|
||||
|
||||
AC_ARG_ENABLE(
|
||||
[http],
|
||||
AS_HELP_STRING([--enable-http],[enable OCSP and fetching of Certificates and CRLs over HTTP (default is NO). Requires libcurl.]),
|
||||
http=true
|
||||
AC_DEFINE(LIBCURL)
|
||||
)
|
||||
AM_CONDITIONAL(USE_LIBCURL, test x$http = xtrue)
|
||||
|
||||
AC_ARG_ENABLE(
|
||||
[ldap],
|
||||
AS_HELP_STRING([--enable-ldap],[enable fetching of CRLs from LDAP (default is NO). Requires openldap. \
|
||||
Protocol version 2 or 3 are supported, use --with-ldap=version to specify \
|
||||
explicitly.]),
|
||||
ldap=true
|
||||
[case "${enableval}" in
|
||||
2) AC_DEFINE(LDAP_VER, 2) ;;
|
||||
3) AC_DEFINE(LDAP_VER, 3) ;;
|
||||
*) AC_MSG_ERROR([Invalid LDAP protocol version specified!]) ;;
|
||||
esac
|
||||
]
|
||||
)
|
||||
AM_CONDITIONAL(USE_LDAP, test x$ldap = xtrue)
|
||||
|
||||
AC_ARG_ENABLE(
|
||||
[pkcs11],
|
||||
AS_HELP_STRING([--enable-pkcs11],[enable PKCS11 smartcard support (default is NO). \
|
||||
Set the default PKCS11 library using \
|
||||
--enable-pkcs11=/path/to/default-pkcs11.so]),
|
||||
smartcard=true
|
||||
AC_DEFINE(SMARTCARD)
|
||||
AC_DEFINE(PKCS11_DEFAULT_LIB, ${enableval})
|
||||
)
|
||||
AM_CONDITIONAL(USE_SMARTCARD, test x$smartcard = xtrue)
|
||||
|
||||
AC_ARG_ENABLE(
|
||||
[leak-detective],
|
||||
AS_HELP_STRING([--enable-leak-detective],[enable malloc hooks to find memory leaks (default is NO).]),
|
||||
leak_detective=true
|
||||
AC_DEFINE(USE_LEAK_DETECTIVE)
|
||||
)
|
||||
AM_CONDITIONAL(USE_LEAK_DETECTIVE, test x$leak_detective = xtrue)
|
||||
|
||||
dnl =========================
|
||||
dnl check required programs
|
||||
dnl =========================
|
||||
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_LIBTOOL
|
||||
AC_PROG_LEX
|
||||
AC_PROG_YACC
|
||||
AC_PROG_CC(intel)
|
||||
|
||||
dnl ==========================
|
||||
dnl check required libraries
|
||||
dnl ==========================
|
||||
|
||||
AC_HAVE_LIBRARY([gmp],,[AC_MSG_ERROR([GNU Multi Precision library gmp not found])])
|
||||
if test "$ldap" = "true"; then
|
||||
AC_HAVE_LIBRARY([ldap],,[AC_MSG_ERROR([LDAP enabled, but library ldap not found])])
|
||||
AC_HAVE_LIBRARY([lber],,[AC_MSG_ERROR([LDAP enabled, but library lber not found])])
|
||||
fi
|
||||
if test "$http" = "true"; then
|
||||
AC_HAVE_LIBRARY([curl],,[AC_MSG_ERROR([HTTP enabled, but library curl not found])])
|
||||
fi
|
||||
|
||||
|
||||
dnl =============================
|
||||
dnl check required header files
|
||||
dnl =============================
|
||||
|
||||
|
||||
AC_MSG_CHECKING([gmp.h version >= 4.1.4])
|
||||
AC_TRY_COMPILE(
|
||||
[#include "gmp.h"],
|
||||
[
|
||||
#if (__GNU_MP_VERSION*100 + __GNU_MP_VERSION_MINOR*10 + __GNU_MP_VERSION_PATCHLEVEL) < 414
|
||||
#error bad gmp
|
||||
#endif
|
||||
],
|
||||
[AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); AC_MSG_ERROR([No usable gmp.h found!])]
|
||||
)
|
||||
if test "$ldap" = "true"; then
|
||||
AC_CHECK_HEADER([ldap.h],,[AC_MSG_ERROR([LDAP enabled, but ldap.h not found!])])
|
||||
fi
|
||||
if test "$http" = "true"; then
|
||||
AC_CHECK_HEADER([curl/curl.h],,[AC_MSG_ERROR([HTTP enabled, but curl.h not found!])])
|
||||
fi
|
||||
|
||||
dnl ==============================
|
||||
dnl build Makefiles
|
||||
dnl ==============================
|
||||
|
||||
AC_OUTPUT(
|
||||
Makefile
|
||||
src/Makefile
|
||||
src/libstrongswan/Makefile
|
||||
src/libcrypto/Makefile
|
||||
src/libfreeswan/Makefile
|
||||
src/pluto/Makefile
|
||||
src/whack/Makefile
|
||||
src/charon/Makefile
|
||||
src/stroke/Makefile
|
||||
src/ipsec/Makefile
|
||||
src/starter/Makefile
|
||||
src/_updown/Makefile
|
||||
src/_updown_espmark/Makefile
|
||||
src/_copyright/Makefile
|
||||
src/openac/Makefile
|
||||
src/scepclient/Makefile
|
||||
)
|
465
src/Makefile
465
src/Makefile
|
@ -1,465 +0,0 @@
|
|||
# Makefile.in generated by automake 1.9.6 from Makefile.am.
|
||||
# src/Makefile. Generated from Makefile.in by configure.
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
srcdir = .
|
||||
top_srcdir = ..
|
||||
|
||||
pkgdatadir = $(datadir)/strongSwan
|
||||
pkglibdir = $(libdir)/strongSwan
|
||||
pkgincludedir = $(includedir)/strongSwan
|
||||
top_builddir = ..
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = /usr/bin/install -c
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = i686-pc-linux-gnu
|
||||
host_triplet = i686-pc-linux-gnu
|
||||
subdir = src
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/configure.in
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_CLEAN_FILES =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
||||
html-recursive info-recursive install-data-recursive \
|
||||
install-exec-recursive install-info-recursive \
|
||||
install-recursive installcheck-recursive installdirs-recursive \
|
||||
pdf-recursive ps-recursive uninstall-info-recursive \
|
||||
uninstall-recursive
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DIST_SUBDIRS = $(SUBDIRS)
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = ${SHELL} /home/mwilli/strongswan/trunk/missing --run aclocal-1.9
|
||||
AMDEP_FALSE = #
|
||||
AMDEP_TRUE =
|
||||
AMTAR = ${SHELL} /home/mwilli/strongswan/trunk/missing --run tar
|
||||
AR = ar
|
||||
AUTOCONF = ${SHELL} /home/mwilli/strongswan/trunk/missing --run autoconf
|
||||
AUTOHEADER = ${SHELL} /home/mwilli/strongswan/trunk/missing --run autoheader
|
||||
AUTOMAKE = ${SHELL} /home/mwilli/strongswan/trunk/missing --run automake-1.9
|
||||
AWK = gawk
|
||||
CC = gcc
|
||||
CCDEPMODE = depmode=gcc3
|
||||
CFLAGS = -g -O2
|
||||
CPP = gcc -E
|
||||
CPPFLAGS =
|
||||
CXX = g++
|
||||
CXXCPP = g++ -E
|
||||
CXXDEPMODE = depmode=gcc3
|
||||
CXXFLAGS = -g -O2
|
||||
CYGPATH_W = echo
|
||||
DEFS = -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"strongSwan\" -DVERSION=\"4.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
|
||||
DEPDIR = .deps
|
||||
ECHO = echo
|
||||
ECHO_C =
|
||||
ECHO_N = -n
|
||||
ECHO_T =
|
||||
EGREP = grep -E
|
||||
EXEEXT =
|
||||
F77 =
|
||||
FFLAGS =
|
||||
INSTALL_DATA = ${INSTALL} -m 644
|
||||
INSTALL_PROGRAM = ${INSTALL}
|
||||
INSTALL_SCRIPT = ${INSTALL}
|
||||
INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
|
||||
LDFLAGS =
|
||||
LIBOBJS =
|
||||
LIBS =
|
||||
LIBTOOL = $(SHELL) $(top_builddir)/libtool
|
||||
LN_S = ln -s
|
||||
LTLIBOBJS =
|
||||
MAKEINFO = ${SHELL} /home/mwilli/strongswan/trunk/missing --run makeinfo
|
||||
OBJEXT = o
|
||||
PACKAGE = strongSwan
|
||||
PACKAGE_BUGREPORT =
|
||||
PACKAGE_NAME =
|
||||
PACKAGE_STRING =
|
||||
PACKAGE_TARNAME =
|
||||
PACKAGE_VERSION =
|
||||
PATH_SEPARATOR = :
|
||||
RANLIB = ranlib
|
||||
SET_MAKE =
|
||||
SHELL = /bin/sh
|
||||
STRIP = strip
|
||||
VERSION = 4.0
|
||||
ac_ct_AR = ar
|
||||
ac_ct_CC = gcc
|
||||
ac_ct_CXX = g++
|
||||
ac_ct_F77 =
|
||||
ac_ct_RANLIB = ranlib
|
||||
ac_ct_STRIP = strip
|
||||
am__fastdepCC_FALSE = #
|
||||
am__fastdepCC_TRUE =
|
||||
am__fastdepCXX_FALSE = #
|
||||
am__fastdepCXX_TRUE =
|
||||
am__include = include
|
||||
am__leading_dot = .
|
||||
am__quote =
|
||||
am__tar = ${AMTAR} chof - "$$tardir"
|
||||
am__untar = ${AMTAR} xf -
|
||||
bindir = ${exec_prefix}/bin
|
||||
build = i686-pc-linux-gnu
|
||||
build_alias =
|
||||
build_cpu = i686
|
||||
build_os = linux-gnu
|
||||
build_vendor = pc
|
||||
datadir = ${prefix}/share
|
||||
exec_prefix = ${prefix}
|
||||
host = i686-pc-linux-gnu
|
||||
host_alias =
|
||||
host_cpu = i686
|
||||
host_os = linux-gnu
|
||||
host_vendor = pc
|
||||
includedir = ${prefix}/include
|
||||
infodir = ${prefix}/info
|
||||
install_sh = /home/mwilli/strongswan/trunk/install-sh
|
||||
libdir = ${exec_prefix}/lib
|
||||
libexecdir = ${exec_prefix}/libexec
|
||||
localstatedir = ${prefix}/var
|
||||
mandir = ${prefix}/man
|
||||
mkdir_p = mkdir -p --
|
||||
oldincludedir = /usr/include
|
||||
prefix = /usr/local
|
||||
program_transform_name = s,x,x,
|
||||
sbindir = ${exec_prefix}/sbin
|
||||
sharedstatedir = ${prefix}/com
|
||||
sysconfdir = ${prefix}/etc
|
||||
target_alias =
|
||||
SUBDIRS = libstrongswan stroke charon whack
|
||||
all: all-recursive
|
||||
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu src/Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
distclean-libtool:
|
||||
-rm -f libtool
|
||||
uninstall-info-am:
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run `make' without going through this Makefile.
|
||||
# To change the values of `make' variables: instead of editing Makefiles,
|
||||
# (1) if the variable is set in `config.status', edit `config.status'
|
||||
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||
# (2) otherwise, pass the desired values on the `make' command line.
|
||||
$(RECURSIVE_TARGETS):
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
dot_seen=yes; \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
mostlyclean-recursive clean-recursive distclean-recursive \
|
||||
maintainer-clean-recursive:
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
case "$@" in \
|
||||
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
||||
*) list='$(SUBDIRS)' ;; \
|
||||
esac; \
|
||||
rev=''; for subdir in $$list; do \
|
||||
if test "$$subdir" = "."; then :; else \
|
||||
rev="$$subdir $$rev"; \
|
||||
fi; \
|
||||
done; \
|
||||
rev="$$rev ."; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
for subdir in $$rev; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done && test -z "$$fail"
|
||||
tags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||
done
|
||||
ctags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
|
||||
done
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
||||
include_option=--etags-include; \
|
||||
empty_fix=.; \
|
||||
else \
|
||||
include_option=--include; \
|
||||
empty_fix=; \
|
||||
fi; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test ! -f $$subdir/TAGS || \
|
||||
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$tags $$unique; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$tags $$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& cd $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) $$here
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||
list='$(DISTFILES)'; for file in $$list; do \
|
||||
case $$file in \
|
||||
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||
esac; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
dir="/$$dir"; \
|
||||
$(mkdir_p) "$(distdir)$$dir"; \
|
||||
else \
|
||||
dir=''; \
|
||||
fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||
fi; \
|
||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test -d "$(distdir)/$$subdir" \
|
||||
|| $(mkdir_p) "$(distdir)/$$subdir" \
|
||||
|| exit 1; \
|
||||
distdir=`$(am__cd) $(distdir) && pwd`; \
|
||||
top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
|
||||
(cd $$subdir && \
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$$top_distdir" \
|
||||
distdir="$$distdir/$$subdir" \
|
||||
distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-recursive
|
||||
all-am: Makefile
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
install: install-recursive
|
||||
install-exec: install-exec-recursive
|
||||
install-data: install-data-recursive
|
||||
uninstall: uninstall-recursive
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-recursive
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-recursive
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-recursive
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic distclean-libtool \
|
||||
distclean-tags
|
||||
|
||||
dvi: dvi-recursive
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-recursive
|
||||
|
||||
info: info-recursive
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-info: install-info-recursive
|
||||
|
||||
install-man:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-recursive
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-recursive
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-info-am
|
||||
|
||||
uninstall-info: uninstall-info-recursive
|
||||
|
||||
.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
|
||||
clean clean-generic clean-libtool clean-recursive ctags \
|
||||
ctags-recursive distclean distclean-generic distclean-libtool \
|
||||
distclean-recursive distclean-tags distdir dvi dvi-am html \
|
||||
html-am info info-am install install-am install-data \
|
||||
install-data-am install-exec install-exec-am install-info \
|
||||
install-info-am install-man install-strip installcheck \
|
||||
installcheck-am installdirs installdirs-am maintainer-clean \
|
||||
maintainer-clean-generic maintainer-clean-recursive \
|
||||
mostlyclean mostlyclean-generic mostlyclean-libtool \
|
||||
mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
|
||||
uninstall uninstall-am uninstall-info-am
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
|
@ -0,0 +1 @@
|
|||
SUBDIRS = libfreeswan libcrypto libstrongswan pluto whack charon stroke starter openac scepclient ipsec _updown _updown_espmark _copyright
|
|
@ -1,144 +0,0 @@
|
|||
|
||||
include ${FREESWANSRCDIR}/Makefile.ver
|
||||
|
||||
CFLAGS+=$(USERCOMPILE) -I${KLIPSINC}
|
||||
|
||||
CFLAGS+= -Wall
|
||||
CFLAGS+= -Wpointer-arith
|
||||
CFLAGS+= -Wcast-qual
|
||||
CFLAGS+= -Wstrict-prototypes
|
||||
CFLAGS+= -Wbad-function-cast
|
||||
|
||||
# die if there are any warnings
|
||||
ifndef WERROR
|
||||
WERROR:= -Werror
|
||||
endif
|
||||
|
||||
#CFLAGS+= ${WERROR}
|
||||
|
||||
ifneq ($(LD_LIBRARY_PATH),)
|
||||
LDFLAGS=-L$(LD_LIBRARY_PATH)
|
||||
endif
|
||||
|
||||
MANDIR8=$(MANTREE)/man8
|
||||
MANDIR5=$(MANTREE)/man5
|
||||
|
||||
ifndef PROGRAMDIR
|
||||
PROGRAMDIR=${LIBEXECDIR}
|
||||
endif
|
||||
|
||||
ifndef MANPROGPREFIX
|
||||
MANPROGPREFIX=ipsec_
|
||||
endif
|
||||
|
||||
ifndef CONFDSUBDIR
|
||||
CONFDSUBDIR=.
|
||||
endif
|
||||
|
||||
all: $(PROGRAM)
|
||||
|
||||
programs: all
|
||||
|
||||
ifneq ($(PROGRAM),check)
|
||||
check: $(PROGRAM)
|
||||
endif
|
||||
|
||||
|
||||
ifneq ($(NOINSTALL),true)
|
||||
|
||||
install:: $(PROGRAM) $(CONFFILES) $(EXTRA8MAN) $(EXTRA5MAN) $(EXTRA5PROC) $(LIBFILES) $(CONFDFILES)
|
||||
@mkdir -p $(PROGRAMDIR) $(MANDIR8) $(MANDIR5) $(LIBDIR) $(CONFDIR) $(CONFDDIR) $(CONFDDIR)/$(CONFDSUBDIR) $(EXAMPLECONFDIR)
|
||||
@if [ -n "$(PROGRAM)" ]; then $(INSTALL) $(INSTBINFLAGS) $(PROGRAM) $(PROGRAMDIR); fi
|
||||
@$(foreach f, $(addsuffix .8, $(PROGRAM)), \
|
||||
$(INSTALL) $(INSTMANFLAGS) $f $(MANDIR8)/$(MANPROGPREFIX)$f || exit 1; \
|
||||
)
|
||||
@$(foreach f, $(EXTRA8MAN), \
|
||||
$(INSTALL) $(INSTMANFLAGS) $f $(MANDIR8)/ipsec_$f || exit 1; \
|
||||
)
|
||||
@$(foreach f, $(EXTRA5MAN), \
|
||||
$(INSTALL) $(INSTMANFLAGS) $f $(MANDIR5)/$f || exit 1 ;\
|
||||
)
|
||||
@$(foreach f, $(EXTRA5PROC), \
|
||||
$(INSTALL) $(INSTMANFLAGS) $f $(MANDIR5)/ipsec_$f || exit 1 ;\
|
||||
)
|
||||
@$(foreach f, $(LIBFILES), \
|
||||
$(INSTALL) $(INSTCONFFLAGS) $f $(LIBDIR)/$f || exit 1 ;\
|
||||
)
|
||||
@$(foreach f, $(CONFFILES), \
|
||||
if [ ! -f $(CONFDIR)/$f ]; then $(INSTALL) $(INSTCONFFLAGS) $f $(CONFDIR)/$f || exit 1; fi;\
|
||||
$(INSTALL) $(INSTCONFFLAGS) $f $(EXAMPLECONFDIR)/$f-sample || exit 1; \
|
||||
)
|
||||
@$(foreach f, $(CONFDFILES), \
|
||||
if [ ! -f $(CONFDDIR)/$(CONFDSUBDIR)/$f ]; then $(INSTALL) $(INSTCONFFLAGS) $f $(CONFDDIR)/$(CONFDSUBDIR)/$f || exit 1; fi;\
|
||||
)
|
||||
|
||||
install_file_list::
|
||||
@if [ -n "$(PROGRAM)" ]; then echo $(PROGRAMDIR)/$(PROGRAM); fi
|
||||
@$(foreach f, $(addsuffix .8, $(PROGRAM)), \
|
||||
echo $(MANDIR8)/${MANPROGPREFIX}$f; \
|
||||
)
|
||||
@$(foreach f, $(EXTRA8MAN), \
|
||||
echo $(MANDIR8)/ipsec_$f; \
|
||||
)
|
||||
@$(foreach f, $(EXTRA5MAN), \
|
||||
echo $(MANDIR5)/$f;\
|
||||
)
|
||||
@$(foreach f, $(EXTRA5PROC), \
|
||||
echo $(MANDIR5)/ipsec_$f; \
|
||||
)
|
||||
@$(foreach f, $(LIBFILES), \
|
||||
echo $(LIBDIR)/$f;\
|
||||
)
|
||||
@$(foreach f, $(CONFFILES), \
|
||||
echo $(CONFDIR)/$f;\
|
||||
echo $(EXAMPLECONFDIR)/$f-sample;\
|
||||
)
|
||||
@$(foreach f, $(CONFDFILES), \
|
||||
echo $(CONFDDIR)/${CONFDSUBDIR}/$f;\
|
||||
)
|
||||
|
||||
endif
|
||||
|
||||
# cancel the rule that compiles directly
|
||||
%: %.c
|
||||
|
||||
%: %.o $(OBJS)
|
||||
$(CC) $(CFLAGS) -o $@ $@.o ${OBJS} $(LDFLAGS) $(LIBS)
|
||||
|
||||
%: %.in ${FREESWANSRCDIR}/Makefile.inc ${FREESWANSRCDIR}/Makefile.ver
|
||||
cat $< | sed -e "s/xxx/$(IPSECVERSION)/" \
|
||||
-e "s:@IPSEC_DIR@:$(FINALBINDIR):" \
|
||||
-e "s:@IPSEC_EXECDIR@:$(FINALLIBEXECDIR):" \
|
||||
-e "s:@IPSEC_SBINDIR@:$(FINALSBINDIR):" \
|
||||
-e "s:@IPSEC_LIBDIR@:$(FINALLIBDIR):" \
|
||||
-e "s:@FINALCONFDIR@:$(FINALCONFDIR):" \
|
||||
-e "s:@EXAMPLECONFDIR@:$(EXAMPLECONFDIR):" \
|
||||
-e "s:@FINALDOCDIR@:$(FINALDOCDIR):" \
|
||||
-e "s:@FINALEXAMPLECONFDIR@:$(FINALEXAMPLECONFDIR):" \
|
||||
-e "s:@MODULE_GOO_LIST@:$(MODULE_GOO_LIST):" \
|
||||
-e "s:@IPSEC_CONFS@:$(FINALCONFDIR):" \
|
||||
-e "s:@IPSEC_CONFDDIR@:$(FINALCONFDDIR):" \
|
||||
-e "s:@USE_IPROUTE2@:$(USE_IPROUTE2):" \
|
||||
-e "s:@IPSEC_FIREWALLTYPE@:$(IPSEC_FIREWALLTYPE):" \
|
||||
| cat >$@
|
||||
if [ -x $< ]; then chmod +x $@; fi
|
||||
if [ "${PROGRAM}.in" = $< ]; then chmod +x $@; fi
|
||||
|
||||
cleanall: clean
|
||||
|
||||
distclean: clean
|
||||
|
||||
mostlyclean: clean
|
||||
|
||||
realclean: clean
|
||||
|
||||
clean::
|
||||
ifneq ($(strip $(PROGRAM)),)
|
||||
@if [ -r $(PROGRAM).in ]; then rm -f $(PROGRAM); fi
|
||||
@if [ -r $(PROGRAM).c ]; then rm -f $(PROGRAM); fi
|
||||
@if [ -n "$(OBJS)" ]; then rm -f $(PROGRAM); fi
|
||||
endif
|
||||
@rm -f *.o
|
||||
|
||||
checkprograms:
|
||||
|
|
@ -1,44 +0,0 @@
|
|||
# Makefile for miscelaneous programs
|
||||
# Copyright (C) 2002 Michael Richardson <mcr@freeswan.org>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by the
|
||||
# Free Software Foundation; either version 2 of the License, or (at your
|
||||
# option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# for more details.
|
||||
#
|
||||
# RCSID $Id: Makefile,v 1.1 2004/03/15 20:35:27 as Exp $
|
||||
|
||||
FREESWANSRCDIR=../..
|
||||
include ${FREESWANSRCDIR}/Makefile.inc
|
||||
|
||||
PROGRAM=_copyright
|
||||
PROGRAMDIR=${LIBDIR}
|
||||
LIBS=${FREESWANLIB}
|
||||
|
||||
include ../Makefile.program
|
||||
|
||||
#
|
||||
# $Log: Makefile,v $
|
||||
# Revision 1.1 2004/03/15 20:35:27 as
|
||||
# added files from freeswan-2.04-x509-1.5.3
|
||||
#
|
||||
# Revision 1.3 2002/08/02 16:01:07 mcr
|
||||
# moved user visible programs to $PREFIX/libexec, while moving
|
||||
# private files to $PREFIX/lib.
|
||||
#
|
||||
# Revision 1.2 2002/06/02 22:02:14 mcr
|
||||
# changed TOPDIR->FREESWANSRCDIR in all Makefiles.
|
||||
# (note that linux/net/ipsec/Makefile uses TOPDIR because this is the
|
||||
# kernel sense.)
|
||||
#
|
||||
# Revision 1.1 2002/04/24 07:55:32 mcr
|
||||
# #include patches and Makefiles for post-reorg compilation.
|
||||
#
|
||||
#
|
||||
#
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
ipsec_PROGRAMS = _copyright
|
||||
_copyright_SOURCES = _copyright.c
|
||||
dist_man8_MANS = _copyright.8
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/src/libfreeswan
|
||||
_copyright_LDADD = $(top_srcdir)/src/libfreeswan/libfreeswan.a
|
|
@ -1,22 +0,0 @@
|
|||
# Makefile for miscelaneous programs
|
||||
# Copyright (C) 2002 Michael Richardson <mcr@freeswan.org>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by the
|
||||
# Free Software Foundation; either version 2 of the License, or (at your
|
||||
# option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# for more details.
|
||||
#
|
||||
# RCSID $Id: Makefile,v 1.3 2006/04/17 06:48:49 as Exp $
|
||||
|
||||
FREESWANSRCDIR=../..
|
||||
include ${FREESWANSRCDIR}/Makefile.inc
|
||||
|
||||
PROGRAM=_updown
|
||||
PROGRAMDIR=${LIBDIR}
|
||||
|
||||
include ../Makefile.program
|
|
@ -0,0 +1,3 @@
|
|||
dist_ipsec_SCRIPTS = _updown
|
||||
dist_man8_MANS = _updown.8
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
# Makefile for miscelaneous programs
|
||||
# Copyright (C) 2002 Michael Richardson <mcr@freeswan.org>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by the
|
||||
# Free Software Foundation; either version 2 of the License, or (at your
|
||||
# option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# for more details.
|
||||
#
|
||||
# RCSID $Id: Makefile,v 1.1 2005/04/07 21:34:19 as Exp $
|
||||
|
||||
FREESWANSRCDIR=../..
|
||||
include ${FREESWANSRCDIR}/Makefile.inc
|
||||
|
||||
PROGRAM=_updown_espmark
|
||||
PROGRAMDIR=${LIBDIR}
|
||||
|
||||
include ../Makefile.program
|
|
@ -0,0 +1,2 @@
|
|||
dist_ipsec_SCRIPTS = _updown_espmark
|
||||
dist_man8_MANS = _updown_espmark.8
|
1487
src/charon/Makefile
1487
src/charon/Makefile
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,46 @@
|
|||
ipsec_PROGRAMS = charon
|
||||
|
||||
charon_SOURCES = \
|
||||
config/connections/connection.c config/connections/connection.h config/connections/local_connection_store.c \
|
||||
config/connections/connection_store.h config/connections/local_connection_store.h config/policies/policy.c \
|
||||
config/policies/policy.h config/policies/policy_store.h config/policies/local_policy_store.c \
|
||||
config/policies/local_policy_store.h config/credentials/local_credential_store.c \
|
||||
config/credentials/local_credential_store.h config/credentials/credential_store.h config/traffic_selector.c \
|
||||
config/traffic_selector.h config/proposal.c config/proposal.h config/configuration.c config/configuration.h \
|
||||
sa/states/state.c sa/states/state.h sa/states/ike_sa_init_requested.c sa/states/ike_sa_init_requested.h \
|
||||
sa/states/ike_sa_init_responded.c sa/states/ike_sa_established.c sa/states/ike_sa_established.h \
|
||||
sa/states/responder_init.c sa/states/responder_init.h sa/states/initiator_init.c sa/states/initiator_init.h \
|
||||
sa/states/ike_sa_init_responded.h sa/states/ike_auth_requested.c sa/states/ike_auth_requested.h \
|
||||
sa/child_sa.c sa/child_sa.h sa/ike_sa.c sa/ike_sa.h sa/ike_sa_manager.c sa/ike_sa_manager.h \
|
||||
sa/ike_sa_id.c sa/ike_sa_id.h sa/authenticator.c sa/authenticator.h encoding/payloads/encryption_payload.c \
|
||||
encoding/payloads/cert_payload.c encoding/payloads/payload.h encoding/payloads/traffic_selector_substructure.c \
|
||||
encoding/payloads/configuration_attribute.h encoding/payloads/proposal_substructure.h \
|
||||
encoding/payloads/transform_attribute.c encoding/payloads/transform_attribute.h \
|
||||
encoding/payloads/configuration_attribute.c encoding/payloads/transform_substructure.c \
|
||||
encoding/payloads/encryption_payload.h encoding/payloads/auth_payload.c encoding/payloads/ike_header.c \
|
||||
encoding/payloads/transform_substructure.h encoding/payloads/nonce_payload.c encoding/payloads/cert_payload.h \
|
||||
encoding/payloads/eap_payload.c encoding/payloads/ike_header.h encoding/payloads/auth_payload.h \
|
||||
encoding/payloads/ts_payload.c encoding/payloads/traffic_selector_substructure.h encoding/payloads/nonce_payload.h \
|
||||
encoding/payloads/notify_payload.c encoding/payloads/eap_payload.h encoding/payloads/notify_payload.h \
|
||||
encoding/payloads/ts_payload.h encoding/payloads/id_payload.c encoding/payloads/ke_payload.c \
|
||||
encoding/payloads/unknown_payload.c encoding/payloads/encodings.c encoding/payloads/id_payload.h \
|
||||
encoding/payloads/cp_payload.c encoding/payloads/delete_payload.c encoding/payloads/sa_payload.c \
|
||||
encoding/payloads/ke_payload.h encoding/payloads/unknown_payload.h encoding/payloads/encodings.h \
|
||||
encoding/payloads/certreq_payload.c encoding/payloads/cp_payload.h encoding/payloads/delete_payload.h \
|
||||
encoding/payloads/sa_payload.h encoding/payloads/vendor_id_payload.c encoding/payloads/certreq_payload.h \
|
||||
encoding/payloads/vendor_id_payload.h encoding/payloads/proposal_substructure.c encoding/payloads/payload.c \
|
||||
encoding/parser.h encoding/message.c encoding/generator.c encoding/message.h encoding/generator.h \
|
||||
encoding/parser.c daemon.c daemon.h network/packet.c \
|
||||
network/socket.c network/packet.h network/socket.h queues/jobs/job.h queues/jobs/job.c \
|
||||
queues/jobs/delete_established_ike_sa_job.c queues/jobs/retransmit_request_job.h queues/jobs/initiate_ike_sa_job.h \
|
||||
queues/jobs/incoming_packet_job.c queues/jobs/delete_half_open_ike_sa_job.c \
|
||||
queues/jobs/delete_established_ike_sa_job.h queues/jobs/delete_half_open_ike_sa_job.h \
|
||||
queues/jobs/incoming_packet_job.h queues/jobs/retransmit_request_job.c queues/jobs/initiate_ike_sa_job.c \
|
||||
queues/job_queue.c queues/event_queue.c queues/send_queue.h queues/job_queue.h queues/event_queue.h \
|
||||
queues/send_queue.c threads/kernel_interface.c threads/thread_pool.c threads/scheduler.c threads/sender.c \
|
||||
threads/sender.h threads/kernel_interface.h threads/scheduler.h threads/receiver.c threads/stroke_interface.c \
|
||||
threads/thread_pool.h threads/receiver.h threads/stroke_interface.h
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/charon -I$(top_srcdir)/src/stroke
|
||||
AM_CFLAGS = -DIPSEC_CONFDIR=\"${confdir}\" -DIPSEC_PIDDIR=\"${piddir}\"
|
||||
LDADD = $(top_builddir)/src/libstrongswan/libstrongswan.la -lgmp -lpthread
|
|
@ -1,25 +0,0 @@
|
|||
# Copyright (C) 2006 Martin Willi
|
||||
# Hochschule fuer Technik Rapperswil
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by the
|
||||
# Free Software Foundation; either version 2 of the License, or (at your
|
||||
# option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# for more details.
|
||||
#
|
||||
CHARON_DIR= $(MAIN_DIR)charon/
|
||||
|
||||
$(BUILD_DIR)daemon.o : $(CHARON_DIR)daemon.c $(CHARON_DIR)daemon.h
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
|
||||
include $(CHARON_DIR)network/Makefile.network
|
||||
include $(CHARON_DIR)config/Makefile.config
|
||||
include $(CHARON_DIR)encoding/Makefile.encoding
|
||||
include $(CHARON_DIR)queues/Makefile.queues
|
||||
include $(CHARON_DIR)sa/Makefile.sa
|
||||
include $(CHARON_DIR)threads/Makefile.threads
|
|
@ -1,32 +0,0 @@
|
|||
# Copyright (C) 2005 Jan Hutter, Martin Willi
|
||||
# Hochschule fuer Technik Rapperswil
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by the
|
||||
# Free Software Foundation; either version 2 of the License, or (at your
|
||||
# option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# for more details.
|
||||
#
|
||||
|
||||
CONFIG_DIR= $(CHARON_DIR)config/
|
||||
|
||||
|
||||
CHARON_OBJS+= $(BUILD_DIR)traffic_selector.o
|
||||
$(BUILD_DIR)traffic_selector.o : $(CONFIG_DIR)traffic_selector.c $(CONFIG_DIR)traffic_selector.h
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
CHARON_OBJS+= $(BUILD_DIR)proposal.o
|
||||
$(BUILD_DIR)proposal.o : $(CONFIG_DIR)proposal.c $(CONFIG_DIR)proposal.h
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
CHARON_OBJS+= $(BUILD_DIR)configuration.o
|
||||
$(BUILD_DIR)configuration.o : $(CONFIG_DIR)configuration.c $(CONFIG_DIR)configuration.h
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
include $(CONFIG_DIR)connections/Makefile.connections
|
||||
include $(CONFIG_DIR)credentials/Makefile.credentials
|
||||
include $(CONFIG_DIR)policies/Makefile.policies
|
|
@ -1,24 +0,0 @@
|
|||
# Copyright (C) 2006 Martin Willi
|
||||
# Hochschule fuer Technik Rapperswil
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by the
|
||||
# Free Software Foundation; either version 2 of the License, or (at your
|
||||
# option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# for more details.
|
||||
#
|
||||
|
||||
CONNECTIONS_DIR= $(CONFIG_DIR)connections/
|
||||
|
||||
|
||||
CHARON_OBJS+= $(BUILD_DIR)connection.o
|
||||
$(BUILD_DIR)connection.o : $(CONNECTIONS_DIR)connection.c $(CONNECTIONS_DIR)connection.h
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
CHARON_OBJS+= $(BUILD_DIR)local_connection_store.o
|
||||
$(BUILD_DIR)local_connection_store.o : $(CONNECTIONS_DIR)local_connection_store.c $(CONNECTIONS_DIR)local_connection_store.h
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
|
@ -1,20 +0,0 @@
|
|||
# Copyright (C) 2006 Martin Willi
|
||||
# Hochschule fuer Technik Rapperswil
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by the
|
||||
# Free Software Foundation; either version 2 of the License, or (at your
|
||||
# option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# for more details.
|
||||
#
|
||||
|
||||
CREDENTIALS_DIR= $(CONFIG_DIR)credentials/
|
||||
|
||||
|
||||
CHARON_OBJS+= $(BUILD_DIR)local_credential_store.o
|
||||
$(BUILD_DIR)local_credential_store.o : $(CREDENTIALS_DIR)local_credential_store.c $(CREDENTIALS_DIR)local_credential_store.h
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|