#
#
#
#
#
#
#
#
#
#
# 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
#
# makefile
#
#       Escher is a 3D graphics system for real-time animation and
#       interaction.  Escher relies heavily on Ivory, Van Gogh and
#       Felix.
#
#
#
#      Used with Microsoft (R) Program Maintenance Utility Version 1.20
#
#

#
#
#                               Variables
#
#

!if "$(DEBUG)" == ""
DEBUG = NO
!endif

!if "$(THREAD)" == ""
THREAD = YES
!endif

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

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

#Ŀ
# File specific variables                                                  
#

LIB = escher

OBJS = \
espch.obj\
esamd3d.obj\
esbldmsh.obj\
esbldtxt.obj\
escamera.obj\
escamex.obj\
esclip.obj\
esdata.obj\
esdraw.obj\
esdrface.obj\
esdrline.obj\
esdrpnt.obj\
eselemnt.obj\
esextbox.obj\
esextsph.obj\
esfref.obj\
esfrrot.obj\
esgeom.obj\
esgpartn.obj\
eskeydrw.obj\
eskeyfrm.obj\
eslatten.obj\
eslfatn.obj\
eslfpnt.obj\
eslfspot.obj\
eslight.obj\
eslimb.obj\
eslimbsg.obj\
eslindrw.obj\
eslod.obj\
eslpoint.obj\
eslspot.obj\
eslvect.obj\
esmath.obj\
esmatrix.obj\
esmesh.obj\
esmeshdr.obj\
esmetabx.obj\
esopartn.obj\
espartik.obj\
esplndrw.obj\
esplosn.obj\
espntdrw.obj\
esprtgen.obj\
esprtgeo.obj\
esprtlin.obj\
esprtpyr.obj\
esprtspr.obj\
esprtsys.obj\
esqpartn.obj\
esscene.obj\
essfield.obj\
essprite.obj\
essystem.obj\
estcache.obj\
esterran.obj\
esternex.obj\
esterndr.obj\
estfile.obj\
estrtop.obj\
estoken.obj\
estxfire.obj\
estxtmfr.obj\
estxtprc.obj\
estxtstc.obj\
estxture.obj\
esvector.obj

#Ŀ
# First target                                                             
#

all: setstden $(LIB).pch $(LIB).lib

#Ŀ
# Standard make include                                                    
#

!include $(MYTH95ROOT)\inc\make.inc

#
#
#                                 Rules
#
#

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

#--- .cpp
{..\}.cpp{}.obj:
        $(CPP) $(CCOPTIONS) /Yuescher.hpp /Fp$(LIB).pch $<

{..\Build\}.cpp{}.obj:
        $(CPP) $(CCOPTIONS) /Yuescher.hpp /Fp$(LIB).pch $<

{..\Draw\}.cpp{}.obj:
        $(CPP) $(CCOPTIONS) /Yuescher.hpp /Fp$(LIB).pch $<

{..\Element\}.cpp{}.obj:
        $(CPP) $(CCOPTIONS) /Yuescher.hpp /Fp$(LIB).pch $<

{..\Gravity\}.cpp{}.obj:
        $(CPP) $(CCOPTIONS) /Yuescher.hpp /Fp$(LIB).pch $<

{..\Light\}.cpp{}.obj:
        $(CPP) $(CCOPTIONS) /Yuescher.hpp /Fp$(LIB).pch $<

{..\Math\}.cpp{}.obj:
        $(CPP) $(CCOPTIONS) /Yuescher.hpp /Fp$(LIB).pch $<

{..\Math\}.asm{}.obj:
        $(ASM) $(ASMOPTS) $<

{..\Motion\}.cpp{}.obj:
        $(CPP) $(CCOPTIONS) /Yuescher.hpp /Fp$(LIB).pch $<

{..\Particle\}.cpp{}.obj:
        $(CPP) $(CCOPTIONS) /Yuescher.hpp /Fp$(LIB).pch $<

{..\Partn\}.cpp{}.obj:
        $(CPP) $(CCOPTIONS) /Yuescher.hpp /Fp$(LIB).pch $<

{..\Terrain\}.cpp{}.obj:
        $(CPP) $(CCOPTIONS) /Yuescher.hpp /Fp$(LIB).pch $<

{..\Texture\}.cpp{}.obj:
        $(CPP) $(CCOPTIONS) /Yuescher.hpp /Fp$(LIB).pch $<

#
#
#                              Dependancies
#
#

$(LIB).pch :
    del espch.obj

espch.obj : ..\espch.cpp
    $(CPP) /Ycescher.hpp /Fp$(LIB).pch $(CCOPTIONS) ..\$*.cpp

#Ŀ
# Library                                                                  
#

$(LIB).lib:   $(OBJS)
    -del $(LIB).lib
   $(LB) $(LBOPTS) /out:$(LIB).lib @<<
   $(OBJS)
<<

release: all
   copy ..\inc\es*.* $(MYTH95ROOT)\inc
   copy $(LIB).lib $(MYTH95ROOT)\lib

clean:
    del *.obj
    del *.res
    del *.err
    del *.lst
    del *.ilk
    del *.pdb
    del *.pch

# End of makefile 

