##############################################################
# Name: /home/users/otso/official/otso/tools/SCCS/s.Makefile
# Vers: 5.1    Time: 92/07/09, 10:00:30
#
# 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
###############################################################################

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

all:		funny unfunny ppp gnoop decode bgrep otsogrep dingrep 

install:	clean

inst-all:;	-@echo ""
		-rm ../bin/funny
		-ln -s ../tools/funny ../bin/funny
		-rm ../bin/unfunny
		-ln -s ../tools/unfunny ../bin/unfunny
		-rm ../bin/ppp
		-ln -s ../tools/ppp ../bin/ppp
		-rm ../bin/gnoop
		-ln -s ../tools/gnoop ../bin/gnoop

lint:		l-libdvops


################################################################
# libdvops
################################################################

CFILES	=	funny.c unfunny.c gnoop.c decode.c \
		bgrep.cxx otsogrep.cxx dingrep.cxx

OFILES	=	funny.o unfunny.o gnoop.o decode.o \
		bgrep.o otsogrep.o dingrep.o

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

funny: funny.c
	cc funny.c -o funny

unfunny: unfunny.c
	cc unfunny.c -o unfunny

ppp:	ppp.c
	cc -O ppp.c -o ppp

gnoop:	gnoop.c
	cc -O gnoop.c -o gnoop

decode:	decode.c
	cc -O decode.c -o decode

bgrep:		bgrep.cxx
		CC bgrep.cxx -o bgrep

otsogrep:	otsogrep.cxx
		CC otsogrep.cxx -o otsogrep

dingrep:	dingrep.cxx
		CC dingrep.cxx -o dingrep

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

DOCS	=	dvops.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 \
			$(CLEANSTRINGS)


tar-clean:	clean
		rm -f funny unfunny decode bgrep otsogrep dingrep

