#!smake -k
#
# Makefile for RDP verification application test suite.
#
include $(ROOT)/usr/include/make/PRdefs

TEXDIR =	$(ROOT)/PR/apps/rdpatt/Texture

APP =		rdpverif
APP_EM =	rdpverif_em

OPTIMIZER =	-g

TARGETS =	rom rom_em

EMULATE	= 	$(ROOT)/usr/sbin/emulate

TEXHFILES =	RGBA16dana.h	\
		RGBA16grid.h	\
		IA4checker.h	\
		I4granite3.h	\
		I4luna.h	\
		I4haeberli_fixed.h	\
		IA4haeberli_fixed.h	\
		IA4Tymes-Elfin.h	\
		I4Tymes-Elfin.h

HFILES =	$(TEXHFILES) rdpverif.h controller.h

CODEFILES =	rdpverif.c main.c controller.c
CODEOBJECTS =	$(CODEFILES:.c=.o)
CODEOBJECTS_EM =	rdpverif.o main_em.o

DATAFILES =	zbuffer.c init.c static.c cfb.c
DATAOBJECTS =	$(DATAFILES:.c=.o)

CODESEGMENT =	codesegment.o
CODESEGMENT_EM = codesegment_em.o

OBJECTS =	$(CODESEGMENT) $(DATAOBJECTS)
OBJECTS_EM =	$(CODESEGMENT_EM) $(DATAOBJECTS)

#LCINCS =	-I. -I$(ROOT)/usr/include/PR -I $(ROOT)/usr/include -DUSE_TEX
LCINCS =	-I. -I$(ROOT)/usr/include/PR -I $(ROOT)/usr/include
LCOPTS =	-fullwarn -non_shared -G 0

LDIRT  =	$(APP) $(APP_EM) rdpverif rdpverif_em \
		InData/test*Z $(TEXHFILES)

LDFLAGS_EM =	$(MKDEPOPT) -nostdlib -L$(ROOT)/usr/lib -L$(ROOT)/usr/lib/PR \
			-lem -lultra_em

LDFLAGS =	$(MKDEPOPT) -nostdlib -L$(ROOT)/usr/lib -L$(ROOT)/usr/lib/PR \
		-lultra_d

LCDEFS =

default:	$(TARGETS)

include $(COMMONRULES)

install:	default
		$(INSTALL) -m 444 -F /usr/src/PR/rdpverif Makefile spec \
			$(HFILES) $(CODEFILES) $(DATAFILES)

$(CODESEGMENT):	$(CODEOBJECTS)
		$(LD) -o $(CODESEGMENT) -r $(CODEOBJECTS) $(LDFLAGS)

$(CODESEGMENT_EM):	$(CODEOBJECTS_EM)
		$(LD) -o $(CODESEGMENT_EM) -r $(CODEOBJECTS_EM) $(LDFLAGS_EM)

$(OBJECTS): $(HFILES)

#
# This must depend on the generated h-files, which in turn depend
# on the cases utility. If we don't do this, smake fails.
#
rom $(APP):	spec $(OBJECTS) $(MAKEROM)
		$(MAKEROM) -r rom spec

rom_em $(APP_EM):	spec_em $(OBJECTS_EM) $(MAKEROM)
		$(MAKEROM) -e -r rom_em spec_em

#
# Files specific to Hardware/Emulator
#

main.o: main.c
	$(CC) $(CFLAGS) $(LCDEFS) -c $< 

rdpverif.o: rdpverif.c $(TEXHFILES)
	$(CC) $(CFLAGS) $(LCDEFS) -c $< 

static.o: static.c
	$(CC) $(CFLAGS) $(LCDEFS) -c $< 

main_em.o: main.c
	$(CC) $(CFLAGS) $(LCDEFS) -D_EMULATOR -o $*.o -c main.c

#
# ADD TEST CASE:
#
# Note: due to fopen() restrictions in the rsp simulator, the
# directory you send the output to must exist before running...
#
NIGHTLY_REGRESSION_TEST_ARCHIVE =	\
	InData/test014.14.rdp.Z.archive \
	InData/test015.15.rdp.Z.archive \
	InData/test016.16.rdp.Z.archive \
	InData/test017.17.rdp.Z.archive \
	InData/test031.31.rdp.Z.archive \
	InData/test032.32.rdp.Z.archive \
	InData/test038.38.rdp.Z.archive \
	InData/test132.32.rdp.Z.archive

OTHER_TESTS_ARCHIVE =	\
	InData/test001.01.rdp.Z.archive \
	InData/test002.02.rdp.Z.archive \
	InData/test003.03.rdp.Z.archive \
	InData/test004.04.rdp.Z.archive \
	InData/test005.05.rdp.Z.archive \
	InData/test006.06.rdp.Z.archive \
	InData/test007.07.rdp.Z.archive \
	InData/test008.08.rdp.Z.archive \
	InData/test009.09.rdp.Z.archive \
	InData/test010.10.rdp.Z.archive \
	InData/test011.11.rdp.Z.archive \
	InData/test012.12.rdp.Z.archive \
	InData/test013.13.rdp.Z.archive \
	InData/test020.20.rdp.Z.archive \
	InData/test033.33.rdp.Z.archive \
	InData/test034.34.rdp.Z.archive \
	InData/test035.35.rdp.Z.archive \
	InData/test036.36.rdp.Z.archive \
	InData/test037.37.rdp.Z.archive \
	InData/test039.39.rdp.Z.archive \
	InData/test040.40.rdp.Z.archive

ROBTESTS =	test005 \
		test006 \
		test007 \
		test008 \
		test010 \
		test011 \
		test012 \
		test013 \
		test037 \
		test038 \
		test039 \
		test040 \
		test061 \
		test062 \
		test065 \
		test067

NIGHTLY_REGRESSION_TESTS        = ${NIGHTLY_REGRESSION_TEST_ARCHIVE:R:R:R:R:T}
NIGHTLY_REGRESSION_TEST_TARGETS = ${NIGHTLY_REGRESSION_TEST_ARCHIVE:R}
OTHER_TESTS                     = ${OTHER_TESTS_ARCHIVE:R:R:R:R:T}
OTHER_TESTS_TARGETS             = ${OTHER_TESTS_ARCHIVE:R}
TESTS                           = ${OTHER_TESTS} ${NIGHTLY_REGRESSION_TESTS}

#
# Header file build rules
#

RGBA16dana.h: $(TEXDIR)/dana_tiny.rgb
	$(RGB2C) -m RGBA16dana $(TEXDIR)/dana_tiny.rgb > RGBA16dana.h

RGBA16grid.h: $(TEXDIR)/grid.rgb
	$(RGB2C) -m RGBA16grid $(TEXDIR)/grid.rgb > RGBA16grid.h

IA4checker.h: $(TEXDIR)/checker.rgb
	$(RGB2C) -f IA -s 4 -m IA4checker $(TEXDIR)/checker.rgb > IA4checker.h

I4granite3.h: $(TEXDIR)/granite.3.bw
	$(RGB2C) -f I -s 4 -m I4granite3 $(TEXDIR)/granite.3.bw > I4granite3.h

I4luna.h: $(TEXDIR)/luna.rgb
	$(RGB2C) -f I -s 4 -m I4luna $(TEXDIR)/luna.rgb > I4luna.h

I4haeberli_fixed.h: $(TEXDIR)/haeberli_fixed.bw
	$(RGB2C) -f I -s 4 -m I4haeberli_fixed $(TEXDIR)/haeberli_fixed.bw > I4haeberli_fixed.h

IA4haeberli_fixed.h: $(TEXDIR)/haeberli_fixed.bw
	$(RGB2C) -f IA -s 4 -m IA4haeberli_fixed $(TEXDIR)/haeberli_fixed.bw > IA4haeberli_fixed.h

IA4Tymes-Elfin.h: $(TEXDIR)/Tymes-Elfin.bw
	$(RGB2C) -f IA -s 4 -m IA4Tymes_Elfin $(TEXDIR)/Tymes-Elfin.bw > IA4Tymes-Elfin.h

I4Tymes-Elfin.h: $(TEXDIR)/Tymes-Elfin.bw
	$(RGB2C) -f I -s 4 -m I4Tymes_Elfin $(TEXDIR)/Tymes-Elfin.bw > I4Tymes-Elfin.h

#
#  Tests not in regression, but interesting anyway
#
robtests: $(ROBTESTS)

#
# Anti-aliased square
#
test000:                        InData/test000.0.rdp.Z

InData/test000.0.rdp.Z:        $(APP_EM)
	$(EMULATE) -n -s -a "-a -o 0 -n InData/test000" $(APP_EM) rom_em
	compress -f InData/test000*.rdp

test001:                        InData/test001.1.rdp.Z

InData/test001.1.rdp.Z:        $(APP_EM)
	$(EMULATE) -n -s -a "-m -a -o 1 -n InData/test001" $(APP_EM) rom_em
	compress -f InData/test001*.rdp

test002:                        InData/test002.2.rdp.Z

InData/test002.2.rdp.Z:        $(APP_EM)
	$(EMULATE) -n -s -a "-m -a -o 2 -n InData/test002" $(APP_EM) rom_em
	compress -f InData/test002*.rdp

test003:                        InData/test003.3.rdp.Z

InData/test003.3.rdp.Z:        $(APP_EM)
	$(EMULATE) -n -s -a "-m -a -o 3 -n InData/test003" $(APP_EM) rom_em
	compress -f InData/test003*.rdp

test004:                        InData/test004.4.rdp.Z

InData/test004.4.rdp.Z:        $(APP_EM)
	$(EMULATE) -n -s -a "-m -a -f 4 -o 4 -n InData/test004" $(APP_EM) rom_em
	compress -f InData/test004*.rdp

test005:                        InData/test005.5.rdp.Z  InData/test005.5.rdram.Z

InData/test005.5.rdp.Z:        $(APP_EM)
	$(EMULATE) -n -s -a "-m -a -f 5 -o 5 -n InData/test005" $(APP_EM) rom_em
	compress -f InData/test005*.rdp

InData/test005.5.rdram.Z:	$(APP_EM)
	$(EMULATE) -n -s -a \
	    "-a -d -F -m -o 5 -f 5 -n InData/test005" $(APP_EM) rom_em

test006:                        InData/test006.6.rdp.Z InData/test006.6.rdram.Z

InData/test006.6.rdp.Z:        $(APP_EM)
	$(EMULATE) -n -s -a "-m -a -o 6 -n InData/test006" $(APP_EM) rom_em
	compress -f InData/test006*.rdp

InData/test006.6.rdram.Z:	$(APP_EM)
	$(EMULATE) -n -s -a \
	    "-a -d -F -m -o 6 -f 6 -n InData/test006" $(APP_EM) rom_em

test007:                        InData/test007.7.rdp.Z InData/test007.7.rdram.Z

InData/test007.7.rdp.Z:        $(APP_EM)
	$(EMULATE) -n -s -a "-m -a -o 7 -n InData/test007" $(APP_EM) rom_em
	compress -f InData/test007*.rdp

InData/test007.7.rdram.Z:	$(APP_EM)
	$(EMULATE) -n -s -a \
	    "-a -d -F -m -o 7 -f 7 -n InData/test007" $(APP_EM) rom_em

test008:                        InData/test008.8.rdp.Z InData/test008.8.rdram.Z

InData/test008.8.rdp.Z:        $(APP_EM)
	$(EMULATE) -n -s -a "-m -a -o 8 -n InData/test008" $(APP_EM) rom_em
	compress -f InData/test008*.rdp

InData/test008.8.rdram.Z:	$(APP_EM)
	$(EMULATE) -n -s -a \
	    "-a -d -F -m -o 8 -f 8 -n InData/test008" $(APP_EM) rom_em

test009:                        InData/test009.9.rdp.Z

InData/test009.9.rdp.Z:        $(APP_EM)
	$(EMULATE) -n -s -a "-m -a -o 9 -n InData/test009" $(APP_EM) rom_em
	compress -f InData/test009*.rdp

test010:                        InData/test010.10.rdp.Z InData/test010.10.rdram.Z

InData/test010.10.rdp.Z:        $(APP_EM)
	$(EMULATE) -n -s -a "-m -a -o 10 -n InData/test010" $(APP_EM) rom_em
	compress -f InData/test010*.rdp

InData/test010.10.rdram.Z:	$(APP_EM)
	$(EMULATE) -n -s -a \
	    "-a -d -F -m -o 10 -f 10 -n InData/test010" $(APP_EM) rom_em

test011:                        InData/test011.11.rdp.Z  InData/test011.11.rdram.Z

InData/test011.11.rdp.Z:        $(APP_EM)
	$(EMULATE) -n -s -a "-m -a -o 11 -n InData/test011" $(APP_EM) rom_em
	compress -f InData/test011*.rdp

InData/test011.11.rdram.Z:	$(APP_EM)
	$(EMULATE) -n -s -a \
	    "-a -d -F -m -o 11 -f 11 -n InData/test011" $(APP_EM) rom_em

test012:			InData/test012.12.rdp.Z InData/test012.12.rdram.Z

InData/test012.12.rdp.Z:        $(APP_EM)
	$(EMULATE) -n -s -a "-m -a -o 12 -f 12 -n InData/test012" $(APP_EM) rom_em
	compress -f InData/test012*.rdp

InData/test012.12.rdram.Z:	$(APP_EM)
	$(EMULATE) -n -s -a \
	    "-a -d -F -m -o 12 -f 12 -n InData/test012" $(APP_EM) rom_em

test013:                        InData/test013.13.rdp.Z InData/test013.13.rdram.Z

InData/test013.13.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-m -a -o 13 -f 13 -n InData/test013" $(APP_EM) rom_em
	compress -f InData/test013*.rdp

InData/test013.13.rdram.Z:	$(APP_EM)
	$(EMULATE) -n -s -a \
	    "-a -d -F -m -o 13 -f 13 -n InData/test013" $(APP_EM) rom_em


#
# test014: attribute update/sync in one-cycle mode (has anti-aliasing)
#
test014:	InData/test014.14.rdp.Z InData/test014.14.rdram.Z

InData/test014.14.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-a -o 14 -f 14 -n InData/test014 -m -r" $(APP_EM) rom_em
	compress -f InData/test014*.rdp

InData/test014.14.rdram.Z:	$(APP_EM)
	$(EMULATE) -n -s -a \
	    "-a -o 14 -f 14 -n InData/test014 -m -r -d -F" $(APP_EM) rom_em

#
# test015: attribute update/sync in two-cycle mode (has anti-aliasing)
#
test015:	InData/test015.15.rdp.Z InData/test015.15.rdram.Z

InData/test015.15.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-a -o 15 -f 15 -n InData/test015 -m -r" $(APP_EM) rom_em
	compress -f InData/test015*.rdp

InData/test015.15.rdram.Z:	$(APP_EM)
	$(EMULATE) -n -s -a \
	    "-a -o 15 -f 15 -n InData/test015 -m -r -d -F" $(APP_EM) rom_em

#
# test016: attribute update/sync in fill mode (no anti-aliasing)
#
test016:	InData/test016.16.rdp.Z InData/test016.16.rdram.Z

InData/test016.16.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-a -o 16 -f 16 -n InData/test016 -m -r" $(APP_EM) rom_em
	compress -f InData/test016*.rdp

InData/test016.16.rdram.Z:	$(APP_EM)
	$(EMULATE) -n -s -a \
	    "-a -o 16 -f 16 -n InData/test016 -m -r -d" $(APP_EM) rom_em

#
# test017: attribute update in copy mode (no anti-aliasing)
#
test017:	InData/test017.17.rdp.Z InData/test017.17.rdram.Z

InData/test017.17.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-a -o 17 -f 17 -n InData/test017 -m -r" $(APP_EM) rom_em
	compress -f InData/test017*.rdp

InData/test017.17.rdram.Z:	$(APP_EM)
	$(EMULATE) -n -s -a \
	    "-a -o 17 -f 17 -n InData/test017 -m -r -d" $(APP_EM) rom_em

#
# Has anti-aliasing
#
test020:			InData/test020.20.rdp.Z

InData/test020.20.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-a -o 20 -f 20 -n InData/test020 -m" $(APP_EM) rom_em
	compress -f InData/test020*.rdp

#
#  Flight path
#
#  Warning, this target dumps 15 frames with 2M memory file for each frame.
#
#  Each 2M memory file will subsequently be compressed to ~32K each, but
#  this won't get done until all 15 frames of the animation have been run
#  (i.e. make sure you have 30MB available before running this target).
#
# (has anti-aliasing)
#
#
test030:			InData/test030.31.rdp.Z

InData/test030.31.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-a -m -s 30 31 -f 30 -n InData/test030" $(APP_EM) rom_em
	compress -f InData/test030*.rdp

#
# test031: AA modes, texture loads, z-buffer, interpenetration, coverage, etc.
# (LOOK_ALL)
# (has anti-aliasing)
#
test031:	InData/test031.31.rdp.Z InData/test031.31.rdram.Z

InData/test031.31.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-a -m -r -o 31 -f 31 -n InData/test031" $(APP_EM) rom_em
	compress -f InData/test031*.rdp

InData/test031.31.rdram.Z:	$(APP_EM)
	$(EMULATE) -n -s -a \
	    "-a -d -F -m -r -o 31 -f 31 -n InData/test031" $(APP_EM) rom_em

#
# test032: another view of 31, more edge-on cases
# (LOOK_ALL_FOUR_TREES)
# (has anti-aliasing)
#
test032:	InData/test032.32.rdp.Z InData/test032.32.rdram.Z

InData/test032.32.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-a -m -r -o 32 -f 32 -n InData/test032" $(APP_EM) rom_em
	compress -f InData/test032*.rdp

InData/test032.32.rdram.Z:	$(APP_EM)
	$(EMULATE) -n -s -a \
	    "-a -d -F -m -r -o 32 -f 32 -n InData/test032" $(APP_EM) rom_em

#
# test132: 32 bit version of another view of 31, more edge-on cases
# (LOOK_ALL_FOUR_TREES)
# (has anti-aliasing)
#
test132:	InData/test132.32.rdp.Z InData/test132.32.rdram.Z

InData/test132.32.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-a -m -r -o 32 -f 32 -n InData/test132 -t" $(APP_EM) rom_em
	compress -f InData/test132*.rdp

InData/test132.32.rdram.Z:	$(APP_EM)
	$(EMULATE) -n -s -a \
	    "-a -d -F -m -r -o 32 -f 32 -n InData/test132 -t" $(APP_EM) rom_em

#
#  LOOK_ICOSA
#
test033:                        InData/test033.33.rdp.Z

InData/test033.33.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-a -m -o 33 -f 33 -n InData/test033" $(APP_EM) rom_em
	compress -f InData/test033*.rdp

#
#  LOOK_BOX
#
test034:                        InData/test034.34.rdp.Z

InData/test034.34.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-a -m -o 34 -f 34 -n InData/test034" $(APP_EM) rom_em
	compress -f InData/test034*.rdp

#
#  LOOK_FIRST_TREE
#
test035:                        InData/test035.35.rdp.Z

InData/test035.35.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-a -m -o 35 -f 35 -n InData/test035" $(APP_EM) rom_em
	compress -f InData/test035*.rdp

#
#  LOOK_SECOND_TREE
#
test036:                        InData/test036.36.rdp.Z

InData/test036.36.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-a -m -o 36 -f 36 -n InData/test036" $(APP_EM) rom_em
	compress -f InData/test036*.rdp

#
#  texture edge mode test
#
test037:                        InData/test037.37.rdp.Z InData/test037.37.rdram.Z

InData/test037.37.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-a -m -o 37 -f 37 -n InData/test037" $(APP_EM) rom_em
	compress -f InData/test037*.rdp

InData/test037.37.rdram.Z:	$(APP_EM)
	$(EMULATE) -n -s -a \
	    "-a -d -F -m -o 37 -f 37 -n InData/test037" $(APP_EM) rom_em

#
#  zbuffer range/accuracy test (no anti-aliasing)
#
test038:	InData/test038.38.rdp.Z InData/test038.38.rdram.Z

InData/test038.38.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-a -m -r -o 38 -f 38 -n InData/test038" $(APP_EM) rom_em
	compress -f InData/test038*.rdp

InData/test038.38.rdram.Z:	$(APP_EM)
	$(EMULATE) -n -s -a \
	    "-a -d -m -o 38 -f 38 -n InData/test038" $(APP_EM) rom_em

#
#  odd interlaced version of test030
#
test039:	InData/test039.39.rdp.Z InData/test039.39.rdram.Z

InData/test039.39.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-a -m -r -o 39 -f 39 -n InData/test039" $(APP_EM) rom_em
	compress -f InData/test039*.rdp

InData/test039.39.rdram.Z:	$(APP_EM)
	$(EMULATE) -n -s -a \
	    "-a -d -F -m -o 39 -f 39 -n InData/test039" $(APP_EM) rom_em

#
#  even interlaced version of test030
#

test040:	InData/test040.40.rdp.Z InData/test040.40.rdram.Z

InData/test040.40.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-a -m -r -o 40 -f 40 -n InData/test040" $(APP_EM) rom_em
	compress -f InData/test040*.rdp

InData/test040.40.rdram.Z:	$(APP_EM)
	$(EMULATE) -n -s -a \
	    "-a -d -F -m -o 40 -f 40 -n InData/test040" $(APP_EM) rom_em

#
#  Rolling doughnuts
#

test041:                        InData/test041.41.rdp.Z

InData/test041.41.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-a -m -o 41 -f 41 -n InData/test041" $(APP_EM) rom_em
	compress -f InData/test041*.rdp

#
#  Random forest, vert strip, 16b
#

test061:                        InData/test061.61.rdp.Z InData/test061.61.rdram.Z

InData/test061.61.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-a -m -o 61 -f 61 -n InData/test061" $(APP_EM) rom_em
	compress -f InData/test061*.rdp

InData/test061.61.rdram.Z:	$(APP_EM)
	$(EMULATE) -n -s -a \
	    "-a -d -F -m -o 61 -f 61 -n InData/test061" $(APP_EM) rom_em

#
#  Random forest, horz strip, 16b
#

test062:                        InData/test062.62.rdp.Z InData/test062.62.rdram.Z

InData/test062.62.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-a -m -o 62 -f 62 -n InData/test062" $(APP_EM) rom_em
	compress -f InData/test062*.rdp

InData/test062.62.rdram.Z:	$(APP_EM)
	$(EMULATE) -n -s -a \
	    "-a -d -F -m -o 62 -f 62 -n InData/test062" $(APP_EM) rom_em

#
#  Random forest, vert strip, 32b
#

test063:                        InData/test063.63.rdp.Z InData/test063.63.rdram.Z

InData/test063.63.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-t -a -m -o 63 -f 63 -n InData/test063" $(APP_EM) rom_em
	compress -f InData/test063*.rdp

InData/test063.63.rdram.Z:	$(APP_EM)
	$(EMULATE) -n -s -a \
	    "-t -a -d -F -m -r -o 63 -f 63 -n InData/test063" $(APP_EM) rom_em

#
#  Random forest, horz strip, 32b
#

test064:                        InData/test064.64.rdp.Z InData/test064.64.rdram.Z

InData/test064.64.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-t -a -m -o 64 -f 64 -n InData/test064" $(APP_EM) rom_em
	compress -f InData/test064*.rdp

InData/test064.64.rdram.Z:	$(APP_EM)
	$(EMULATE) -n -s -a \
	    "-t -a -d -F -m -r -o 64 -f 64 -n InData/test064" $(APP_EM) rom_em

#
#  Fractal terrain
#

test065:                        InData/test065.65.rdp.Z InData/test065.65.rdram.Z

InData/test065.65.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-a -m -o 65 -f 65 -n InData/test065" $(APP_EM) rom_em
	compress -f InData/test065*.rdp

InData/test065.65.rdram.Z:	$(APP_EM)
	$(EMULATE) -n -s -a \
	    "-a -d -F -m -o 65 -f 65 -n InData/test065" $(APP_EM) rom_em

#
#  Spinning Torus
#

test066:                        InData/test066.16.rdp.Z InData/test066.16.rdram.Z

InData/test066.16.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-a -m -s 66 16 -f 66 -n InData/test066" $(APP_EM) rom_em
	compress -f InData/test066*.rdp

InData/test066.16.rdram.Z:	$(APP_EM)
	$(EMULATE) -n -s -a \
	    "-t -a -d -F -m -r -s 66 16 -f 66 -n InData/test066" $(APP_EM) rom_em

#
#  Spinning "U-64"
#

test067:                        InData/test067.67.rdp.Z InData/test067.67.rdram.Z

InData/test067.67.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-a -m -o 67 -f 67 -n InData/test067" $(APP_EM) rom_em
	compress -f InData/test067*.rdp

InData/test067.67.rdram.Z:	$(APP_EM)
	$(EMULATE) -n -s -a \
	    "-a -d -F -m -o 67 -f 67 -n InData/test067" $(APP_EM) rom_em

#
#  Texture Font Example
#

test068:                        InData/test068.68.rdp.Z

InData/test068.68.rdp.Z:	$(APP_EM)
	$(EMULATE) -n -s -a "-a -m -o 68 -f 68 -n InData/test068" $(APP_EM) rom_em
	compress -f InData/test068*.rdp

tests:	$(TESTS)

#
# Run a smaller subset of the total test coverage on a nightly basis.
#
nightly_regression: $(NIGHTLY_REGRESSION_TESTS)

#
# Run tests not run in nightly regression
#
other_tests: $(OTHER_TESTS)

#
# Only checkin archived versions of the .mem, .rdp files on a periodic, 
# on-demand basis (e.g. whenever an RSP simulator/ucode change affects the 
# output files mumble.mem or mumble.rdp).
#
# Otherwise we'll pollute the source tree with unnecessary copies
# of these data files.  The intent is to provide a way to resurrect data
# files for downstream simulation purposes whenever the output files generated
# by the rsp sim environment causes a hiccup downstream.
#
periodic_checkin: $(NIGHTLY_REGRESSION_TESTS)
	$(ROOT)/PR/tools/scripts/copyToArchive $(NIGHTLY_REGRESSION_TEST_TARGETS)
