#####################################################################
#	Make003	:	REV003 Makefile
#
#	Native Spirit COFF & BIN files are a modified version
# 	of Duranik's NATIVE DEMO. Source code is provided for
#	educational purposes approved of by Duranik.
#
#	NATIVE DEMO
#	http://www.DURANIK.com/
#
#	NATIVE SPIRIT Sourceforge Project
#	http://NativeSpirit.sourceforge.net
#
#	   NATIVE SPIRIT Adaptation Produced by Jason Keith Data
#	2009 Revision Licensed under an Educational Community License
#			Copyright  2007 Zentanyx
#
#####################################################################

#====================================================================
#       Macro & Assembler flags
#====================================================================

STADDR	= 5000

FLASHADD = 802000

MACFLAGS = -fb -v 

ALNFLAGS = -a $(STADDR) x x -e -v

#====================================================================
#       Default Rules
#====================================================================
.SUFFIXES: .o .s

.s.o:
        mac $(MACFLAGS) $*

#====================================================================
# Compile __COFF__ format for ALPINE DEVELOPER BOARD
#====================================================================

OBJ = NS003.O

MACFLAGS = -fb -v 

ALNFLAGS = -a $(STADDR) x x -e -v

NS003.COF: $(OBJ)
		aln $(ALNFLAGS) -o NS003.COF $(OBJ)

#====================================================================
# Compile __BIN__ for JAGUAR UNMODIFIED GAME SERVER
#====================================================================

		aln -n -a $(STADDR) x x -e -v -o NS003.BIN $(OBJ)

#====================================================================
# Compile __ROM__ for FLASH ROM Download Utility v2.0
#====================================================================
# 	Error: File does not contain an even multiple of longwords!
#		aln -a $(FLASHADD) x 5000 -e -v -o NS003.ROM $(OBJ)

NS003.O: NS003.S
