#
#	file MakeFile
#	
#	Description:
#	This file contains the MPW Make build commands for creating
#	the HTMLSample application.
#	
#	HTMLSample is an application illustrating how to use the new
#	HTMLRenderingLib services found in Mac OS 9. HTMLRenderingLib
#	is Apple's light-weight HTML rendering engine capable of
#	displaying HTML files.
#
#	by John Montbriand, 1999.
#
#	Copyright:  1999 by Apple Computer, Inc.
#	all rights reserved.
#	
#	Disclaimer:
#	You may incorporate this sample code into your applications without
#	restriction, though the sample code has been provided "AS IS" and the
#	responsibility for its operation is 100% yours.  However, what you are
#	not permitted to do is to redistribute the source as "DSC Sample Code"
#	after having made changes. If you're going to re-distribute the source,
#	we require that you make it clear in the source that the code was
#	descended from Apple Sample Code, but that you've made changes.
#	
#	Change History (most recent first):
#	10/16/99 created by John Montbriand
#

# PPCObjects contains the names of all the powerpc object files
# generated by the C compiler.  We put all the object files in a
# directory called 'obj'
PPCObjects = :obj:HTMLSample.c.ppc 
	:obj:History.c.ppc 
	:obj:CIconButtons.c.ppc 
	:obj:RenderingWindow.c.ppc 
	:obj:AboutBox.c.ppc 
	:obj:SampleUtils.c.ppc 
	:obj:debugf.c.ppc

# CCppc contains the C compiler comand we use for compiling
# the source files.
CCppc  = MrC -w 35 -align power -proto strict -d TARGET_API_MAC_CARBON=1

# RezFiles contains a list of the rez files used in this build.
RezFiles = HTMLSample.r

# Resources contains a list of all the resource and rez files
# used to build the application
Resources = {RezFiles} HTMLSample.rsrc

# resources

HTMLSample  {Resources} {PPCObjects}
	Rez -t "APPL" -i "{RIncludes}" -o HTMLSample {RezFiles}

# object code

HTMLSample  {Resources} {PPCObjects}
	PPCLink -m main -o HTMLSample 
		{PPCObjects} 
		{SharedLibraries}CarbonLib 
		{PPCLibraries}PPCCRuntime.o

# bundle

HTMLSample  {Resources} {PPCObjects}
	SetFile -t APPL -c vTeZ -a iB HTMLSample

# source code

:obj:HTMLSample.c.ppc   HTMLSample.c HTMLSample.h RenderingWindow.h SampleUtils.h
	{CCppc} HTMLSample.c -o :obj:HTMLSample.c.ppc

:obj:RenderingWindow.c.ppc   RenderingWindow.c RenderingWindow.h SampleUtils.h  CIconButtons.h History.h
	{CCppc} RenderingWindow.c -o :obj:RenderingWindow.c.ppc

:obj:History.c.ppc   History.c History.h
	{CCppc} History.c -o :obj:History.c.ppc

:obj:CIconButtons.c.ppc   CIconButtons.c CIconButtons.h
	{CCppc} CIconButtons.c -o :obj:CIconButtons.c.ppc

:obj:SampleUtils.c.ppc   SampleUtils.c SampleUtils.h
	{CCppc} SampleUtils.c -o :obj:SampleUtils.c.ppc

:obj:AboutBox.c.ppc   AboutBox.c AboutBox.h
	{CCppc} AboutBox.c -o :obj:AboutBox.c.ppc

:obj:debugf.c.ppc   debugf.c debugf.h
	{CCppc} debugf.c -o :obj:debugf.c.ppc
