#******************************************************************************
#                              PACOR II SOFTWARE
#                      Property of the U.S. Government
#                              NASA/GSFC/Code 560
#******************************************************************************
#
#    UNIT NAME:
#	Makefile
#
#    PURPOSE:
#	To compile the PDP Software Control (PSC) task
#
#    INVOCATION METHOD:
#          make help
#                  to see this help message
#
#          make [ debug | purify | purifynodebug | quantify | nodebug | optimize | gprof | tcov ]
#                  to compile the PDP subsystem
#
#          make lint
#                  to run lint on *.c files
#
#          make cadre
#                  to run reverse engineering bmdl tool on *.c files
#
#          make clean
#                  to remove *%, *.lis, core, *.err, *.met, and xxx files.
#
#          make cleaner
#                  to remove *%, *.lis, core, *.err, *.met, xxx, *.o, *.ln,  
#		   precompiled units, executables, *.d , *.tcov, and pxx.
#
#    RETURNED VALUE:
#
#	TYPE = void
#
#	VALUE           DESCRIPTION
#	------------    ----------------------------
#	none
#
#    ARGUMENT LIST:
#
#       NAME 		TYPE		USE	DESCRIPTION
#       ------------	---------	---	----------------------------
#	none
#
#    EXTERNAL FILE/RECORD REFERENCES:
#
#       NAME		USE	DESCRIPTION
#       ----		---	-------------------------------------
#	none
#
#    EXTERNAL VARIABLES:
#
#       SOURCE		NAME	TYPE	USE	DESCRIPTION
#       ------		----	----	---	--------------------
#	none
#
#    EXTERNAL UNIT/MACRO/PROCEDURE/FUNCTION REFERENCES:
#
#       NAME		PURPOSE
#       ------------	----------------------------------------------
#	none
#
#    ABNORMAL TERMINATION CONDITIONS, ERROR MESSAGES:
#	none
#
#    ASSUMPTIONS, CONSTRAINTS, RESTRICTIONS:
#	none
#
#    DEVELOPMENT HISTORY:
#
#    	Author	      Change-ID	  Release      Date     Description of Change
#    	-----------   ---------	  --------   --------   -----------------------
#       J. kerich     n/a         TRACE R1.0 03/27/96   Original Implementation
#       A. Taylor     TRACE0116   TRACE R2.0 02/25/97   Add PER task
#       R. Wiechert   WIND970001  R1.0       08/20/97   Add IDF task
#
#    NOTES:
#	This file call the local Makefile files for each task in the PDP 
#	subsystem.
#
#******************************************************************************

TARGETS= clean cleaner debug nodebug optimize lint gprof tcov cadre purify purifynodebug quantify
SHELL = /usr/bin/sh

#******************************************************************************
#
#   Dependency entries
#
#******************************************************************************


help:
	@ echo "Usage:"
	@ echo "	make help"
	@ echo "		to see this help message."
	@ echo ""
	@ echo "	make [ debug | purify | purifynodebug | quantify | nodebug | optimize | gprof | tcov ]"
	@ echo "		to compile PDP subsystem."
	@ echo ""
	@ echo "	make lint"
	@ echo "		to run lint on ?*.*c and create .ln files."
	@ echo ""
	@ echo "	make cadre"
	@ echo "		to run reverse engineering bmdl tool on *.c files"
	@ echo ""
	@ echo "	make clean"
	@ echo "		to remove *%, *~, *.lis, core, *.err, *.met, and xxx files."
	@ echo ""
	@ echo "	make cleaner"
	@ echo "		to remove *%, *~, *.lis, core, *.err, *.met, xxx, *.o, *.ln,  "
	@ echo "		precompiled units, executables, *.d , *.tcov, and pxx."

$(TARGETS): FORCE
	@	cd pxxLib; $(MAKE) -f Makefile $@
	@	cd tools; $(MAKE) -f Makefile $@
	@	cd pscLib; $(MAKE) -f Makefile $@
	@	cd casLib; $(MAKE) -f Makefile $@
	@	cd casLib/csdLib; $(MAKE) -f Makefile $@
	@	cd pasLib; $(MAKE) -f Makefile $@
	@	cd pasLib/ppaLib; $(MAKE) -f Makefile $@
	@	cd rmLib; $(MAKE) -f Makefile $@
	@	cd tapLib; $(MAKE) -f Makefile $@
	@	cd cgsLib; $(MAKE) -f Makefile $@
	@	cd cgsLib/cgpLib; $(MAKE) -f Makefile $@
	@	cd pttLib; $(MAKE) -f Makefile $@
	@	cd idfLib; $(MAKE) -f Makefile $@
	@	cd pepLib; $(MAKE) -f Makefile $@
	@	cd pepLib/peiLib; $(MAKE) -f Makefile $@
	@	cd pepLib/perLib; $(MAKE) -f Makefile $@

FORCE:
