#
# Makefile for the Linux IPSEC feature
#
# 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.
#
# 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.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
#
# $Id: Makefile,v 0.5 1997/06/03 04:24:48 ji Rel $
#
# $Log: Makefile,v $
# Revision 0.5  1997/06/03 04:24:48  ji
# Added ESP-3DES-MD5-96
#
# Revision 0.4  1997/01/15 01:32:59  ji
# Added new transforms.
#
# Revision 0.3  1996/11/20 14:22:53  ji
# *** empty log message ***
#
#
# 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).
#
# Note 2! The CFLAGS definition is now in the main makefile...

MODFLAGS += -DDEBUG_IPSEC_AH -DDEBUG_IPSEC_ESP

O_TARGET := ipsec.o
O_OBJS := ipsec_init.o ipsec_xform.o ipsec_netlink.o ipsec_radij.o radij.o ipsec_tunnel.o ipsec_ipe4.o hashes/ipsec_md5c.o hashes/ipsec_sha1.o hashes/ipsec_rmd160.o ciphers/ipsec_cast.o ciphers/ipsec_blf.o ciphers/libdeslite.o
M_OBJS := $(O_TARGET)


ifeq ($(CONFIG_IPSEC_AH),y)
O_OBJS += ipsec_ah.o ipsec_ah_old.o ipsec_ah_new.o
endif

ifeq ($(CONFIG_IPSEC_ESP),y)
O_OBJS += ipsec_esp.o ipsec_esp_old.o ipsec_esp_new.o
endif

include $(TOPDIR)/Rules.make

tar:
		tar -cvf /dev/f1 .

ciphers/libdeslite.o:
	( cd ciphers/libdeslite; $(MAKE) libdeslite.o; cp libdeslite.o .. )
	
