Makefile 1.54 KB

#
# Makefile for Viper
#
include $(ROOT)/usr/include/make/PRdefs

TARGETS= banks

SEQFILES = Viper.mid
SEQBANK = Viper.sbk

INSTFILES = Viper.inst

BANKFILES=$(INSTFILES:.inst=.ctl)

AIFFFILES =  sounds/ClearBell_A5.aiff\
             sounds/ViperChina.aiff\
             sounds/ViperCrash.aiff\
             sounds/ViperKick.aiff\
             sounds/ViperTom.aiff\
             sounds/Drone_G3.aiff\
             sounds/FatBass_G2.aiff\
             sounds/PrphtBrs_A5.aiff\
             sounds/PrphtBrs_D5.aiff\
             sounds/PrphtBrs_E6.aiff\
             sounds/Pulse_G2.aiff\
             sounds/Strings_E4.aiff\
             sounds/Strings_Gb4.aiff\
             sounds/Strings_D5.aiff\
             sounds/Strings_C6.aiff





SEQBNKF = $(SEQFILES:.mid=.seq)
AIFCFILES=$(AIFFFILES:.aiff=.aifc)
TABLEFILES=$(AIFFFILES:.aiff=.table)

LDIRT=	$(TABLEFILES) $(AIFCFILES) $(SEQBNKF) $(SEQBANK) \
	$(BANKFILES) $(INSTFILES:.inst=.sym) $(INSTFILES:.inst=.tbl)

default: $(AIFCFILES) $(TARGETS) Makefile 

include $(COMMONRULES)

.SUFFIXES: .aiff .aifc .inst .ctl .tbl .mid .seq .sbk

.mid.seq:
	$(MIDICVT) -s $< $*.seq

.aiff.aifc:
	$(TABLEDESIGN) $< > $*.table
	$(VADPCM_ENC) -t -c $*.table $< $@

.inst.ctl: $(AIFFFILES)
	$(IC) -o $* $<

.inst.tbl:	# Dummy target for tables
	@echo ''

$(SEQBANK): $(SEQBNKF)
	$(SBC) -o $(SEQBANK) $(SEQBNKF)

sounds: $(AIFCFILES)

$(BANKFILES): $(AIFCFILES)

banks:$(SEQBANK) $(BANKFILES)

exports: default
	$(INSTALL) -F /usr/lib/PR/$(TARGETS) $(AIFCFILES)

install: default
	$(INSTALL) -F /usr/lib/PR/$(TARGETS) $(AIFCFILES)