# $Id: Makefile,v 1.3 1996/07/01 04:21:08 mtp Exp $
############################################################################
#    
#  COPYRIGHT NOTICE
#    
#  Copyright (C) 1995, 1996 Michael T. Peterson
#  This file is part of the PCthreads (tm) multithreading library
#  package.
#    
#  The source files and libraries constituting the PCthreads (tm) package
#  are free software; you can redistribute them and/or modify them under
#  the terms of the GNU Library General Public License as published by the Free
#  Software Foundation; either version 2 of the License, or (at your
#  option) any later version.
#    
#  The PCthreads (tm) package 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
#  Library General Public License for more details.
#    
#  You should have received a copy of the GNU Library General Public
#  License along with this library (see the file COPYING.LIB); if not,
#  write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
#  MA 02139, USA.
#    
#  To report bugs, bug fixes, or provide feedback you may contact the
#  author, Michael T. Peterson, at either of the two email addresses listed
#  below:
#    
#                 mtp@big.aa.net (Preferred)
#                 mtp@zso.dec.com
#    
#    
#  Michael T. Peterson
#  Issaquah, WA
#  29 January, 1996
############################################################################
# $Log: Makefile,v $
# Revision 1.3  1996/07/01 04:21:08  mtp
# + Cosmetic changes - spacing, margins, etc.
#
# Revision 1.2  1996/06/30 22:14:10  mtp
# + Added a how rule
#
# Revision 1.1.1.1  1996/06/30 15:50:53  mtp
# DCE threads for Linux V1.0
#
############################################################################
include ./Make.defs

all:
	@for dir in ${APPDIRS}; do \
	(cd $$dir; $(MAKE) all); done

dist_clean: clobber_aout clobber_elf

clobber_aout:
	@for dir in ${APPDIRS}; do \
	(cd $$dir; $(MAKE) clobber); done;
	@rm -f *.bak *~ *.rem

clobber_elf:
	@for dir in ${APPDIRS}; do \
	(cd $$dir; $(MAKE) ISELF=yes clobber); done;
	@rm -f *.bak *~ *.rem

clean:
	@for dir in ${APPDIRS}; do \
	(cd $$dir; $(MAKE) clean); done;
	@rm -f *.bak *~ *.rem

dist.clean: clobber_all
	@rm -f *.bak *~ *.rem;

install:
	@cd etc; install-dcethreads.sh

remove:
	@cd etc; remove-dcethreads.sh
        
how:
	@echo ""
	@echo "  ***********************************************************"
	@echo "  Set the DEVROOT environment variable to the current working"
	@echo "  directory (i.e., the one containing this file).  You can do"
	@echo "  this using the C-shell as follows:"
	@echo ""
	@echo "     prompt> setenv DEVROOT "`pwd`""
	@echo ""
	@echo "  Or more simply,"
	@echo ""
	@echo "     prompt> setenv DEVROOT \`pwd\`"
	@echo ""
	@echo "  That's all there is to it.  Cheers"
	@echo "  **********************************************************"
	@echo ""
	@exit 0

