head     1.2;
branch   ;
access   ;
symbols  ;
locks    ; strict;
comment  @# @;


1.2
date     94.08.22.13.06.41;  author cfields;  state Exp;
branches ;
next     1.1;

1.1
date     93.11.11.07.12.11;  author miki;  state Exp;
branches ;
next     ;


desc
@@


1.2
log
@Renamed inst-all to install
Added -O for debug flags. (??)
7.7 checkin; changes by miki
@
text
@##############################################################################
#    Instructions to Make, for compilation of ZOT UIP/utility processes
#
#	@@(MHWARNING)
# @@(#)zotnetM,v 1.1.1.1 1993/01/30 04:40:17 jtc Exp
##############################################################################

# The following entries were inserted during MH configuration
OPTIONS	=	@@(MHOPTIONS)

CC	=	@@(MHCOMPILER)
@@BEGIN: OPTIM
CFLAGS	=	 $(OPTIONS) -I.
@@END: OPTIM
@@BEGIN: DEBUG
CFLAGS	=	   -O  $(OPTIONS) -I.
@@END: DEBUG
LFLAGS	=	-bhu $(OPTIONS) -I.

LIB	=	libzot.a
LLIB	=	llib-lzotnet

OFILES	=	mts/mts.o mts/lock.o mts/client.o mf/mf.o \
@@BEGIN: MHMTS
		mf/mmuu.o mf/uumm.o \
@@END: MHMTS
		bboards/getbbent.o \
		tws/dtime.o tws/dtimep.o tws/lexstring.o

MAKE	=	make DESTDIR=$(DESTDIR) $(MFLAGS)
SHELL	=	/bin/sh

DIRS	=	mts bboards tws mf


@@BEGIN: OPTIM
##############################################################################
#	Generation Rules
##############################################################################

.c.o:;		$(CC) $(CFLAGS) -c $*.c
@@BEGIN: NEWLOAD
		-ld -x -r $@@
		mv a.out $@@
@@END: NEWLOAD
@@BEGIN: OLDLOAD
		cc -s -o $@@
@@END: OLDLOAD


@@END: OPTIM

.c:;		echo $@@

##############################################################################
#	Generate ZOTnet subroutine library
##############################################################################

all:		allaux $(LIB)

$(LIB):		$(OFILES)
		-mv $@@ z$@@
@@BEGIN: RANLIB
		ar r $@@ $(OFILES); ranlib $@@
@@END: RANLIB
@@BEGIN: LORDER
		ar r $@@ `lorder $(OFILES) | tsort`
@@END: LORDER
		-@@ls -l $@@
		-@@echo "ZOTnet library built normally"

allaux:;	for d in $(DIRS); do (cd $$d; $(MAKE) all); done

depend:;	for d in $(DIRS); do (cd $$d; $(MAKE) depend); done

lint:;		for d in $(DIRS); do (cd $$d; $(MAKE) lint); done


##############################################################################
#	Installation
##############################################################################

install:;	for d in $(DIRS); do (cd $$d; $(MAKE) install); done


tar:;		@@for d in $(DIRS); \
		    do (cd $$d; $(MAKE) TFLAGS="$(TFLAGS)" tar); done

uninstall:;	for d in $(DIRS); do (cd $$d; $(MAKE) uninstall); done


##############################################################################
#	Miscellaneous tasks
##############################################################################

unconfig:;	-rm -f $(LIB) z$(LIB) _* :* *.o core
		for d in $(DIRS); do (cd $$d; $(MAKE) unconfig); done
		-rm -f Makefile

distribution:;	-rm -f $(LIB) z$(LIB) _* :*
		for d in $(DIRS); do (cd $$d; $(MAKE) distribution); done

clean:;		-rm -f $(LIB) z$(LIB) _* :* *.o core
		for d in $(DIRS); do (cd $$d; $(MAKE) clean); done

unclean:;	-rm -f z$(LIB) _* :* core
		for d in $(DIRS); do (cd $$d; $(MAKE) unclean); done
@


1.1
log
@Initial revision
@
text
@d13 1
a13 1
CFLAGS	=	$(OPTIONS) -I.
d16 1
a16 1
CFLAGS	=	     $(OPTIONS) -I.
d83 1
a83 1
install:	inst-all clean
a84 1
inst-all:;	for d in $(DIRS); do (cd $$d; $(MAKE) inst-all); done
@
