#
#
#           ^           **   **   **** ***** *    ****     ^      Take me to
#          (_)            * *     *      *   *    *       (_)    / your
#     ^                    *      **     *   *    **            ^  leader...
#    (_)       ^          * *     *      *   *    *            (_)
#             (_)       **   **   *    ***** **** ****
#
#                    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/
#
#
#
#                              *** Utilities ***
#
# Created by Chuck Walbourn
#
# makefile
#
#

#
#
#                               Variables
#
#

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

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

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

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

#Ŀ
# File specific variables                                                  
#

# Directory
EXEDIR = iffdir

OBJSDIR = \
xuiffdir.obj\
xuiffdir.res


# IFF Compiler
EXEC = iffc

OBJSC = \
lex.yy.obj\
xuiffc.obj\
xuiffcp.obj\
xuiffc.res

LIBS = xfile.lib ivorymfc.lib

all: setstden $(EXEDIR).exe $(EXEC).exe

#Ŀ
# Standard make include                                                    
#

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

#
#
#                                 Rules
#
#

#
#
#                              Dependancies
#
#

#Ŀ
# Misc targets                                                             
#

release: all
   copy *.exe $(MYTH95ROOT)\bin

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

#Ŀ
# IFF Directory                                                            
#

$(EXEDIR).exe:   $(OBJSDIR)
   $(LINK) $(LINKOPTS) /OUT:$*.exe @<<
   $(OBJSDIR) $(LIBS)
<<

#Ŀ
# IFF Compiler                                                             
#

$(EXEC).exe:     $(OBJSC)
   $(LINK) $(LINKOPTS) /OUT:$*.exe @<<
   $(OBJSC) $(LIBS)
<<

lex.yy.obj : .\lex.yy.c
        $(CC) $(CCOPTIONS) /W2 lex.yy.c

.\lex.yy.c : ..\xuiffc.l
   flex -8 ../xuiffc.l

# End of makefile 

