# Generated automatically from Makefile.in by configure.
# $Id: Makefile.in,v 1.19 2007/07/24 13:43:57 kamada Exp $

ALLSUBDIR=lib spmd iked kinkd pskgen samples
SUBDIR=lib spmd iked kinkd pskgen samples

srcdir=.
prefix=/usr/local/racoon2
exec_prefix=${prefix}
sbindir=${exec_prefix}/sbin
sysconfdir=${prefix}/etc/racoon2

INSTALL =/usr/bin/install -c
INSTALL_PROG=${INSTALL}
INSTALL_OPTS=

all: build

build: build-recursive

build-recursive: .MAKE
	for d in $(SUBDIR) ; do \
		if test -d $$d ; then \
			echo "===> Change directory to $$d" ; \
			(cd $$d && $(MAKE)) || exit 1 ; \
		fi ; done

install: install-recursive

install-recursive: .MAKE
	for d in $(SUBDIR) ; do \
		if test -d $$d ; then \
			echo "===> Change directory to $$d" ; \
			(cd $$d && $(MAKE) install) || exit 1 ; \
		fi ; done

# pmake does not require '-' before MAKEFLAGS but gmake does.
# Recent makes automatically pass command line options to submakes via
# environment variables, so we actually don't need MFLAGS nor MAKEFLAGS here.

clean: clean-recursive

clean-recursive: .MAKE
	-for d in $(ALLSUBDIR) ; do \
		if test -d $$d; then \
			echo "===> Change directory to $$d" ; \
			(cd $$d && $(MAKE) clean) \
		fi ; done

distclean: distclean-recursive
	-rm -f Makefile config.cache config.status config.log

distclean-recursive: .MAKE
	-for d in $(ALLSUBDIR) ; do \
		if test -d $$d; then \
			echo "===> Change directory to $$d" ; \
			(cd $$d && $(MAKE) distclean) \
		fi ; done

depend: depend-recursive

depend-recursive: .MAKE
	for d in $(SUBDIR) ; do \
		if test -d $$d; then \
			echo "===> Change directory to $$d" ; \
			(cd $$d && $(MAKE) depend) || exit 1 ; \
		fi ; done

# dummy target for gmake.  gmake magically works recursively with -n.
.MAKE:
