#############################################################################
#
#                   Copyright (C) 1994 SciTech Software
#                           All rights reserved.
#
# Descripton:   Generic makefile for the MegaVision Application Frameworks.
#               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         = mvisdb            # Name of library file to create
!else
LIBNAME         = mvis              # Name of library file to create
!endif

CC_SPECIAL      = -DPRECOMPILED_HEADERS

!include "\makedefs\makedefs.def"

# All the object modules in the library

OBJECTS =   mvision.obj                                                 \
            hotkey.obj message.obj misc.obj safetyp.obj tbackgnd.obj    \
            tbutton.obj tdesktop.obj tevent.obj tgroup.obj tmenu.obj    \
            tmenubar.obj tmenuite.obj tmouse.obj tpalette.obj           \
            tprogram.obj tview.obj twindow.obj tdialog.obj validvw.obj  \
            msgbox.obj mvtext.obj tdialog.obj tfiledlg.obj tfontmgr.obj \
            tframe.obj tinputl.obj tlabel.obj tlist.obj tmltext.obj     \
            tscrollb.obj tsttext.obj ttitleb.obj validvw.obj            \
            tmodesel.obj trendera.obj

all: $(LIBFILE) install_inc

lib: $(LIBFILE)

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

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

install_inc:
    @copy *.hpp $(INC_DEST)

!include "\makedefs\common.def"

