head     1.1;
branch   1.1.1;
access   ;
symbols  nastore3-beta-20000227:1.1.1.1 NAS:1.1.1;
locks    ; strict;
comment  @# @;


1.1
date     2000.02.28.02.18.32;  author wrstuden;  state Exp;
branches 1.1.1.1;
next     ;

1.1.1.1
date     2000.02.28.02.18.32;  author wrstuden;  state Exp;
branches ;
next     ;


desc
@@



1.1
log
@Initial revision
@
text
@SHELL=/bin/sh

#
# Linking
#
VOLLIB		= ../../libvol.a
RCLIB		= ../rclib.o
PROGS		= protorc

#
# Compilation
#
INCLUDE		= -I../../
CFLAGS		= -g -cxdb -DCONVEX -DCONVEX_EXT -DANSI_C $(INCLUDE)
CC		= cc

#
# Installation
#
INSTALL		= ../../install

#
# Rules
#
all:		first_depend $(PROGS)

# manual 3480/3490 & 3420 RC - superseded by vaultrc

protorc:	protorc.o $(RCLIB) $(VOLLIB)
	VOLMANACCT=`../../../config.sh VOLMANACCT`; \
	SPOOLDIR=`../../../config.sh SPOOLDIR`;\
		$(CC) -o -DSPOOLDIR=\"$(SPOOLDIR)\" \
			-DVOLMANACCT=\"$(VOLMANACCT)\" \
			protorc protorc.o $(RCLIB) $(VOLLIB)

$(VOLLIB):
	VOLMANACCT=`../../../config.sh VOLMANACCT`; \
	SPOOLDIR=`../../../config.sh SPOOLDIR`;\
		cd ../.. && $(MAKLE) libvol.a

$(RCLIB):
	VOLMANACCT=`../../../config.sh VOLMANACCT`; \
	SPOOLDIR=`../../../config.sh SPOOLDIR`;\
		cd .. && $(MAKE) rclib.o

# install

install:	
	VOLMANACCT=`../../../config.sh VOLMANACCT`; \
	INSDIR=`../../../config.sh LIBDIR`; \
		$(INSTALL) protorc $$PROTO$$INSDIR -o -u $$VOLMANACCT


# clean

clean:
	rm -f *.o

clobber: clean
	rm -f $(PROGS)


DEPEND=	Depend
depend:
	@@chmod +w $(DEPEND)
	@@echo '#first_depend:	depend' > $(DEPEND)
	@@echo '#	@@$(MAKE) all' >> $(DEPEND)
	@@echo 'first_depend:;@@true' >> $(DEPEND)
	@@echo '' >> $(DEPEND)
	@@echo '# DO NOT DELETE THIS LINE' >> $(DEPEND)
	@@mkdep -f $(DEPEND) $(CFLAGS) protorc.c
	@@chmod -w $(DEPEND)

-include	./Depend
@


1.1.1.1
log
@Import of snapshot of nastore3 code. Includes kernel code for dmfs, dmfs
user utilities, ms66 import and export, vvm, and volman. Also includes
makefile magic to automatically generate .tgz source files from the source.
Solaris support a bit of a question as zoularis is not working at the
moment.
@
text
@@
