#
# This file is part of the OLH system
# Imakefile for b+tree/btlib directory.
#
# Copyright (C) 1991 by the Massachusetts Institute of Technology.
# For copying and distribution information, see the file "mit-copyright.h."
#
#       $Source: /afs/athena.mit.edu/astaff/project/olhdev/src/b+tree/btlib/RCS/Imakefile,v $
#       $Id: Imakefile,v 1.1 91/05/03 14:27:37 lwvanels Exp $
#       $Author: lwvanels $
#

LIBDIR = /mit/olhdev/`machtype`lib

SRCS= btclose.c btdebug.c btdelete.c bterrors.c btfind.c btgoto.c \
      btinsert.c btio.c btlabel.c btload.c btopen.c btoopen.c btpage1.c \
      btpage2.c btravrs.c btseek.c btzap.c netio.c  

OBJS= btclose.o btdebug.o btdelete.o bterrors.o btfind.o btgoto.o \
      btinsert.o btio.o btlabel.o btload.o btopen.o btoopen.o btpage1.o \
      btpage2.o btravrs.o btseek.o btzap.o netio.o  

#ifdef Profiling
P_DEFINES= -DPROFILE
#else
P_DEFINES=
#endif /* Profiling */

DEFINES = $(P_DEFINES)

#ifdef Profiling
all::
        -if [ ! -d profiled ]; \
                then mkdir profiled; \
                else exit 0; fi
#endif

NormalLibraryTarget(btree,$(OBJS))
SaberLibraryTarget(btree,$(SRCS),$(OBJS))

#ifdef Profiling
ProfiledLibraryObjectRule()
ProfiledLibraryTarget(btree,$(OBJS))
#endif

InstallLibrary(btree,$(LIBDIR))
#ifdef Profiling
InstallLibrary(btree_p,$(LIBDIR))
#endif

LintTarget()
DependTarget()
