# -*- Makefile -*-
#------------------------------------------------------------------
# This include will generate a specific Makefile with full
# dependency list for each target, and execute it.
#
# The following variables must be defined before including
# this file:
#
#   targets = list of targets as they are defined in the MMFile
#------------------------------------------------------------------

#--- Get the dependencies:
include $(top_dir)/gfi/make/$(HOST)/makefile.dep

#------------------------------------------------------------------
# Targets:
#------------------------------------------------------------------

all: $(targets)

lclint: 
	$(MAKE) CLEAN=lclint

#---
# SGI: The cc, make and cpp utilities on some sgi hosts are quite
#      more than primitive. Therefore, one should use the alreaady 
#      built Makefile, e.g. *.mak files for building the package.
#      Hence, no call to $(MM) should carried out on sgi hosts.
#---
$(targets): 
	$(MAKE) -f $@$(MAK) $(CLEAN) 

clean:
	$(RM) *$(OBJ) *~ *#

purge:
	$(MAKE) clean
	$(RM) *$(MAK)

