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.
#
#--------------------------------------------------------------------------


# GuiLib

VPATH = Task Util Wimp GuiFlex

C++flags = -c -depend !Depend -ITask,Util,Wimp,GuiFlex,C: -throwback 
ObjAsmflags = -throwback -NoCache -depend !Depend 
LibFileflags = -c -o $@


OBJECTS = o.GuiGadget o.GuiObject \
        o.GuiRegister o.GuiSaveAs o.GuiScale o.GuiTask o.GuiWindow \
        o.Pointer o.UCompare o.ERROR o.gfx o.file \
        o.GuiWimpMessage o.GuiAtExit \
        o.GuiFlexDA o.GuiFlexFlex o.GuiFlexGlobal o.Flex_c 

@.o.GuiLib:  $(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 $@ $<
.s.o:; objasm -to $@ -from $< 

# Dynamic dependencies:
o.GuiAtExit:	Util.c++.GuiAtExit
o.GuiAtExit:	Util.h.GuiAtExit
o.GuiAtExit:	C:h.stdlib
o.UCompare:	Util.c++.UCompare
o.UCompare:	Util.h.ucompare
o.Flex_c:	GuiFlex.c++.Flex_c
o.Flex_c:	GuiFlex.h.flex_c
o.Flex_c:	GuiFlex.h.GuiFlexGlobal
o.Flex_c:	GuiFlex.h.GuiFlex
o.Flex_c:	stl:h.bool
o.Flex_c:	C:h.swis
o.Flex_c:	C:h.kernel
o.Flex_c:	Task.h.GuiToolbox
o.GuiObject:	Task.c++.GuiObject
o.GuiObject:	Task.h.GuiObject
o.GuiObject:	Task.h.GuiToolbox
o.GuiObject:	stl:h.string
o.GuiObject:	stl:h.bool
o.GuiObject:	Wimp.h.GuiWimp
o.GuiObject:	Wimp.h.GuiWimpSwis
o.GuiObject:	Wimp.h.GuiBBox
o.GuiObject:	stl:h.bool
o.GuiObject:	Wimp.h.GuiIcon
o.GuiObject:	Wimp.h.GuiWimp
o.GuiObject:	C:h.swis
o.GuiObject:	C:h.kernel
o.GuiObject:	Wimp.h.GuiWimpWindow
o.GuiObject:	C:h.swis
o.GuiObject:	Wimp.h.GuiWimpMessage
o.GuiObject:	Task.h.GuiWindow
o.GuiObject:	Task.h.GuiObject
o.GuiObject:	Wimp.h.GuiWimp
o.GuiObject:	C:h.swis
o.GuiObject:	Util.h.gfx
o.GuiObject:	C:h.swis
o.GuiObject:	Wimp.h.ERROR
o.GuiObject:	C:h.kernel
o.GuiObject:	stl:h.bool
o.GuiWindow:	Task.c++.GuiWindow
o.GuiWindow:	Task.h.GuiWindow
o.GuiWindow:	Task.h.GuiObject
o.GuiWindow:	Task.h.GuiToolbox
o.GuiWindow:	stl:h.string
o.GuiWindow:	stl:h.bool
o.GuiWindow:	Wimp.h.GuiWimp
o.GuiWindow:	Wimp.h.GuiWimpSwis
o.GuiWindow:	Wimp.h.GuiBBox
o.GuiWindow:	stl:h.bool
o.GuiWindow:	Wimp.h.GuiIcon
o.GuiWindow:	Wimp.h.GuiWimp
o.GuiWindow:	C:h.swis
o.GuiWindow:	C:h.kernel
o.GuiWindow:	Wimp.h.GuiWimpWindow
o.GuiWindow:	C:h.swis
o.GuiWindow:	Wimp.h.GuiWimpMessage
o.GuiWindow:	Wimp.h.GuiWimp
o.GuiWindow:	C:h.swis
o.gfx:	Util.c++.gfx
o.gfx:	Util.h.gfx
o.gfx:	C:h.swis
o.gfx:	C:h.kernel
o.GuiFlexDA:	GuiFlex.c++.GuiFlexDA
o.GuiFlexDA:	GuiFlex.h.GuiFlexDA
o.GuiFlexDA:	GuiFlex.h.GuiFlex
o.GuiFlexDA:	stl:h.bool
o.GuiFlexDA:	Util.h.GuiAtExit
o.GuiFlexDA:	C:h.fstream
o.GuiFlexDA:	C:h.iostream
o.GuiFlexDA:	C:h.memory
o.GuiFlexDA:	C:h.swis
o.GuiFlexDA:	C:h.kernel
o.GuiFlexFlex:	GuiFlex.c++.GuiFlexFlex
o.GuiFlexFlex:	GuiFlex.h.GuiFlexFlex
o.GuiFlexFlex:	GuiFlex.h.GuiFlex
o.GuiFlexFlex:	stl:h.bool
o.GuiFlexFlex:	C:h.kernel
o.GuiFlexFlex:	C:h.fstream
o.GuiFlexFlex:	C:h.iostream
o.GuiFlexFlex:	C:h.memory
o.GuiFlexFlex:	C:h.flex
o.GuiFlexFlex:	C:h.swis
o.GuiRegister:	Task.c++.GuiRegister
o.GuiRegister:	Task.h.GuiTargets
o.GuiRegister:	Task.h.GuiRegister
o.GuiRegister:	Task.h.GuiObject
o.GuiRegister:	Task.h.GuiToolbox
o.GuiRegister:	stl:h.string
o.GuiRegister:	stl:h.bool
o.GuiRegister:	Wimp.h.GuiWimp
o.GuiRegister:	Wimp.h.GuiWimpSwis
o.GuiRegister:	Wimp.h.GuiBBox
o.GuiRegister:	stl:h.bool
o.GuiRegister:	Wimp.h.GuiIcon
o.GuiRegister:	Wimp.h.GuiWimp
o.GuiRegister:	C:h.swis
o.GuiRegister:	C:h.kernel
o.GuiRegister:	Wimp.h.GuiWimpWindow
o.GuiRegister:	C:h.swis
o.GuiRegister:	Wimp.h.GuiWimpMessage
o.GuiRegister:	Task.h.GuiTask
o.GuiRegister:	stl:h.string
o.GuiRegister:	Wimp.h.GuiSprite
o.GuiRegister:	Task.h.GuiToolbox
o.GuiRegister:	Task.h.GuiToolbox
o.GuiRegister:	Task.h.GuiWindow
o.GuiRegister:	Task.h.GuiObject
o.GuiRegister:	Wimp.h.GuiWimp
o.GuiRegister:	Wimp.h.ERROR
o.GuiRegister:	C:h.kernel
o.GuiRegister:	stl:h.bool
o.GuiGadget:	Task.c++.GuiGadget
o.GuiGadget:	Task.h.GuiGadget
o.GuiGadget:	Task.h.GuiWindow
o.GuiGadget:	Task.h.GuiObject
o.GuiGadget:	Task.h.GuiToolbox
o.GuiGadget:	stl:h.string
o.GuiGadget:	stl:h.bool
o.GuiGadget:	Wimp.h.GuiWimp
o.GuiGadget:	Wimp.h.GuiWimpSwis
o.GuiGadget:	Wimp.h.GuiBBox
o.GuiGadget:	stl:h.bool
o.GuiGadget:	Wimp.h.GuiIcon
o.GuiGadget:	Wimp.h.GuiWimp
o.GuiGadget:	C:h.swis
o.GuiGadget:	C:h.kernel
o.GuiGadget:	Wimp.h.GuiWimpWindow
o.GuiGadget:	C:h.swis
o.GuiGadget:	Wimp.h.GuiWimpMessage
o.GuiGadget:	Wimp.h.GuiWimp
o.GuiGadget:	C:h.swis
o.GuiSaveAs:	Task.c++.GuiSaveAs
o.GuiSaveAs:	Task.h.GuiSaveAs
o.GuiSaveAs:	Task.h.GuiObject
o.GuiSaveAs:	Task.h.GuiToolbox
o.GuiSaveAs:	stl:h.string
o.GuiSaveAs:	stl:h.bool
o.GuiSaveAs:	Wimp.h.GuiWimp
o.GuiSaveAs:	Wimp.h.GuiWimpSwis
o.GuiSaveAs:	Wimp.h.GuiBBox
o.GuiSaveAs:	stl:h.bool
o.GuiSaveAs:	Wimp.h.GuiIcon
o.GuiSaveAs:	Wimp.h.GuiWimp
o.GuiSaveAs:	C:h.swis
o.GuiSaveAs:	C:h.kernel
o.GuiSaveAs:	Wimp.h.GuiWimpWindow
o.GuiSaveAs:	C:h.swis
o.GuiSaveAs:	Wimp.h.GuiWimpMessage
o.GuiSaveAs:	C:h.swis
o.GuiScale:	Task.c++.GuiScale
o.GuiScale:	Task.h.GuiScale
o.GuiScale:	Task.h.GuiObject
o.GuiScale:	Task.h.GuiToolbox
o.GuiScale:	stl:h.string
o.GuiScale:	stl:h.bool
o.GuiScale:	Wimp.h.GuiWimp
o.GuiScale:	Wimp.h.GuiWimpSwis
o.GuiScale:	Wimp.h.GuiBBox
o.GuiScale:	stl:h.bool
o.GuiScale:	Wimp.h.GuiIcon
o.GuiScale:	Wimp.h.GuiWimp
o.GuiScale:	C:h.swis
o.GuiScale:	C:h.kernel
o.GuiScale:	Wimp.h.GuiWimpWindow
o.GuiScale:	C:h.swis
o.GuiScale:	Wimp.h.GuiWimpMessage
o.GuiScale:	C:h.swis
o.GuiScale:	Task.h.GuiToolbox
o.GuiTask:	Task.c++.GuiTask
o.GuiTask:	Task.h.GuiTask
o.GuiTask:	stl:h.string
o.GuiTask:	stl:h.bool
o.GuiTask:	Wimp.h.GuiSprite
o.GuiTask:	Task.h.GuiToolbox
o.GuiTask:	Wimp.h.ERROR
o.GuiTask:	C:h.kernel
o.GuiTask:	stl:h.bool
o.GuiTask:	Task.h.GuiRegister
o.GuiTask:	Task.h.GuiObject
o.GuiTask:	Task.h.GuiToolbox
o.GuiTask:	stl:h.string
o.GuiTask:	Wimp.h.GuiWimp
o.GuiTask:	Wimp.h.GuiWimpSwis
o.GuiTask:	Wimp.h.GuiBBox
o.GuiTask:	stl:h.bool
o.GuiTask:	Wimp.h.GuiIcon
o.GuiTask:	Wimp.h.GuiWimp
o.GuiTask:	C:h.swis
o.GuiTask:	Wimp.h.GuiWimpWindow
o.GuiTask:	C:h.swis
o.GuiTask:	Wimp.h.GuiWimpMessage
o.GuiTask:	C:h.swis
o.GuiTask:	Wimp.h.GuiWimp
o.Pointer:	Util.c++.Pointer
o.Pointer:	Util.h.Pointer
o.Pointer:	C:h.swis
o.Pointer:	C:h.kernel
o.ERROR:	Wimp.c++.ERROR
o.ERROR:	C:h.swis
o.ERROR:	C:h.kernel
o.ERROR:	Wimp.h.ERROR
o.ERROR:	C:h.kernel
o.ERROR:	stl:h.bool
o.ERROR:	Task.h.GuiToolbox
o.file:	Util.c++.file
o.file:	Util.h.file
o.file:	stl:h.bool
o.file:	C:h.kernel
o.file:	C:h.swis
o.GuiWimpMessage:	Wimp.c++.GuiWimpMessage
o.GuiWimpMessage:	Wimp.h.GuiWimp
o.GuiWimpMessage:	Wimp.h.GuiWimpSwis
o.GuiWimpMessage:	Wimp.h.GuiBBox
o.GuiWimpMessage:	stl:h.bool
o.GuiWimpMessage:	Wimp.h.GuiIcon
o.GuiWimpMessage:	Wimp.h.GuiWimp
o.GuiWimpMessage:	C:h.swis
o.GuiWimpMessage:	C:h.kernel
o.GuiWimpMessage:	Wimp.h.GuiWimpWindow
o.GuiWimpMessage:	C:h.swis
o.GuiWimpMessage:	Wimp.h.GuiWimpMessage
o.GuiWimpMessage:	Wimp.h.GuiWimpMessage
o.GuiFlexGlobal:	GuiFlex.c++.GuiFlexGlobal
o.GuiFlexGlobal:	GuiFlex.h.GuiFlexGlobal
o.GuiFlexGlobal:	GuiFlex.h.GuiFlex
o.GuiFlexGlobal:	stl:h.bool
o.GuiFlexGlobal:	GuiFlex.h.GuiFlexDA
o.GuiFlexGlobal:	GuiFlex.h.GuiFlex
o.GuiFlexGlobal:	Util.h.GuiAtExit
o.GuiFlexGlobal:	GuiFlex.h.GuiFlexFlex
o.GuiFlexGlobal:	GuiFlex.h.GuiFlex
o.GuiFlexGlobal:	stl:h.string
o.GuiFlexGlobal:	stl:h.bool