# !ResEd Window CSE Makefile

# ****** EDIT MAKEPROTO, NOT MAKEFILE ******
# Then construct Makefile using "amu -f MakeProto depend"

# PROGDIR should be set to the application installation directory

# Can set:
#  CFLAGS     -  additional cc options
#  INCLUDES   -  locations to search for "included" files
#  AFLAGS     -  additional objasm options
#  LDFLAGS    -  additional link options

INCLUDES = -I^.^.common

CPFLAGS = A~C~DF~L~N~P~Q~R~S~T~V

LIBS = ^.^.common.o.commonlib C:o.Stubs

CFILES = main.c protocol.c relocate.c windowedit.c windinfo.c grid.c coords.c align.c gadget.c props.c colours.c extent.c gui.c keycuts.c lassoo.c drag.c move.c resize.c gadgdefs.c winddrag.c toolbars.c help.c

OFILES = main.o protocol.o relocate.o windowedit.o windinfo.o grid.o coords.o align.o gadget.o props.o colours.o extent.o gui.o keycuts.o lassoo.o drag.o move.o resize.o gadgdefs.o winddrag.o toolbars.o help.o

FILES = !Config !Help !Icons !Icons22 !Palette !Run !RunImage Messages Palette Templates

all: !RunImage
        @echo *** Window build complete

!RunImage: $(OFILES) ^.^.common.o.commonlib
        cc -c $(CFLAGS) $(INCLUDES) -o ^.^.common.o.version ^.^.common.c.version
        link $(LDFLAGS) -o $@ $(OFILES) ^.^.common.o.version $(LIBS)
        squeeze $@

^.^.common.o.commonlib:
        dir ^.^.common
        amu o.commonlib
        dir ^.CSE.!Window

h.icondefs: Templates
        ^.^.^.!WinEdit -h Templates > h.icondefs

.c.o:
        cc -c $(CFLAGS) $(INCLUDES) -o $@ $<

.s.o:
        objasm -quit -CloseExec $(AFLAGS) -from $< -to $@

install: $(FILES)
        copy !Config $(PROGDIR).!Config $(CPFLAGS)
        copy !Help $(PROGDIR).!Help $(CPFLAGS)
        copy !Icons $(PROGDIR).!Icons $(CPFLAGS)
        copy !Icons22 $(PROGDIR).!Icons22 $(CPFLAGS)
        copy !Palette $(PROGDIR).!Palette $(CPFLAGS)
        copy !Run $(PROGDIR).!Run $(CPFLAGS)
        copy !RunImage $(PROGDIR).!RunImage $(CPFLAGS)
        copy Messages $(PROGDIR).Messages $(CPFLAGS)
        copy Palette $(PROGDIR).Palette $(CPFLAGS)
        copy Templates $(PROGDIR).Templates $(CPFLAGS)
        @echo *** Window installation complete

depend:
        copy MakeProto Makefile1 $(CPFLAGS)
        cc -c -M $(INCLUDES) $(CFILES) >> Makefile1
        remove Makefile0
        -rename Makefile Makefile0
        rename Makefile1 Makefile
        @echo *** Window dependencies established

clean:
       create o.foo
       wipe o.* ~CRF~V
       remove !RunImage
       remove h.icondefs
       @echo *** Window cleaned

# Dependencies following this line provided by make depend

o.main:	c.main
o.main:	^.^.common.h.resed
o.main:	^.^.common.h.message
o.main:	^.^.common.h.error
o.main:	^.^.common.h.debug
o.main:	^.^.common.h.dbmalloc
o.main:	h.main
o.main:	^.^.common.h.swicall
o.main:	^.^.common.h.wimp
o.main:	^.^.common.h.resformat
o.main:	^.^.common.h.newmsgs
o.main:	^.^.common.h.focus
o.main:	^.^.common.h.interactor
o.main:	^.^.common.h.menu
o.main:	^.^.common.h.registry
o.main:	h.format
o.main:	h.relocate
o.main:	h.windowedit
o.main:	h.align
o.main:	h.colours
o.main:	h.coords
o.main:	h.extent
o.main:	h.gadgdefs
o.main:	h.gadget
o.main:	h.grid
o.main:	h.help
o.main:	h.keycuts
o.main:	h.props
o.main:	h.protocol
o.main:	h.toolbars
o.main:	h.windinfo
o.protocol:	c.protocol
o.protocol:	^.^.common.h.resed
o.protocol:	^.^.common.h.message
o.protocol:	^.^.common.h.error
o.protocol:	^.^.common.h.debug
o.protocol:	^.^.common.h.dbmalloc
o.protocol:	h.main
o.protocol:	^.^.common.h.swicall
o.protocol:	^.^.common.h.wimp
o.protocol:	^.^.common.h.resformat
o.protocol:	^.^.common.h.dbox
o.protocol:	^.^.common.h.newmsgs
o.protocol:	^.^.common.h.registry
o.protocol:	h.format
o.protocol:	h.relocate
o.protocol:	h.windowedit
o.protocol:	h.gadget
o.protocol:	h.keycuts
o.protocol:	h.props
o.protocol:	h.protocol
o.protocol:	h.toolbars
o.relocate:	c.relocate
o.relocate:	^.^.common.h.resed
o.relocate:	^.^.common.h.message
o.relocate:	^.^.common.h.error
o.relocate:	^.^.common.h.debug
o.relocate:	^.^.common.h.dbmalloc
o.relocate:	h.main
o.relocate:	^.^.common.h.resformat
o.relocate:	h.relocate
o.windowedit:	c.windowedit
o.windowedit:	^.^.common.h.resed
o.windowedit:	^.^.common.h.message
o.windowedit:	^.^.common.h.error
o.windowedit:	^.^.common.h.debug
o.windowedit:	^.^.common.h.dbmalloc
o.windowedit:	h.main
o.windowedit:	^.^.common.h.swicall
o.windowedit:	^.^.common.h.wimp
o.windowedit:	^.^.common.h.resformat
o.windowedit:	^.^.common.h.newmsgs
o.windowedit:	^.^.common.h.focus
o.windowedit:	^.^.common.h.interactor
o.windowedit:	^.^.common.h.menu
o.windowedit:	^.^.common.h.registry
o.windowedit:	h.format
o.windowedit:	h.relocate
o.windowedit:	h.windowedit
o.windowedit:	h.align
o.windowedit:	h.colours
o.windowedit:	h.coords
o.windowedit:	h.drag
o.windowedit:	h.extent
o.windowedit:	h.gadget
o.windowedit:	h.grid
o.windowedit:	h.gui
o.windowedit:	h.help
o.windowedit:	h.keycuts
o.windowedit:	h.lassoo
o.windowedit:	h.move
o.windowedit:	h.props
o.windowedit:	h.protocol
o.windowedit:	h.resize
o.windowedit:	h.toolbars
o.windowedit:	h.winddrag
o.windowedit:	h.windinfo
o.windinfo:	c.windinfo
o.windinfo:	^.^.common.h.resed
o.windinfo:	^.^.common.h.message
o.windinfo:	^.^.common.h.error
o.windinfo:	^.^.common.h.debug
o.windinfo:	^.^.common.h.dbmalloc
o.windinfo:	h.main
o.windinfo:	^.^.common.h.swicall
o.windinfo:	^.^.common.h.wimp
o.windinfo:	^.^.common.h.resformat
o.windinfo:	^.^.common.h.newmsgs
o.windinfo:	^.^.common.h.dbox
o.windinfo:	^.^.common.h.registry
o.windinfo:	h.format
o.windinfo:	h.windowedit
o.windinfo:	h.icondefs
o.windinfo:	h.windinfo
o.grid:	c.grid
o.grid:	^.^.common.h.resed
o.grid:	^.^.common.h.message
o.grid:	^.^.common.h.error
o.grid:	^.^.common.h.debug
o.grid:	^.^.common.h.dbmalloc
o.grid:	h.main
o.grid:	^.^.common.h.swicall
o.grid:	^.^.common.h.wimp
o.grid:	^.^.common.h.resformat
o.grid:	^.^.common.h.newmsgs
o.grid:	^.^.common.h.dbox
o.grid:	^.^.common.h.interactor
o.grid:	^.^.common.h.registry
o.grid:	h.format
o.grid:	h.windowedit
o.grid:	h.colours
o.grid:	h.grid
o.grid:	h.gui
o.grid:	h.icondefs
o.coords:	c.coords
o.coords:	^.^.common.h.resed
o.coords:	^.^.common.h.message
o.coords:	^.^.common.h.error
o.coords:	^.^.common.h.debug
o.coords:	^.^.common.h.dbmalloc
o.coords:	h.main
o.coords:	^.^.common.h.swicall
o.coords:	^.^.common.h.wimp
o.coords:	^.^.common.h.resformat
o.coords:	^.^.common.h.newmsgs
o.coords:	^.^.common.h.dbox
o.coords:	^.^.common.h.interactor
o.coords:	^.^.common.h.registry
o.coords:	h.format
o.coords:	h.windowedit
o.coords:	h.coords
o.coords:	h.gui
o.coords:	h.icondefs
o.align:	c.align
o.align:	^.^.common.h.resed
o.align:	^.^.common.h.message
o.align:	^.^.common.h.error
o.align:	^.^.common.h.debug
o.align:	^.^.common.h.dbmalloc
o.align:	h.main
o.align:	^.^.common.h.wimp
o.align:	^.^.common.h.resformat
o.align:	^.^.common.h.newmsgs
o.align:	h.format
o.align:	h.windowedit
o.align:	h.align
o.gadget:	c.gadget
o.gadget:	^.^.common.h.resed
o.gadget:	^.^.common.h.message
o.gadget:	^.^.common.h.error
o.gadget:	^.^.common.h.debug
o.gadget:	^.^.common.h.dbmalloc
o.gadget:	h.main
o.gadget:	^.^.common.h.swicall
o.gadget:	^.^.common.h.wimp
o.gadget:	^.^.common.h.resformat
o.gadget:	^.^.common.h.newmsgs
o.gadget:	^.^.common.h.dbox
o.gadget:	^.^.common.h.interactor
o.gadget:	^.^.common.h.registry
o.gadget:	^.^.common.h.toolbox
o.gadget:	h.format
o.gadget:	h.relocate
o.gadget:	h.windowedit
o.gadget:	h.colours
o.gadget:	h.gadgdefs
o.gadget:	h.gadget
o.gadget:	h.gui
o.gadget:	h.icondefs
o.gadget:	h.props
o.gadget:	h.protocol
o.props:	c.props
o.props:	^.^.common.h.resed
o.props:	^.^.common.h.message
o.props:	^.^.common.h.error
o.props:	^.^.common.h.debug
o.props:	^.^.common.h.dbmalloc
o.props:	h.main
o.props:	^.^.common.h.swicall
o.props:	^.^.common.h.wimp
o.props:	^.^.common.h.resformat
o.props:	^.^.common.h.newmsgs
o.props:	^.^.common.h.dbox
o.props:	^.^.common.h.interactor
o.props:	^.^.common.h.menu
o.props:	^.^.common.h.registry
o.props:	h.format
o.props:	h.windowedit
o.props:	h.colours
o.props:	h.gui
o.props:	h.icondefs
o.props:	h.props
o.props:	h.protocol
o.colours:	c.colours
o.colours:	^.^.common.h.resed
o.colours:	^.^.common.h.message
o.colours:	^.^.common.h.error
o.colours:	^.^.common.h.debug
o.colours:	^.^.common.h.dbmalloc
o.colours:	h.main
o.colours:	^.^.common.h.swicall
o.colours:	^.^.common.h.wimp
o.colours:	^.^.common.h.resformat
o.colours:	^.^.common.h.newmsgs
o.colours:	^.^.common.h.dbox
o.colours:	^.^.common.h.interactor
o.colours:	^.^.common.h.menu
o.colours:	^.^.common.h.registry
o.colours:	h.format
o.colours:	h.windowedit
o.colours:	h.colours
o.colours:	h.gui
o.colours:	h.icondefs
o.colours:	h.protocol
o.extent:	c.extent
o.extent:	^.^.common.h.resed
o.extent:	^.^.common.h.message
o.extent:	^.^.common.h.error
o.extent:	^.^.common.h.debug
o.extent:	^.^.common.h.dbmalloc
o.extent:	h.main
o.extent:	^.^.common.h.swicall
o.extent:	^.^.common.h.wimp
o.extent:	^.^.common.h.resformat
o.extent:	^.^.common.h.newmsgs
o.extent:	^.^.common.h.dbox
o.extent:	^.^.common.h.registry
o.extent:	h.format
o.extent:	h.windowedit
o.extent:	h.extent
o.extent:	h.gui
o.extent:	h.icondefs
o.extent:	h.protocol
o.gui:	c.gui
o.gui:	^.^.common.h.resed
o.gui:	^.^.common.h.message
o.gui:	^.^.common.h.error
o.gui:	^.^.common.h.debug
o.gui:	^.^.common.h.dbmalloc
o.gui:	h.main
o.gui:	^.^.common.h.wimp
o.gui:	^.^.common.h.resformat
o.gui:	^.^.common.h.newmsgs
o.gui:	^.^.common.h.dbox
o.gui:	^.^.common.h.menu
o.gui:	h.format
o.gui:	h.windowedit
o.gui:	h.colours
o.gui:	h.gui
o.keycuts:	c.keycuts
o.keycuts:	^.^.common.h.resed
o.keycuts:	^.^.common.h.message
o.keycuts:	^.^.common.h.error
o.keycuts:	^.^.common.h.debug
o.keycuts:	^.^.common.h.dbmalloc
o.keycuts:	h.main
o.keycuts:	^.^.common.h.swicall
o.keycuts:	^.^.common.h.wimp
o.keycuts:	^.^.common.h.resformat
o.keycuts:	^.^.common.h.newmsgs
o.keycuts:	^.^.common.h.dbox
o.keycuts:	^.^.common.h.interactor
o.keycuts:	^.^.common.h.registry
o.keycuts:	h.format
o.keycuts:	h.windowedit
o.keycuts:	h.gui
o.keycuts:	h.icondefs
o.keycuts:	h.keycuts
o.keycuts:	h.protocol
o.lassoo:	c.lassoo
o.lassoo:	^.^.common.h.resed
o.lassoo:	^.^.common.h.message
o.lassoo:	^.^.common.h.error
o.lassoo:	^.^.common.h.debug
o.lassoo:	^.^.common.h.dbmalloc
o.lassoo:	h.main
o.lassoo:	^.^.common.h.swicall
o.lassoo:	^.^.common.h.wimp
o.lassoo:	^.^.common.h.resformat
o.lassoo:	^.^.common.h.newmsgs
o.lassoo:	^.^.common.h.dragdrop
o.lassoo:	^.^.common.h.interactor
o.lassoo:	h.format
o.lassoo:	h.windowedit
o.lassoo:	h.lassoo
o.drag:	c.drag
o.drag:	^.^.common.h.resed
o.drag:	^.^.common.h.message
o.drag:	^.^.common.h.error
o.drag:	^.^.common.h.debug
o.drag:	^.^.common.h.dbmalloc
o.drag:	h.main
o.drag:	^.^.common.h.swicall
o.drag:	^.^.common.h.wimp
o.drag:	^.^.common.h.resformat
o.drag:	^.^.common.h.newmsgs
o.drag:	^.^.common.h.dragdrop
o.drag:	^.^.common.h.interactor
o.drag:	^.^.common.h.registry
o.drag:	h.format
o.drag:	h.relocate
o.drag:	h.windowedit
o.drag:	h.drag
o.drag:	h.gadget
o.drag:	h.grid
o.drag:	h.props
o.drag:	h.protocol
o.move:	c.move
o.move:	^.^.common.h.resed
o.move:	^.^.common.h.message
o.move:	^.^.common.h.error
o.move:	^.^.common.h.debug
o.move:	^.^.common.h.dbmalloc
o.move:	h.main
o.move:	^.^.common.h.swicall
o.move:	^.^.common.h.wimp
o.move:	^.^.common.h.resformat
o.move:	^.^.common.h.newmsgs
o.move:	^.^.common.h.dragdrop
o.move:	^.^.common.h.interactor
o.move:	h.format
o.move:	h.windowedit
o.move:	h.grid
o.move:	h.move
o.move:	h.protocol
o.resize:	c.resize
o.resize:	^.^.common.h.resed
o.resize:	^.^.common.h.message
o.resize:	^.^.common.h.error
o.resize:	^.^.common.h.debug
o.resize:	^.^.common.h.dbmalloc
o.resize:	h.main
o.resize:	^.^.common.h.swicall
o.resize:	^.^.common.h.wimp
o.resize:	^.^.common.h.resformat
o.resize:	^.^.common.h.newmsgs
o.resize:	^.^.common.h.dragdrop
o.resize:	^.^.common.h.interactor
o.resize:	h.format
o.resize:	h.relocate
o.resize:	h.windowedit
o.resize:	h.gadget
o.resize:	h.grid
o.resize:	h.protocol
o.resize:	h.resize
o.gadgdefs:	c.gadgdefs
o.gadgdefs:	^.^.common.h.resed
o.gadgdefs:	^.^.common.h.message
o.gadgdefs:	^.^.common.h.error
o.gadgdefs:	^.^.common.h.debug
o.gadgdefs:	^.^.common.h.dbmalloc
o.gadgdefs:	h.main
o.gadgdefs:	^.^.common.h.wimp
o.gadgdefs:	^.^.common.h.resformat
o.gadgdefs:	^.^.common.h.newmsgs
o.gadgdefs:	h.format
o.gadgdefs:	h.relocate
o.gadgdefs:	h.windowedit
o.gadgdefs:	h.gadgdefs
o.gadgdefs:	h.gadget
o.gadgdefs:	h.icondefs
o.winddrag:	c.winddrag
o.winddrag:	^.^.common.h.resed
o.winddrag:	^.^.common.h.message
o.winddrag:	^.^.common.h.error
o.winddrag:	^.^.common.h.debug
o.winddrag:	^.^.common.h.dbmalloc
o.winddrag:	h.main
o.winddrag:	^.^.common.h.swicall
o.winddrag:	^.^.common.h.wimp
o.winddrag:	^.^.common.h.resformat
o.winddrag:	^.^.common.h.newmsgs
o.winddrag:	^.^.common.h.dragdrop
o.winddrag:	^.^.common.h.interactor
o.winddrag:	h.format
o.winddrag:	h.windowedit
o.winddrag:	h.protocol
o.winddrag:	h.winddrag
o.toolbars:	c.toolbars
o.toolbars:	^.^.common.h.resed
o.toolbars:	^.^.common.h.message
o.toolbars:	^.^.common.h.error
o.toolbars:	^.^.common.h.debug
o.toolbars:	^.^.common.h.dbmalloc
o.toolbars:	h.main
o.toolbars:	^.^.common.h.swicall
o.toolbars:	^.^.common.h.wimp
o.toolbars:	^.^.common.h.resformat
o.toolbars:	^.^.common.h.newmsgs
o.toolbars:	^.^.common.h.dbox
o.toolbars:	^.^.common.h.registry
o.toolbars:	h.format
o.toolbars:	h.windowedit
o.toolbars:	h.gui
o.toolbars:	h.icondefs
o.toolbars:	h.protocol
o.toolbars:	h.toolbars
o.help:	c.help
o.help:	^.^.common.h.resed
o.help:	^.^.common.h.message
o.help:	^.^.common.h.error
o.help:	^.^.common.h.debug
o.help:	^.^.common.h.dbmalloc
o.help:	h.main
o.help:	^.^.common.h.swicall
o.help:	^.^.common.h.wimp
o.help:	^.^.common.h.resformat
o.help:	^.^.common.h.newmsgs
o.help:	^.^.common.h.menu
o.help:	^.^.common.h.registry
o.help:	h.format
o.help:	h.relocate
o.help:	h.windowedit
o.help:	h.gadget
o.help:	h.help
