# Makefile for KLIPS kernel code as a module    for 2.6 kernels
#
# Makefile for KLIPS kernel code as a module
# Copyright (C) 1998, 1999, 2000,2001  Richard Guy Briggs.
# Copyright (C) 2002-2004	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 2008-05-20 12:26:18 evantu Exp $
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#

obj-$(CONFIG_KLIPS_ENC_3DES) += ipsec_alg_3des.o
obj-$(CONFIG_KLIPS_ENC_3DES) += cbc_enc.o
obj-$(CONFIG_KLIPS_ENC_3DES) += ecb_enc.o
obj-$(CONFIG_KLIPS_ENC_3DES) += set_key.o

ifeq ($(strip ${SUBARCH}),)
SUBARCH:=${ARCH}
endif

# the assembly version expects frame pointers, which are
# optional in many kernel builds. If you want speed, you should
# probably use cryptoapi code instead.
USEASSEMBLY=${SUBARCH}${CONFIG_FRAME_POINTER}
ifeq (${USEASSEMBLY},i386y)
obj-$(CONFIG_KLIPS_ENC_3DES) += dx86unix.o
else
obj-$(CONFIG_KLIPS_ENC_3DES) += des_enc.o
endif

#
# $Log: Makefile,v $
# Revision 1.1  2008-05-20 12:26:18  evantu
# from freescale BSP: ltib-mpc8548cds-20071214
#
#  Modified Files:
#  	Kconfig Makefile ipv4/af_inet.c
#  Added Files:
#  	ipsec/Kconfig ipsec/Makefile ipsec/Makefile.ver
#  	ipsec/README-zlib ipsec/addrtoa.c ipsec/addrtot.c
#  	ipsec/addrtypeof.c ipsec/adler32.c ipsec/anyaddr.c
#  	ipsec/datatot.c ipsec/defconfig ipsec/deflate.c
#  	ipsec/deflate.h ipsec/goodmask.c ipsec/infblock.c
#  	ipsec/infblock.h ipsec/infcodes.c ipsec/infcodes.h
#  	ipsec/inffast.c ipsec/inffast.h ipsec/inffixed.h
#  	ipsec/inflate.c ipsec/inftrees.c ipsec/inftrees.h
#  	ipsec/infutil.c ipsec/infutil.h ipsec/initaddr.c
#  	ipsec/ipcomp.c ipsec/ipsec_ah.c ipsec/ipsec_alg.c
#  	ipsec/ipsec_alg_cryptoapi.c ipsec/ipsec_esp.c
#  	ipsec/ipsec_init.c ipsec/ipsec_ipcomp.c ipsec/ipsec_ipip.c
#  	ipsec/ipsec_kern24.c ipsec/ipsec_life.c ipsec/ipsec_mast.c
#  	ipsec/ipsec_md5c.c ipsec/ipsec_ocf.c ipsec/ipsec_ocf.h
#  	ipsec/ipsec_proc.c ipsec/ipsec_radij.c ipsec/ipsec_rcv.c
#  	ipsec/ipsec_sa.c ipsec/ipsec_sha1.c ipsec/ipsec_snprintf.c
#  	ipsec/ipsec_tunnel.c ipsec/ipsec_xform.c ipsec/ipsec_xmit.c
#  	ipsec/match586.S ipsec/match686.S ipsec/pfkey_v2.c
#  	ipsec/pfkey_v2_build.c ipsec/pfkey_v2_debug.c
#  	ipsec/pfkey_v2_ext_bits.c ipsec/pfkey_v2_ext_process.c
#  	ipsec/pfkey_v2_parse.c ipsec/pfkey_v2_parser.c ipsec/prng.c
#  	ipsec/radij.c ipsec/rangetoa.c ipsec/satot.c ipsec/subnetof.c
#  	ipsec/subnettoa.c ipsec/sysctl_net_ipsec.c ipsec/trees.c
#  	ipsec/trees.h ipsec/ultoa.c ipsec/ultot.c ipsec/version.c
#  	ipsec/zutil.c ipsec/aes/Makefile ipsec/aes/aes-i586.S
#  	ipsec/aes/aes.c ipsec/aes/aes_cbc.c ipsec/aes/aes_xcbc_mac.c
#  	ipsec/aes/ipsec_alg_aes.c ipsec/alg/Config.alg_aes.in
#  	ipsec/alg/Config.alg_cryptoapi.in ipsec/alg/Config.in
#  	ipsec/alg/Makefile.alg_aes ipsec/alg/Makefile.alg_cryptoapi
#  	ipsec/alg/ipsec_alg_cryptoapi.c
#  	ipsec/alg/scripts/mk-static_init.c.sh ipsec/des/COPYRIGHT
#  	ipsec/des/INSTALL ipsec/des/Makefile ipsec/des/README
#  	ipsec/des/README.freeswan ipsec/des/VERSION
#  	ipsec/des/cbc_enc.c ipsec/des/des.doc ipsec/des/des_enc.c
#  	ipsec/des/des_opts.c ipsec/des/dx86unix.S ipsec/des/ecb_enc.c
#  	ipsec/des/ipsec_alg_3des.c ipsec/des/set_key.c
#  	ipsec/des/asm/des-586.pl ipsec/des/asm/des686.pl
#  	ipsec/des/asm/desboth.pl ipsec/des/asm/readme
#
# Revision 1.3  2005/08/12 14:13:59  mcr
# 	do not use assembly code with there are no frame pointers,
# 	as it does not have the right linkages.
#
# Revision 1.2  2005/04/29 05:13:07  mcr
# 	3DES algorithm code.
#
# Revision 1.1  2004/08/17 03:27:30  mcr
# 	klips 2.6 edits.
#
#
# Local Variables:
# compile-command: "(cd ../../.. && source umlsetup.sh && make -C ${POOLSPACE} module/ipsec.o)"
# End Variables:
#

