########################################################################
###                                                                  ###
### This makefile is output of the Makefile AutoWriter, developed by ###
###                                                                  ###
###                  THE RICE INVERSION PROJECT                      ###
###                                                                  ###
###       copyright (C) 1995, 1996 The Rice Inversion Project        ###
###                                                                  ###
###  The GNU Library General Public License applies to this file     ###
###  and to all other source files in this directory and its         ###
###  subdirectories. The text of the GNU Library General Public      ###
###  License is available from the Free Software Foundation, Inc.,   ###
###  675 Mass Ave, Cambridge, MA 02139, USA.                         ###
###                                                                  ###
###  These codes are distributed 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.                                               ###
###                                                                  ###
########################################################################
 
########################## TRIP LOCAL RULES ############################
 
SHELL      = /bin/sh
TOP        = .
RULES      = ${TRIPROOT}/rules
SHELLS     = ${TRIPROOT}/shells
LASTARCH   = SGI64
LASTENDIAN = BIG
TRIPARCH   = $(shell (exec ${SHELLS}/pvmgetarch))
ENDIAN     = $(shell (exec ${SHELLS}/getendian))
INCLUDES = ${TRIPROOT}/include
SRCROOT  = ${TOP}/src
DATAROOT = .
BINDIR   =
LIBDIR   =
 
############################# TOP STANDARD RULES #######################
 
include ${RULES}/Make.top
 
############################# LOCAL DEFINITIONS ########################
 
SUBDIRS = cogtest src test
 
######################## TARGET DEFINITIONS ############################
 
default: checkarch
	@(for i in $(SUBDIRS) ; \
	do \
		(cd $$i ; echo "making in $$i";  $(MAKE) ) ; \
	done)
 
 
clean: jclean
	@(for i in $(SUBDIRS) ; \
	do \
		(cd $$i ; $(MAKE) clean ) ; \
	done)
 
makefile: makefile.local makefile.subs
 
makefile.subs:
	@(for i in $(SUBDIRS) ; \
	do \
		(cd $$i ; \
		${SHELLS}/maw ${TOP}/.. ; \
		$(MAKE) makefile.subs ) ; \
	done)
 
makefile.local:
	@(${SHELLS}/maw ${TOP})
 
checkarch:
	@(if [ ${TRIPARCH} != ${LASTARCH} ]; then \
		((if [ -d Orig ]; then \
			(if [ ${ENDIAN} != ${LASTENDIAN} ]; then \
				(cd Orig; swapem; cd ..); fi); fi); \
		${MAKE} makefile.local; \
		${MAKE} clean); \
	fi )
 
######################### BOTTOM STANDARD RULES ########################
 
include $(RULES)/Make.bottom
 
####################### HEADER DEPENDENCE RULES ########################
 
