Revision 4 (by gdshaw@RISCPKG.ORG, 2007/04/26 04:54:15) Altered makefiles to automatically create .o directories.
#--------------------------------------------------------------------------
#
#   Copyright (c) 2002, Colin Granville
#
#   All rights reserved.
#
#   Redistribution and use in source and binary forms, with or
#   without modification, are permitted provided that the following 
#   conditions are met:
#
#      * Redistributions of source code must retain the above copyright 
#        notice, this list of conditions and the following disclaimer.
#
#      * Redistributions in binary form must reproduce the above 
#        copyright notice, this list of conditions and the following 
#        disclaimer in the documentation and/or other materials 
#        provided with the distribution.
#
#      * The name Colin Granville may not be used to endorse or promote 
#        products derived from this software without specific prior 
#        written permission.
#
#   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
#   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
#   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 
#   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 
#   COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 
#   INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 
#   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 
#   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
#   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 
#   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
#   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
#   OF THE POSSIBILITY OF SUCH DAMAGE.
#
#--------------------------------------------------------------------------


# Drawfile

C++flags = -c -depend !Depend -IC:,Guilib: -throwback 
LibFileflags = -c -o $@

OBJECTS = o.GuiDrawFile o.GuiDrawFilePath o.GuiDrawFileFonts \
        o.GuiDrawFileText o.GuiDrawFileSprite o.DrawFileParser o.GuiDrawFileRender 

@.o.GuiDrawfileLib: $(OBJECTS)
        libfile $(libfileflags) $(OBJECTS)

.PHONY: clean

clean:
      -wipe @.o.* ~cf~v

.PHONY: dirs
dirs:
	cdir o

.SUFFIXES: .o .c++ 
.c++.o:; c++ $(C++flags) -o $@ $<

# Dynamic dependencies:
o.DrawFileParser:	c++.DrawFileParser
o.DrawFileParser:	Guilib:h.GuiBBox
o.DrawFileParser:	stl:h.bool
o.DrawFileParser:	GuiLib:h.File
o.DrawFileParser:	stl:h.bool
o.DrawFileParser:	C:h.kernel
o.DrawFileParser:	C:h.iostream
o.DrawFileParser:	C:h.memory
o.DrawFileParser:	h.DrawFileVisitor
o.DrawFileParser:	Guilib:h.GuiBBox
o.DrawFileParser:	h.DrawFileParser
o.GuiDrawFilePath:	c++.GuiDrawFilePath
o.GuiDrawFilePath:	h.GuiDrawFilePath
o.GuiDrawFilePath:	h.GuiDrawFile
o.GuiDrawFilePath:	Guilib:h.GuiBBox
o.GuiDrawFilePath:	stl:h.bool
o.GuiDrawFilePath:	C:h.swis
o.GuiDrawFilePath:	C:h.kernel
o.GuiDrawFilePath:	stl:h.string
o.GuiDrawFilePath:	stl:h.bool
o.GuiDrawFilePath:	Guilib:h.flex_c
o.GuiDrawFilePath:	Guilib:h.GuiFlexGlobal
o.GuiDrawFilePath:	Guilib:h.GuiFlex
o.GuiDrawFilePath:	stl:h.bool
o.GuiDrawFileText:	c++.GuiDrawFileText
o.GuiDrawFileText:	h.GuiDrawFileText
o.GuiDrawFileText:	h.GuiDrawFile
o.GuiDrawFileText:	Guilib:h.GuiBBox
o.GuiDrawFileText:	stl:h.bool
o.GuiDrawFileText:	C:h.swis
o.GuiDrawFileText:	C:h.kernel
o.GuiDrawFileText:	stl:h.string
o.GuiDrawFileText:	stl:h.bool
o.GuiDrawFileText:	Guilib:h.flex_c
o.GuiDrawFileText:	Guilib:h.GuiFlexGlobal
o.GuiDrawFileText:	Guilib:h.GuiFlex
o.GuiDrawFileText:	stl:h.bool
o.GuiDrawFileText:	C:h.iostream
o.GuiDrawFileText:	C:h.memory
o.GuiDrawFileSprite:	c++.GuiDrawFileSprite
o.GuiDrawFileSprite:	h.GuiDrawFileSprite
o.GuiDrawFileSprite:	h.GuiDrawFile
o.GuiDrawFileSprite:	Guilib:h.GuiBBox
o.GuiDrawFileSprite:	stl:h.bool
o.GuiDrawFileSprite:	C:h.swis
o.GuiDrawFileSprite:	C:h.kernel
o.GuiDrawFileSprite:	stl:h.string
o.GuiDrawFileSprite:	stl:h.bool
o.GuiDrawFileSprite:	Guilib:h.flex_c
o.GuiDrawFileSprite:	Guilib:h.GuiFlexGlobal
o.GuiDrawFileSprite:	Guilib:h.GuiFlex
o.GuiDrawFileSprite:	stl:h.bool
o.GuiDrawFileRender:	c++.GuiDrawFileRender
o.GuiDrawFileRender:	C:h.iostream
o.GuiDrawFileRender:	C:h.memory
o.GuiDrawFileRender:	h.GuiDrawFileRender
o.GuiDrawFileRender:	h.DrawFileVisitor
o.GuiDrawFileRender:	Guilib:h.GuiBBox
o.GuiDrawFileRender:	stl:h.bool
o.GuiDrawFileRender:	h.GuiDrawFile
o.GuiDrawFileRender:	Guilib:h.GuiBBox
o.GuiDrawFileRender:	C:h.swis
o.GuiDrawFileRender:	C:h.kernel
o.GuiDrawFileRender:	stl:h.string
o.GuiDrawFileRender:	stl:h.bool
o.GuiDrawFileRender:	Guilib:h.flex_c
o.GuiDrawFileRender:	Guilib:h.GuiFlexGlobal
o.GuiDrawFileRender:	Guilib:h.GuiFlex
o.GuiDrawFileRender:	stl:h.bool
o.GuiDrawFileRender:	C:h.kernel
o.GuiDrawFileRender:	h.DrawFileParser
o.GuiDrawFileRender:	h.DrawFileVisitor
o.GuiDrawFile:	c++.GuiDrawFile
o.GuiDrawFile:	h.GuiDrawFile
o.GuiDrawFile:	Guilib:h.GuiBBox
o.GuiDrawFile:	stl:h.bool
o.GuiDrawFile:	C:h.swis
o.GuiDrawFile:	C:h.kernel
o.GuiDrawFile:	stl:h.string
o.GuiDrawFile:	stl:h.bool
o.GuiDrawFile:	Guilib:h.flex_c
o.GuiDrawFile:	Guilib:h.GuiFlexGlobal
o.GuiDrawFile:	Guilib:h.GuiFlex
o.GuiDrawFile:	stl:h.bool
o.GuiDrawFile:	h.GuiDrawFileRender
o.GuiDrawFile:	h.DrawFileVisitor
o.GuiDrawFile:	Guilib:h.GuiBBox
o.GuiDrawFile:	h.GuiDrawFile
o.GuiDrawFile:	C:h.kernel
o.GuiDrawFile:	C:h.iostream
o.GuiDrawFile:	C:h.memory
o.GuiDrawFileFonts:	c++.GuiDrawFileFonts
o.GuiDrawFileFonts:	h.GuiDrawFileFonts
o.GuiDrawFileFonts:	h.GuiDrawFile
o.GuiDrawFileFonts:	Guilib:h.GuiBBox
o.GuiDrawFileFonts:	stl:h.bool
o.GuiDrawFileFonts:	C:h.swis
o.GuiDrawFileFonts:	C:h.kernel
o.GuiDrawFileFonts:	stl:h.string
o.GuiDrawFileFonts:	stl:h.bool
o.GuiDrawFileFonts:	Guilib:h.flex_c
o.GuiDrawFileFonts:	Guilib:h.GuiFlexGlobal
o.GuiDrawFileFonts:	Guilib:h.GuiFlex
o.GuiDrawFileFonts:	stl:h.bool