# These variables need to be changed to change the type of build.
# Unfortunately RISC OS is too useless to cope with handling so many
# complicated arguments to amu/make on the command line even with DDEUtils.

Link = link
CC = cc
CFLAGS = -DERROR_CONST=const -apcs 3/32/fpe2/swst/fp/nofpr -fahi -fussy -depend !Depend -throwback -IDeskLib:,C:
# Add -DNSTALL_DEBUG to CFLAGS to log messages to stderr. If this isn't defined
# you may get lots of warnings about no side effect in void context -
# even without -fahi and -fussy.
# -DERROR_CONST=const needs to be removed for old versions of DeskLib.
Libs = C:o.stubsg <DeskLib$Dir>.o.DeskLib
LinkFlags = -aif -rescan

ObjectFiles	=			\
			o.appdata	\
			o.Error		\
			o.control	\
			o.fsutils	\
			o.log		\
			o.main		\
			o.msgtrandyn	\
			o.version	\


Target		=	^.^.!nstall.!RunImage

Bool		=	-Dbool=BOOL -Dtrue=TRUE -Dfalse=FALSE -DBOOL_DEFINED

VPATH = ^.^.Source.nstall

.SUFFIXES:	.o .c

$(Target):	$(ObjectFiles) $(Libs)
	$(LINK) $(LinkFlags) -o $@ $(ObjectFiles) $(Libs)
	-Squeeze $@

.c.o:
	$(CC) $(CFLAGS) $(Bool) -I^.^.Source.nstall -c -o $@ $<


# Dynamic dependencies:
o.msgtrandyn:	^.^.Source.nstall.c.msgtrandyn
o.msgtrandyn:	DeskLib:h.Error
o.msgtrandyn:	DeskLib:h.Core
o.msgtrandyn:	^.^.Source.nstall.h.appglobal
o.msgtrandyn:	DeskLib:h.MsgTrans
o.msgtrandyn:	^.^.Source.nstall.h.log
o.msgtrandyn:	DeskLib:h.Core
o.msgtrandyn:	^.^.Source.nstall.h.msgtrandyn
o.msgtrandyn:	DeskLib:h.MsgTrans
o.msgtrandyn:	^.^.Source.nstall.h.control
o.msgtrandyn:	DeskLib:h.MsgTrans
o.msgtrandyn:	DeskLib:h.Wimp
o.appdata:	^.^.Source.nstall.c.appdata
o.appdata:	DeskLib:h.Error
o.appdata:	DeskLib:h.Core
o.appdata:	DeskLib:h.Icon
o.appdata:	DeskLib:h.Wimp
o.appdata:	DeskLib:h.DragASpr
o.appdata:	DeskLib:h.WimpSWIs
o.appdata:	^.^.Source.nstall.h.appdata
o.appdata:	DeskLib:h.Event
o.appdata:	DeskLib:h.Slider
o.appdata:	DeskLib:h.WimpSWIs
o.appdata:	DeskLib:h.Sprite
o.appdata:	DeskLib:h.Coord
o.appdata:	DeskLib:h.Wimp
o.appdata:	^.^.Source.nstall.h.appglobal
o.appdata:	DeskLib:h.MsgTrans
o.appdata:	^.^.Source.nstall.h.control
o.appdata:	DeskLib:h.MsgTrans
o.appdata:	DeskLib:h.Wimp
o.appdata:	^.^.Source.nstall.h.control
o.appdata:	^.^.Source.nstall.h.log
o.appdata:	DeskLib:h.Core
o.appdata:	^.^.Source.nstall.h.msgtrandyn
o.appdata:	DeskLib:h.MsgTrans
o.appdata:	^.^.Source.nstall.h.control
o.Error:	^.^.Source.nstall.c.Error
o.Error:	DeskLib:h.Error
o.Error:	DeskLib:h.Core
o.Error:	DeskLib:h.WimpSWIs
o.Error:	DeskLib:h.Wimp
o.Error:	DeskLib:h.Event
o.Error:	DeskLib:h.Hourglass
o.Error:	^.^.Source.nstall.h.log
o.Error:	DeskLib:h.Core
o.control:	^.^.Source.nstall.c.control
o.control:	DeskLib:h.Error
o.control:	DeskLib:h.Core
o.control:	^.^.Source.nstall.h.appglobal
o.control:	DeskLib:h.MsgTrans
o.control:	^.^.Source.nstall.h.control
o.control:	DeskLib:h.MsgTrans
o.control:	DeskLib:h.Wimp
o.control:	^.^.Source.nstall.h.fsutils
o.control:	DeskLib:h.Core
o.control:	^.^.Source.nstall.h.log
o.control:	DeskLib:h.Core
o.control:	^.^.Source.nstall.h.msgtrandyn
o.control:	DeskLib:h.MsgTrans
o.control:	^.^.Source.nstall.h.control
o.fsutils:	^.^.Source.nstall.c.fsutils
o.fsutils:	DeskLib:h.Error
o.fsutils:	DeskLib:h.Core
o.fsutils:	DeskLib:h.File
o.fsutils:	DeskLib:h.SWI
o.fsutils:	DeskLib:h.Filing
o.fsutils:	^.^.Source.nstall.h.appglobal
o.fsutils:	DeskLib:h.MsgTrans
o.fsutils:	^.^.Source.nstall.h.fsutils
o.fsutils:	DeskLib:h.Core
o.fsutils:	^.^.Source.nstall.h.log
o.fsutils:	DeskLib:h.Core
o.main:	^.^.Source.nstall.c.main
o.main:	DeskLib:h.DragASpr
o.main:	DeskLib:h.wimp
o.main:	DeskLib:h.Core
o.main:	DeskLib:h.Error
o.main:	DeskLib:h.Event
o.main:	DeskLib:h.EventMsg
o.main:	DeskLib:h.Event
o.main:	DeskLib:h.File
o.main:	DeskLib:h.SWI
o.main:	DeskLib:h.Handler
o.main:	DeskLib:h.KeyCodes
o.main:	DeskLib:h.Menu
o.main:	DeskLib:h.Resource
o.main:	DeskLib:h.Sprite
o.main:	DeskLib:h.Coord
o.main:	DeskLib:h.Str
o.main:	DeskLib:h.SWI
o.main:	DeskLib:h.Template
o.main:	DeskLib:h.LinkList
o.main:	DeskLib:h.WimpSWIs
o.main:	DeskLib:h.Window
o.main:	DeskLib:h.Pointer
o.main:	DeskLib:h.Core
o.main:	DeskLib:h.Icon
o.main:	DeskLib:h.Window
o.main:	^.^.Source.nstall.h.appdata
o.main:	DeskLib:h.Event
o.main:	DeskLib:h.Slider
o.main:	DeskLib:h.WimpSWIs
o.main:	DeskLib:h.Sprite
o.main:	DeskLib:h.Wimp
o.main:	^.^.Source.nstall.h.appglobal
o.main:	DeskLib:h.MsgTrans
o.main:	^.^.Source.nstall.h.control
o.main:	DeskLib:h.MsgTrans
o.main:	DeskLib:h.Wimp
o.main:	^.^.Source.nstall.h.control
o.main:	^.^.Source.nstall.h.fsutils
o.main:	DeskLib:h.Core
o.main:	^.^.Source.nstall.h.log
o.main:	DeskLib:h.Core
o.main:	^.^.Source.nstall.h.msgtrandyn
o.main:	DeskLib:h.MsgTrans
o.main:	^.^.Source.nstall.h.control
o.main:	^.^.Source.nstall.h.version
