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.27;  author wrstuden;  state Exp;
branches 1.1.1.1;
next     ;

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


desc
@@



1.1
log
@Initial revision
@
text
@-include	../Makefile.inc

CONFIG1=	${PREFIX}/share/nastore/NASConfig.mk
CONFIG2=	${PREFIX}/share/nastore/NASConfig.volman.mk

include		${CONFIG1}
include		${CONFIG2}

CONFIG =	$(CONFIG1) $(CONFIG2)
#
########## hacking flags - many not used for a long time, probably broken
#
#    general #ifdef flags: add -Dflag to 'CPPFLAGS' below to turn on
#
#       DEBUG        - enables miscellaneous extra checks & reporting
#       MALLOC_DEBUG - turn on malloc checking
#
CPPFLAGS+=
#
########## END OF CONFIGURATION SECTIONS

CPPFLAGS+=	${STDCPPFLAGS}

# on SGI, LIBS seem to need to be ordered: VOL then NAS
#
# LDADD libs will be added to each program, while LDADD_prog will only
# apply to program prog.
#
LDFLAGS+=	${STDLDFLAGS}
LDADD_ALL+=	-lvolsrv -lvol -lnasutil
LDADD_vold+=	-ldb3 -lavltree
LDADD_vaudit+=	-lavltree

PROGS=	vold voltimer vaudit

MAN=	vold.1m vaudit.1m

SRCS_vold=	rp_1.c rp_2.c rp_3.c rp_4.c rp_5.c rp_config.c rp_host.c \
		rp_q.c rp_init.c rp_msg.c rp_clnt.c rp_device.c rp_db.c \
		rp_rid.c rp_vol.c rp_xdr.c rp_$(VOLMAN_IPC).c

#SRCS_prog defaults to prog.c, so for the single src files, we just leave
#SRC_foo empty.
#SINGLESRC= voltimer.c vaudit.c

dbtrans:	dbtrans.c rp_db.h $(CONFIG)
		$(CC) $(CFLAGS) $@@.c -o $@@ $(LDADD) $(LDFLAGS)

debug:		debug.c ${CONFIG}
		${CC} ${CFLAGS} ${LDFLAGS} $@@.c -o $@@ ${LDADD}

#voldinstall:	clntinstall vold
#		$(INSTALL) vold		$$PROTO$(BINDIR) -m 4755 -u root -o 
#		$(INSTALL) voltimer	$$PROTO$(LIBDIR) -m 4755 -u root -o 
#		$(INSTALL) vaudit       $$PROTO$(BINDIR) -u $(VOLMANACCT)

# Shouldn't vaudit be SUID $(VOLMANACCT) ??

BINDIR=			${SBINDIR}

BINMODE_vold=		4555
BINMODE_voldtimer=	4555
BINOWN_vaudit=		$(VOLMANACCT)

BINDIR_voltimer=	${LIBEXECDIR}

.include	"${SHAREDIR}/bsd.manyprog.mk"

${OBJS}:	${CONFIG}

LINTFLAGS+=	-L${LINTLIBDIR}
@


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
@@
