##
##############################################################################
## 
##                        COPYRIGHT 1991, 1992 BY
##              DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS.
##                          ALL RIGHTS RESERVED
## 
##   THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED AND  COPIED
##   ONLY  IN  ACCORDANCE  WITH  THE  TERMS  OF  SUCH  LICENSE AND WITH THE
##   INCLUSION OF THE ABOVE COPYRIGHT NOTICE.  THIS SOFTWARE OR  ANY  OTHER
##   COPIES  THEREOF MAY NOT BE PROVIDED OR OTHERWISE MADE AVAILABLE TO ANY
##   OTHER PERSON.  NO TITLE TO AND OWNERSHIP OF  THE  SOFTWARE  IS  HEREBY
##   TRANSFERRED.
## 
##   THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE  WITHOUT  NOTICE
##   AND  SHOULD  NOT  BE  CONSTRUED  AS  A COMMITMENT BY DIGITAL EQUIPMENT
##   CORPORATION.
## 
##   DIGITAL ASSUMES NO RESPONSIBILITY FOR THE USE OR  RELIABILITY  OF  ITS
##   SOFTWARE ON EQUIPMENT WHICH IS NOT SUPPLIED BY DIGITAL.
## 
##############################################################################
##++
##   FACILITY:
## 
##       VMS-On-Mach rtl Utility Library - Makefile
## 
##   ABSTRACT:
## 
##       This is the makefile to rebuild the rtl utility library
## 
##   AUTHORS:
## 
##       Christopher Kaler
##       Bill Davenport
## 
##   CREATION DATE:      31-DEC-1991
## 
##   MODIFICATION HISTORY:
## 
## 	Version   0		cgk / davenport		31-DEC-1991
## 
## 	    Initial version
## 
##--
##

#
# Makefile to revise and build the rtl utility library
#

#
# Pull in common Makefile fragments
#

include /vmk/include/general.Makefile

CC			= gcc

CFLAGS			= -g -O $(CFLAGS)

INCLUDE			= /vmk/utilities/include/
LIB			= /vmk/utilities/lib/
VMK_BIN			= /vmk/bin/

rtl-utility-library	: rtl1				\
			  $(INCLUDE)intrinsic.h		\
			  $(INCLUDE)list.h              \
			  $(INCLUDE)mem.h               \
			  $(INCLUDE)sort.h              \
			  $(INCLUDE)str.h               \
			  $(INCLUDE)tree.h              \
			  $(INCLUDE)util.h              \
			  $(LIB)rtl.a
			  @echo $(PAD)Utility rtl library updated

rtl1			:
			  @echo $(PAD)Utility rtl library update started

$(INCLUDE)intrinsic.h	: intrinsic.h
			  @rm -f $(INCLUDE)intrinsic.h
			  @cp intrinsic.h $(INCLUDE)intrinsic.h

$(INCLUDE)list.h	: list.h
			  @rm -f $(INCLUDE)list.h
			  @cp list.h $(INCLUDE)list.h

$(INCLUDE)mem.h		: mem.h
			  @rm -f $(INCLUDE)mem.h
			  @cp mem.h $(INCLUDE)mem.h

$(INCLUDE)sort.h	: sort.h
			  @rm -f $(INCLUDE)sort.h
			  @cp sort.h $(INCLUDE)sort.h

$(INCLUDE)str.h		: str.h
			  @rm -f $(INCLUDE)str.h
			  @cp str.h $(INCLUDE)str.h

$(INCLUDE)tree.h	: tree.h
			  @rm -f $(INCLUDE)tree.h
			  @cp tree.h $(INCLUDE)tree.h

$(INCLUDE)util.h	: util.h
			  @rm -f $(INCLUDE)util.h
			  @cp util.h $(INCLUDE)util.h

$(LIB)rtl.a		: rtl.a
			  @echo $(PADX)Exporting rtl.a
			  @rm -f $(LIB)rtl.a
			  @cp rtl.a $(LIB)rtl.a

rtl.a			: intrinsic.h			\
			  list.o			\
			  mem.o				\
			  sort.o			\
			  str.o				\
			  tree.o			\
			  util.o
			  @echo $(PADX)Generating rtl.a
			  @ar cr rtl.a			\
				 list.o			\
				 mem.o			\
				 sort.o			\
				 str.o			\
				 tree.o			\
				 util.o
			  @ranlib rtl.a

list.o			: list.h			\
			  list.c

mem.o			: mem.h				\
			  mem.c

sort.o			: sort.h			\
			  sort.c

str.o			: str.h				\
			  str.c

tree.o			: tree.h			\
			  tree.c

util.o			: util.h			\
			  util.c


