#
# COPYRIGHT INFORMATION - DO NOT REMOVE
# "Portions Copyright (c) 2000-2001 LinuxMagic Inc. All Rights Reserved.
#
# This file contains Original Code and/or Modifications of Original Code as
# defined in and that are subject to the Free Source Code License Version
# 1.0 (the 'License'). You may not use this file except in compliance with
# the License. Please obtain a copy of the License at:
#
# http://www.linuxmagic.com/opensource/licensing/FSCL.txt
#
# and read it before using this file.
#
# The Original Code and all software distributed under the License are
# distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
# EXPRESS OR IMPLIED, AND LINUXMAGIC HEREBY DISCLAIMS ALL SUCH WARRANTIES,
# INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS
# FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see
# the License for the specific language governing rights and limitations
# under the License."
#
# Please read the terms of this license carefully. By using or downloading
# this software or file, you are accepting and agreeing to the terms of this
# license with LinuxMagic Inc. If you are agreeing to this license on behalf
# of a company, you represent that you are authorized to bind the company to
# such a license. If you do not meet this criterion or you do not agree to
# any of the terms of this license, do NOT download, distribute, use or alter
# this software or file in any way.
#
# Author: Josh Wilsdon (josh@wizard.ca)
# CVS Id: $Id: Makefile,v 1.2 2003/08/27 20:14:12 josh Exp $
#
# DO NOT MODIFY WITHOUT CONSULTING THE LICENSE
#

MAKE=make

all: 
	@$(MAKE) WHAT_TO_MAKE=$@ common

clean:
	@rm -vf *.so
	@$(MAKE) WHAT_TO_MAKE=$@ common

common:
	@for i in `find ./ -type d -maxdepth 1 -name 'mod_*'`; do \
		what=$(WHAT_TO_MAKE); \
		(cd $$i && $(MAKE) $(MFLAGS) $$what) || exit 1; \
	done

