
ObjectFiles	=		\
			o.AddToHead	\
			o.AddToTail	\
			o.InList	\
			o.InsertA	\
			o.InsertB	\
			o.ListLength	\
			o.Unlink	\


LibName		=	LinkList

# 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.AddToHead:	^.c.AddToHead
o.AddToHead:	DeskLib:h.LinkList
o.AddToHead:	DeskLib:h.Core
o.AddToTail:	^.c.AddToTail
o.AddToTail:	DeskLib:h.LinkList
o.AddToTail:	DeskLib:h.Core
o.InList:	^.c.InList
o.InList:	DeskLib:h.LinkList
o.InList:	DeskLib:h.Core
o.InsertA:	^.c.InsertA
o.InsertA:	DeskLib:h.LinkList
o.InsertA:	DeskLib:h.Core
o.InsertB:	^.c.InsertB
o.InsertB:	DeskLib:h.LinkList
o.InsertB:	DeskLib:h.Core
o.ListLength:	^.c.ListLength
o.ListLength:	DeskLib:h.LinkList
o.ListLength:	DeskLib:h.Core
o.Unlink:	^.c.Unlink
o.Unlink:	DeskLib:h.LinkList
o.Unlink:	DeskLib:h.Core
