#
#
#
#
#
#
#
#
#
#
# Microsoft Windows 95/98/NT Version 
#
#Copyright (c) 1994-1999 by Dan Higdon, Tim Little, and Chuck Walbourn
#
#
#
# This file and all associated files are subject to the terms of the
# GNU Lesser General Public License version 2 as published by the
# Free Software Foundation (http://www.gnu.org).   They remain the
# property of the authors: Dan Higdon, Tim Little, and Chuck Walbourn.
# See LICENSE.TXT in the distribution for a copy of this license.
#
# THE AUTHORS MAKE NO WARRANTIES, EXPRESS OR IMPLIED, AS TO THE CORRECTNESS
# OF THIS CODE OR ANY DERIVATIVE WORKS WHICH INCORPORATE IT.  THE AUTHORS
# PROVIDE THE CODE ON AN "AS-IS" BASIS AND EXPLICITLY DISCLAIMS ANY
# LIABILITY, INCLUDING CONSEQUENTIAL AND INCIDENTAL DAMAGES FOR ERRORS,
# OMISSIONS, AND OTHER PROBLEMS IN THE CODE.
#
#
#
#                        http://www.mythos-engine.org/
#
#
#
# Created by Tim Little & Chuck Walbourn
#
#                    *** IPAS Mesh Data Exporter ***
#
# makefile
#
#      Escher is a 3D graphics system for real-time animation and
#      interaction.  Escher relies heavily on Ivory, Van Gogh and
#      Felix.
#
#      This builds an IPAS PXP program which exports data from
#      3D Studio R4 into a IFF file FORMs.
#
#
#
#      Used with Microsoft (R) Program Maintenance Utility Version 1.20
#
#

#
#
#                               Variables
#
#

# Compiling with debug results in unresolved refs.
DEBUG = NO

CALLCONV = STACK

!if "$(MYTH95ROOT)" == ""
MYTH95ROOT = \mythos95
!endif

!if "$(3DSDIR)" == ""
3DSDIR = d:\3ds4
!endif

INCPATH   = ;..\inc;..\ipas;..\fliclib;..\..\inc;$(MYTH95ROOT)\inc;

#Ŀ
# File specific variables                                                  
#

LIBPATH = ..\lib;..\ipas;..\fliclib;

PXP = esport_i

OBJS = capture.obj\
client.obj\
export.obj\
init.obj\
pxp.obj\
support.obj\
ui.obj\
uilight.obj\
uimtl.obj\
uiquery.obj\
uikey.obj\
uikeyflg.obj\
vngcolor.obj\
vngpal.obj

LIBS = ..\ipas\xpwc10.lib\
..\fliclib\flc386ps.lib\
xfile.lib

#Ŀ
# First target                                                             
#

all: setstden setexten $(PXP).pxp

#Ŀ
# Standard make include                                                    
#

!include make.inc

CCOPTIONS = -5s -ze -zp1 -zq -w1 -oatx -s -j -ez -fpi87 -DNDEBUG

LINKOPTS = op q libp $(LIBPATH)

#
#
#                                 Rules
#
#

#--- .c, .cpp, .asm setup in standard include ---

#--- extended environment variables
setexten:
        @set LIB=$(LIB);$(WATCOM)\lib386;$(WATCOM)\lib386\dos

#
#
#                              Dependancies
#
#

$(PXP).pxp:   $(OBJS)
   $(LINK) $(LINKOPTS) n $*.pxp @<<
   f $(OBJS: =,^
)
   l $(LIBS: =,^
)
   form phar op maxd=0 op dosseg
<<

release: all
   copy $(PXP).pxp $(3DSDIR)\process
   copy ..\esport.ini $(3DSDIR)\process
   copy ..\esport.vgp $(3DSDIR)\process
   copy $(PXP).pxp $(MYTH95ROOT)\bin
   copy ..\esport.ini $(MYTH95ROOT)\bin
   copy ..\esport.vgp $(MYTH95ROOT)\bin

clean:
   del *.obj
   del *.err
   del *.lst

ui.obj: ..\escher.3de

uikey.obj: ..\eschkey.3de

uikeyflg.obj: ..\eschkeyf.3de

uilight.obj: ..\eschlgt.3de

uimtl.obj: ..\eschmtl.3de

uiquery.obj: ..\eschqry.3de

# End of makefile 

