#
#                                   ____
#                                  / __ \
#                                 ( (__) )
#                                 _\____/___
#                                /  |  |   /\
#                               /_________/  \_
#                              /          \    \
#                             /            \    \_
#                            /              \     \
#                           /                \     \_
#                          /                  \      \
#                         /                    \      \_
#                        /                      \       \
#                       /                        \       \_
#                      /                          \        \
#                     /                            \        \_
#                    /                              \         \
#                   / N  N EEE W   W TTTTT  OO  N  N \        /
#                  /  NN N E_  W   W   T   O  O NN N  \      /
#                 /   N NN E   W W W   T   O  O N NN   \    /
#                /    N  N EEE  W W    T    OO  N  N    \  /
#               /________________________________________\/
#
#                     Newtonian Physics Simulation Library
#
#                      Microsoft Windows 95/98/NT Version
#
#  Copyright (c) 1995-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 Dan Higdon
#
# makefile
#
#

#
#
#                               Variables
#
#

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

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

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

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

#Ŀ
# File specific variables                                                  
#

LIB = newton

OBJS=\
newtforc.obj\
newtmath.obj\
newtobj.obj

LIBPATH = ..\..\obj;$(MYTH95ROOT)\lib;

#Ŀ
# First target                                                             
#

all: setstden $(LIB).lib

#Ŀ
# Standard make include                                                    
#

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

#
#
#                                 Rules
#
#

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

#
#
#                              Dependencies
#
#

..\inc\newton.hpp:  ..\inc\newtmath.hpp

newtforc.obj:       ..\newtforc.cpp ..\inc\newton.hpp

newtobj.obj:        ..\newtobj.cpp ..\inc\newton.hpp

#Ŀ
# Executable                                                               
#

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

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

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

# End of makefile 

