Makefile.makerom 1.75 KB
/*
 * ROM spec file
 */

/* include settings from project header file */
#define SPECFILE
#include "test_rom.h"

beginseg
	name "code"
	flags BOOT OBJECT
	entry boot
	address 0x80060000
	stack bootStack + STACKSIZE
	include "test_wave.o"	
	include "$(ROOT)/usr/lib/PR/rspboot.o"
	include "$(ROOT)/usr/lib/PR/gspF3DEX.fifo.o"
	include "$(ROOT)/usr/lib/PR/aspMain.o"
endseg

/* workspace */
beginseg
	name "cfb"
	flags OBJECT
	address 0x80000400
	include "test_workspace.o"
endseg



/* MUSIC SEGMENTS */

/* sample data - pointer bank */
beginseg
    name "pbank1"
    flags RAW
    include "../SoundData/rock.ptr"
endseg
beginseg
    name "pbank2"
    flags RAW
    include "../SoundData/fxbank1.ptr"
endseg
beginseg
    name "pbank3"
    flags RAW
    include "../SoundData/fxbank2.ptr"
endseg

/* sample data - wave bank */
beginseg
    name "wbank1"
    flags RAW
    include "../SoundData/rock.wbk"
endseg
beginseg
    name "wbank2"
    flags RAW
    include "../SoundData/fxbank1.wbk"
endseg
beginseg
    name "wbank3"
    flags RAW
    include "../SoundData/fxbank2.wbk"
endseg

/* effect data */
beginseg
    name "effect0"
    flags RAW
    include "../SoundData/rock.bfx"
endseg
beginseg
    name "effect1"
    flags RAW
    include "../SoundData/fxbank1.bfx"
endseg
beginseg
    name "effect2"
    flags RAW
    include "../SoundData/fxbank2.bfx"
endseg


/* tune data */
beginseg
    name "tune"
    flags RAW
    include "../SoundData/rock.bin"
endseg


/*
 * Combine all of the segments into a single wave (ROM image)
 */

beginwave
	name "test_wave"

	include "code"

	include "pbank1"
	include "wbank1"
	include "pbank2"
	include "wbank2"
	include "pbank3"
	include "wbank3"
	include "tune"
	include "effect0"
	include "effect1"
	include "effect2"

	include "cfb"

endwave