head	1.1;
branch	1.1.1;
access;
symbols
	iQue_20031113:1.1.1.1
	iQue_beta_1_0:1.1.1.1
	start:1.1.1.1
	Nintendo:1.1.1;
locks; strict;
comment	@# @;
expand	@b@;


1.1
date	2003.02.05.23.41.30;	author wheeler;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2003.02.05.23.41.30;	author wheeler;	state Exp;
branches;
next	;


desc
@@



1.1
log
@Initial revision
@
text
@#############################################################################
#			STARFOX64 SOUND MAKEFILE
#			WRITTEN BY YOJI INAGAKI (NCL,EAD)
#			1996.10.16(WED)
#############################################################################


########################################################
#	define
########################################################

U_INFO_OPT = #-D_BG_OFF
VEROPT =  
#-D_HW_VERSION_1 #-D_AUDIODEBUG_
VEROBJ =  audiosys.o
#OBJINC =  -I. -I/usr/include/PR -I/usr/include -g -woff 515,608,658,799 
OBJINC =  -I. -I/usr/include/PR -I/usr/include -O2 -mips2 -woff 515,608,658,799 
OBJOPT =  $(VEROPT) -signed -xansi -fullwarn -non_shared -G 0 -nostdinc -Wab,-r4300_mul -Xcpluscomm
# -MDupdate makedepend 
LNKOPT =  -mips2
FINALLNKOPT = $(LNKOPT) -nostdlib -L/usr/lib -L/usr/lib/PR  -lultra_d
# -MDupdate makedepend 
GAME   =  fox64
DATAS  =  $(GAME)_banks.o $(GAME)_music.o #$(GAME)_table.o 

.SUFFIXES:	.com .mus .mid .exnA .bcc

########################################################
#	Make ROM
########################################################

date.txt:	$(DATAS) 
	date >date.txt


########################################################
#		SOND DATA BINARY to C-OBJECT
########################################################
#$(GAME)_table.o:	$(GAME).table.cart
$(GAME)_banks.o:	$(GAME).banks.cart $(GAME).table.cart
	d2elf -t fox64_banks -o $(GAME)_banks.o $(GAME).banks.cart
	d2elf -t fox64_table -o $(GAME)_table.o $(GAME).table.cart
#	d2elf -t fox64_music -o $(GAME)_music.o $(GAME).music.cart
#$(GAME)_table.o:	$(GAME).table.cart
#	d2elf -t fox64_table -o $(GAME)_table.o $(GAME).table.cart

$(GAME)_music.o:	$(GAME).music.cart
	d2elf -t fox64_music -o $(GAME)_music.o $(GAME).music.cart

#$(GAME)_sbmap.o:	$(GAME).sbmap
#	falign $(GAME).sbmap 16
#	d2elf -t fox64_sbmap -o $(GAME)_sbmap.o $(GAME).sbmap


########################################################
#		voice bank compile
########################################################
#SE_BNK_DIR = SE/Banks
VO_BNK_DIR = Voice/Banks

.bcc.exnA:
	bcc $< -a -i -f -p $(VO_BNK_DIR)/ 
#| sed '/Book Matching/d;/^$$/d' > $(<:.bcc=.info)

#$(VO_BNK_DIR)/fox_voice01.bank: $(VO_BNK_DIR)/fox_voice01.bcc Voice/Aifc/voice01/*.aifc
#bcc $(VO_BNK_DIR)/fox_voice01.bcc -p $(VO_BNK_DIR)/ -i  #| sed '/Book Matching/d;/^$$/d' > $(VO_BNK_DIR)/fox_voice01.info

#SE_BNK_OBJ = $(SE_BNK_DIR)/fox_se.bank
VO_BNK_SRC =	\
		$(VO_BNK_DIR)/fox_voice00.bcc \
		$(VO_BNK_DIR)/fox_voice01.bcc \
		$(VO_BNK_DIR)/fox_voice02.bcc \
		$(VO_BNK_DIR)/fox_voice03.bcc \
		$(VO_BNK_DIR)/fox_voice04.bcc \
		$(VO_BNK_DIR)/fox_voice05.bcc \
		$(VO_BNK_DIR)/fox_voice06.bcc \
		$(VO_BNK_DIR)/fox_voice07.bcc \
		$(VO_BNK_DIR)/fox_voice08.bcc \
		$(VO_BNK_DIR)/fox_voice09.bcc \
		$(VO_BNK_DIR)/fox_voice10.bcc \
		$(VO_BNK_DIR)/fox_voice11.bcc \
		$(VO_BNK_DIR)/fox_voice14.bcc \
		$(VO_BNK_DIR)/fox_voice15.bcc \
		$(VO_BNK_DIR)/fox_voice16.bcc \
		$(VO_BNK_DIR)/fox_voice17.bcc \
		$(VO_BNK_DIR)/fox_voice18.bcc \
		$(VO_BNK_DIR)/fox_voice19.bcc \
		$(VO_BNK_DIR)/fox_voice20.bcc \
		$(VO_BNK_DIR)/fox_voice21.bcc
VO_BNK_OBJ = $(VO_BNK_SRC:.bcc=.bank)
VO_BNK_EXN = $(VO_BNK_SRC:.bcc=.exnA)
VO_WAVE	= FoxVoice

########################################################
#		All sequence compile
########################################################


SE_SEQ_SRC =	SE/Seqs/*.mus SE/Seqs/fox_seseq.mus SE/Seqs/fox_seseq.env SE/Seqs/fox_seseq.def  
SE_SEQ_OBJ =	SE/Seqs/fox_seseq

VO_SEQ_SRC =	Voice/Seqs/fox_voice.def Voice/Seqs/fox_voice*.mus
VO_SEQ_OBJ =	Voice/Seqs/fox_voice

$(GAME).music.cart:  $(SE_SEQ_OBJ).com $(VO_SEQ_OBJ).com BGM_kondo/Seqs/*.com BGM_wakai/Seqs/*.com
	scp sound.map -s


########################################################
#		All  bank compile
########################################################

SE_WAVE_PATH	=	SE/Banks/
VO_WAVE_PATH	=	Voice/Banks/
SE_BNK_000 = 	SE/Banks/fox_se

SE_BNK_SRC =	\
		$(SE_BNK_000).bank
#VO_BNK_SRC =    *.exnA
VO_WAVE_NAME	=	FoxVoice



#BGM_BNK_SRC =	BGM_old/Banks/*.bank BGM_wakai/Banks/*.bank BGM_kondo/Banks/*.bank
#BGM_BNK_EXN =	BGM_old/Banks/*.exn BGM_wakai/Banks/*.exn BGM_kondo/Banks/*.exn

BGM_WAVE_NAME	=	FoxBgm
BGM_BNK_SRC	=	BGM_wakai/Banks/*.bank BGM_kondo/Banks/*.bank
#BGM_BNK_EBK	=	BGM_all/*.ebank
BGM_WAVE_PATH	=	BGM_all/Banks/


$(VO_WAVE_PATH)$(VO_WAVE_NAME).awave:	$(VO_BNK_EXN)
	cd Voice/Banks ; \
	wavemaker $(VO_WAVE_NAME) *.exnA ; \
	patchbcc $(VO_WAVE_NAME).exinfo *.exnA

$(GAME).banks.cart:	$(SE_BNK_SRC) $(VO_BNK_SRC) $(BGM_BNK_SRC) $(BGM_WAVE_PATH)$(BGM_WAVE_NAME).awave $(VO_WAVE_PATH)$(VO_WAVE_NAME).awave sound.map $(SE_SEQ_OBJ).com $(VO_SEQ_OBJ).com 
	scp sound.map

	
$(BGM_WAVE_PATH)$(BGM_WAVE_NAME).awave:	$(BGM_BNK_SRC)
	cp BGM_wakai/Banks/*.bank BGM_all/Banks
	cp BGM_wakai/Banks/*.exnA BGM_all/Banks
	cp BGM_kondo/Banks/*.bank BGM_all/Banks
	cp BGM_kondo/Banks/*.exnA BGM_all/Banks
	cd BGM_all/Banks ; \
	strchg *.exnA -f exnpatch.tbl -a ; \
	wavemaker $(BGM_WAVE_NAME) *.exnA ; \
	patchbcc $(BGM_WAVE_NAME).exinfo *.exnA


########################################################
#		se bank compile
########################################################

$(SE_BNK_000).bank:	$(SE_BNK_000).bcc
		bcc $(SE_BNK_000) -p SE/Banks/

#SE_BNK_PLA = 	SE/Banks/fox_player
#
#$(SE_BNK_PLA).bank:	$(SE_BNK_PLA).bcc
#		bcc $(SE_BNK_PLA) -p SE/Banks/
#SE_BNK_ENM = 	SE/Banks/fox_enemy
#
#$(SE_BNK_ENM).bank:	$(SE_BNK_ENM).bcc
#		bcc $(SE_BNK_ENM) -p SE/Banks/



########################################################
#		SE sequence compile
########################################################
$(SE_SEQ_OBJ).com:	$(SE_SEQ_SRC)
	bi $(SE_SEQ_OBJ)
$(VO_SEQ_OBJ).com:	$(VO_SEQ_SRC)
	bi $(VO_SEQ_OBJ)





########################################################
#	clean all objects
########################################################
clean:
	rm SE/Banks/fox_se.bank SE/Seqs/fox_seseq.com Voice/Seqs/fox_voice.com Voice/Banks/fox_voice*.exnA
	
@


1.1.1.1
log
@audio assets
@
text
@@
