##############################################################
# Name: /home/users/otso/official/otso/isoaddrs/SCCS/s.Makefile
# Vers: 2.5    Time: 92/08/04, 16:25:21
#
# Copyright (c) 1992      Technical Research Centre of Finland (VTT)
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose and without fee is hereby granted, provided
# that this notice and the reference to this notice appearing in each software
# module be retained unaltered, and that the name of any contributors shall not
# be used in advertising or publicity pertaining to distribution of the software
# without specific written prior permission.  No contributor makes any
# representations about the suitability of this software for any purpose.
# It is provided "as is" without any express or limited warranty.
#
#			NO WARRANTY
#
# ALL CONTRIBUTORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS.  IN NO
# EVENT SHALL ANY CONTRIBUTOR BE LIABLE FOR ANY SPECIAL, PUNITIVE, INDIRECT OR
# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
# DATA, OR PROFITS, WHETHER IN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH, THE USE OR PERFORMANCE
# OF THIS SOFTWARE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THIS
# SOFTWARE IS WITH YOU.  SHOULD THIS SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE
# COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
#
# As used above, "contributor" includes, but is not limited to :
#        The Technical Research Centre of Finland
#############################################################################

###############################################################################
#   Instructions to Make, for compilation of DVOPS OS process
###############################################################################

LIBES	=	libisoaddrs.a 

##################################################################
# things to make:
##################################################################

all:		libisoaddrs
inst-all:	inst-libisoaddrs 
install:	inst-all clean
lint:		l-libisoaddrs


################################################################
# libisoaddrs
################################################################

CFILES	=	isoaddrs.cxx 

OFILES	=	isoaddrs.o 

inst-libisoaddrs:	$(LIBDIR)libisoaddrs.a

$(LIBDIR)libisoaddrs.a:	libisoaddrs.a
		-rm -f $@
		cp libisoaddrs.a $@
		-rm $(TOPDIR)libisoaddrs.a
		@$(UTILDIR)make-lib.sh $(SYSTEM) $@ -ranlib
		-@ls -gls $@
		-@echo ""

libisoaddrs:	libisoaddrs.a

libisoaddrs.a:	isoaddrsvrsn.o
		-rm -f $@
		@$(UTILDIR)make-lib.sh $(SYSTEM) $(ARFLAGS) $@ $(OFILES) \
			isoaddrsvrsn.o
		-@rm -f $(TOPDIR)libisoaddrs.a 
		-@$(LN) libisoaddrs.a $(TOPDIR)libisoaddrs.a
		-@ls -l $@
		-@echo "libisoaddrs built normally"

################################################################
# source code
################################################################

isoaddrsvrsn.c:	$(OFILES)
		@$(UTILDIR)version.sh isoaddrs > $@
		-@chmod 666 $@

hexplode.o:	$(ISOADDRH)
isoaddrs.o:	$(ISOADDRH)	$(OBJECTH)
isohosts.o:	$(ISOADDRH)
isomacros.o:	$(ISOADDRH)
isoservices.o:	$(ISOADDRH)
na2norm.o:	$(ISOADDRH)
sel2str.o:	$(ISOADDRH)
str2vec.o:	$(ISOADDRH)

################################################################
# Documentation
################################################################

DOCS	=	isoaddr.doc

documents:;	@for i in $(DOCS); \
		  do (echo "---- " $$i " ----" >> $(TOPDIR)/master.doc; \
			cat $$i >> $(TOPDIR)/master.doc); \
		  done
		echo "" >> $(TOPDIR)/master.doc

################################################################
# clean
################################################################

clean:;		rm -f *.o *.a core *.old *.tmp *.i *.ixx \
			version.major version.minor version.local \
			*vrsn.c $(CLEANSTRINGS)


