#
#/* $Header: /afs/andrew.cmu.edu/system/src/local/depot/016/RCS/Imakefile,v 4.1 1992/01/22 15:12:04 ww0r Exp $ */
#/* $Source: /afs/andrew.cmu.edu/system/src/local/depot/016/RCS/Imakefile,v $ */
#
#/* Copyright (C) 1991 Carnegie Mellon University - All rights reserved */
#
#/*
# * Author: Sohan C. Ramakrishna Pillai
# */
#
#/*
# * $Log: Imakefile,v $
# Revision 4.1  1992/01/22  15:12:04  ww0r
# removed extra libsys.a library
#
# Revision 4.0  1991/09/25  17:36:29  sohan
# Release 4
#
# Revision 4.0  1991/09/25  16:08:52  sohan
# Version 4.0
#
# */
#
# Install using the sequence
#	make
#	make directories
#	make install
#	make install.man
#

#define ManSuffix 1
#define ManDir $(MANSOURCEPATH)/**/ManSuffix
MANDIR = ManDir	/* man pages for commands */

#define Man5Suffix 5
#define Man5Dir $(MANSOURCEPATH)/**/Man5Suffix
MAN5DIR = Man5Dir	/* man pages for files */
#ifndef InstallMan5Page
#define InstallMan5Page(file,destdir)					@@\
install.man:: file.man							@@\
	$(INSTALL) -c $(INSTMANFLAGS) file.man destdir/file.Man5Suffix
#endif InstallMan5Page

#ifdef SparcArchitecture
LDOPTIONS = -Bstatic -L/usr/local/lib $(CDEBUGFLAGS) $(CCOPTIONS)
#endif SparcArchitecture

DIRS_TO_CREATE = $(BINDIR) $(MANDIR) $(MAN5DIR) $(INCDIR)
AFSLIBS = /usr/local/lib/afs/libvolser.a /usr/local/lib/afs/vlib.a /usr/local/lib/afs/libacl.a \
    /usr/local/lib/afs/libvldb.a \
    /usr/local/lib/libubik.a \
    /usr/local/lib/afs/libauth.a /usr/local/lib/afs/libsys.a \
    /usr/local/lib/afs/libcmd.a /usr/local/lib/librxkad.a /usr/local/lib/libdes.a \
    /usr/local/lib/librx.a /usr/local/lib/liblwp.a \
    /usr/local/lib/afs/libcom_err.a /usr/local/lib/afs/libkauth.a \
    /usr/local/lib/afs/util.a

LOCAL_LIBRARIES = $(AFSLIBS)

DEFINES = -DUSE_FSINFO
CDEBUGFLAGS = -O

INSTALLHEADERS = DepotErrorCodes.h

SRCS = depot.c DepotDB.c DepotDBVersion1.c DepotDBCommand.c CollectionList.c Collection.c \
	Preference.c PreferenceUtil.c Lock.c AndrewFileSystem.c check.c update.c util.c Malloc.c
OBJS = depot.o DepotDB.o DepotDBVersion1.o DepotDBCommand.o CollectionList.o Collection.o \
	Preference.o PreferenceUtil.o Lock.o AndrewFileSystem.o check.o update.o util.o Malloc.o

ComplexProgramTarget(depot)

MakeDirectories(directories, $(DIRS_TO_CREATE))
InstallMultiple($(INSTALLHEADERS),$(INCDIR))
InstallMan5Page(custom.depot,$(MAN5DIR))
InstallMan5Page(depot.conf,$(MAN5DIR))

