#####################################################################
#	Make0029	:	REV0029 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
#	2007 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 = NS0029.O

MACFLAGS = -fb -v 

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

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

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

		aln -n -a $(STADDR) x x -e -v -o NS0029.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 NS0029.ROM $(OBJ)

NS0029.O: NS0029.S
