#############################################################################
#
#                   Copyright (C) 1994 SciTech Software
#                           All rights reserved.
#
# Descripton:   Generic makefile for the Techniques Class Library.
#               Calls upon the appropriate include file to bring in the
#               correct definitions for compiling with the sepecified
#               compiler. By default Borland C++ 3.1 is assumed.
#
# $Id$
#
#############################################################################

!if $d(checks)
CC_DOPT         = -DDEBUG=2
LIBNAME         = techdb            # Name of library file to create
!else
LIBNAME         = tech              # Name of library file to create
!endif

!include "\makedefs\makedefs.def"

# All the object modules in the library

OBJECTS =   dlist.obj list.obj hashtab.obj error.obj options.obj str.obj    \
            dynstr.obj substr.obj memmgr.obj hash_c.obj point.obj           \
            rect.obj

all: $(LIBFILE) install_inc

lib: $(LIBFILE)

$(LIBFILE): $(OBJECTS)
    buildrsp $(RSP_OPT) &&!|
    $(OBJECTS)
!   > tech.rsp
    $(LIB) $(LIB_FLAGS) $< @tech.rsp
    @del tech.rsp

# Install the header files in the correct directory for normal use

install_inc:
    @copy *.hpp $(INC_DEST)

!include "\makedefs\common.def"

