######################################################################
# Makefile                                                 August 2005
#
# KSSLD: An implementation of SSL/TLS in the Linux Kernel
# Copyright (C) 2005  NTT COMWARE Corporation.
#
# This file based in part on code from LVS www.linuxvirtualserver.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.
# 
# 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., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
#
#####################################################################

include ../../../Makefile.base

SUBDIRS = 

DISTFILE = 	Makefile alert_t.h base_t.h change_cipher_spec_t.h \
		cipher_suite_t.h handshake_t.h record_t.h \
		security_parameters_t.h ssl2_record_t.h

.PHONY: all install unintall clean distclean dist

all:
		@for i in $(SUBDIRS); do $(MAKE) -C $$i all || exit 1; done

install:	modules_install
		@for i in $(SUBDIRS); do $(MAKE) -C $$i install || exit 1; done

uninstall:	modules_uninstall
		@for i in $(SUBDIRS); do $(MAKE) -C $$i uninstall || exit 1; \
			done

clean:
		@for i in $(SUBDIRS); do $(MAKE) -C $$i clean || exit 1; done

distclean:	clean
		@for i in $(SUBDIRS); do $(MAKE) -C $$i distclean || exit 1; \
			done

dist:
		mkdir $(DISTDIR)/
		@for i in $(SUBDIRS); do \
			$(MAKE) DISTDIR="../$(DISTDIR)/$$i" -C $$i dist \
				|| exit 1; done
		install -m 644 $(DISTFILE) $(DISTDIR)	
