
ObjectFiles	=		\
			o.Create	\
			o.Free	\
			o.Init	\
			o.Load	\
			o.Save	\


LibName		=	Clear

# Template makefile which makes normal 
# .o files for use in the main static
# linking DeskLib.

# The macro $(ObjectFiles) should be set at the 
# start of this file to be a space-separated
# list of object files.
# This is done by 'Makatic'.

# The macro $(LibName) should also be set at the 
# start of this file, to be the name of the 
# DeskLib sublibrary.
# This is done by 'Makatic'.

# Compiler and linker flags, These can be anything. 
# All essential flags are included in the macros 
# $(CC) and $(ASM)
#
CCFlags		=	-ffahi $(CCExtra) -depend !Depend -throwback -D_DeskLib_$(LibName) -I,C:
ASMFlags	=	-Stamp -NoCache -CloseExec -Quit $(ASMExtra)

CC		=	cc -c $(CCFlags)
ASM		=	objasm $(ASMFlags)


# -------------------------------------------------------
# Everything below here should probably not be changed...
# -------------------------------------------------------

# Here's what we want to make...
#
All:		$(ObjectFiles)


VPATH = @.^

.SUFFIXES:	.c .s .o

.c.o:
	$(CC) $< -o $@
	
.s.o:
	$(ASM) -from $< -to $@



# Dynamic dependencies:
o.Create:	^.c.Create
o.Create:	DeskLib:h.Clear
o.Create:	DeskLib:h.Wimp
o.Create:	DeskLib:h.Core
o.Create:	DeskLib:h.Mem
o.Create:	DeskLib:h.Clear
o.Create:	^.h.ClearDefs
o.Free:	^.c.Free
o.Free:	DeskLib:h.Clear
o.Free:	DeskLib:h.Wimp
o.Free:	DeskLib:h.Core
o.Free:	DeskLib:h.Mem
o.Init:	^.c.Init
o.Init:	DeskLib:h.Clear
o.Init:	DeskLib:h.Wimp
o.Init:	DeskLib:h.Core
o.Init:	^.h.ClearDefs
o.Load:	^.c.Load
o.Load:	DeskLib:h.Clear
o.Load:	DeskLib:h.Wimp
o.Load:	DeskLib:h.Core
o.Load:	DeskLib:h.File
o.Load:	DeskLib:h.SWI
o.Load:	DeskLib:h.Mem
o.Save:	^.c.Save
o.Save:	DeskLib:h.Clear
o.Save:	DeskLib:h.Wimp
o.Save:	DeskLib:h.Core
o.Save:	DeskLib:h.File
o.Save:	DeskLib:h.SWI
o.Save:	DeskLib:h.Wimp
