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

TARGETS= sounds


AIFFFILES =  AcSnare_1.aiff\
             Agogo_1.aiff\
             Block_1.aiff\
             Bongo_1.aiff\
             Cabasa_1.aiff\
             Castanet_1.aiff\
             ChinaCymbal_1.aiff\
             Claves_1.aiff\
             ClosedHat_2.aiff\
             CongaHi_1.aiff\
             Cowbell_1.aiff\
             Crash_1.aiff\
             Cuica_1.aiff\
             ElecSnare_1.aiff\
             FloorTom_1.aiff\
             Guiro_1.aiff\
             HandClaps_1.aiff\
             Kick_1.aiff\
             Kick_2.aiff\
             Maracas_1.aiff\
             MuteConga_1.aiff\
             OpenHat_1.aiff\
             RevCymbal_1.aiff\
             Ride_1.aiff\
             SideStick_1.aiff\
             Snare_1.aiff\
             Surdo_1.aiff\
             SynthDrum_1.aiff\
             Taiko_1.aiff\
             Tamborine_1.aiff\
             Timbale_1.aiff\
             Triangle_1.aiff\
             Whistle_1.aiff\
             AcSnare.22k.aiff\
             Agogo.20k.aiff\
             BellTree.44k.aiff\
             Block.17k.aiff\
             Bongo.15k.aiff\
             Cabasa.26k.aiff\
             Castanet.19k.aiff\
             ChinaCymbal.20k.aiff\
             Claves.15k.aiff\
             ClosedHat_2.22k.aiff\
             CongaHi.16k.aiff\
             Cowbell.20k.aiff\
             Crash.20k.aiff\
             Cuica.16k.aiff\
             ElecSnare1.22k.aiff\
             FloorTom.18k.aiff\
             Guiro.17k.aiff\
             HandClaps.22k.aiff\
             JingleBells.44k.aiff\
             Kick1.16k.aiff\
             Kick2.17k.aiff\
             Maracas.27k.aiff\
             MuteConga.18k.aiff\
             OpenHat.22k.aiff\
             RevCymbal.22k.aiff\
             Ride.22k.aiff\
             SideStick.22k.aiff\
             Snare.17k.aiff\
             Surdo.16k.aiff\
             SynthDrum.22k.aiff\
             Taiko.22k.aiff\
             Tamborine.24k.aiff\
             Timbale.18k.aiff\
             Triangle.24k.aiff\
             Whistle.19k.aiff\
             Ac_Bass_C3.aiff\
             Ac_Bass_C3.22k.aiff\
             Accordian_A5.aiff\
             Accordian_G4.aiff\
             Accordian_A5.23k.aiff\
             Accordian_G4.22k.aiff\
             AltoSax_Bb4.aiff\
             AltoSax_Bb4.22k.aiff\
             Applause.22k.aiff\
             Bagpipes_F4.17k.aiff\
             Bandoneon_F5.24k.aiff\
             Bandoneon_F5.aiff\
             Banjo_G4.17k.aiff\
             BariSax_C3.aiff\
             BariSax_C3.22k.aiff\
             Bassoon_G3.aiff\
             Bassoon_G3.22k.aiff\
             Birdtweet.22k.aiff\
             BottleBlow2_C5.aiff\
             BottleBlow2_C5.17k.aiff\
             BrassSect_C5.aiff\
             BrassSect_E4.aiff\
             BrassSect_C5.22k.aiff\
             BrassSect_E4.22k.aiff\
             Breath_G5.22k.aiff\
             Celeste_Bb4.aiff\
             Celeste_C4.aiff\
             Celeste_C6.aiff\
             Celeste_F5.aiff\
             Celeste_Bb4.22k.aiff\
             Celeste_C4.22k.aiff\
             Celeste_C6.29k.aiff\
             Celeste_F5.26k.aiff\
             ChoirAhhs_C4.aiff\
             ChoirAhhs_C5.aiff\
             ChoirAhhs_F3.aiff\
             ChoirAhhs_F5.aiff\
             ChoirAhhs_G4.aiff\
             ChoirAhhs_C4.22k.aiff\
             ChoirAhhs_C5.22k.aiff\
             ChoirAhhs_F3.22k.aiff\
             ChoirAhhs_F5.22k.aiff\
             ChoirAhhs_G4.22k.aiff\
             ChoirOohs_C4.aiff\
             ChoirOohs_C5.aiff\
             ChoirOohs_G3.aiff\
             ChoirOohs_G4.aiff\
             ChoirOohs_G5.aiff\
             ChoirOohs_C4.22k.aiff\
             ChoirOohs_C5.22k.aiff\
             ChoirOohs_G3.22k.aiff\
             ChoirOohs_G4.22k.aiff\
             ChoirOohs_G5.22k.aiff\
             Clarinet_C5.aiff\
             Clarinet_C5.22k.aiff\
             Cello_A3.aiff\
             Cello_C3.aiff\
             Cello_F2.aiff\
             Cello_Bb1.aiff\
             Cello_A3.22k.aiff\
             Cello_C3.22k.aiff\
             Cello_F2.22k.aiff\
             Cello_Bb1.22k.aiff\
             DistGtr_A3.aiff\
             DistGtr_A5.aiff\
             DistGtr_C5.aiff\
             DistGtr_E4.aiff\
             DistGtr_F6.aiff\
             DistGtr_A3.22k.aiff\
             DistGtr_A5.22k.aiff\
             DistGtr_C5.22k.aiff\
             DistGtr_E4.22k.aiff\
             DistGtr_F6.24k.aiff\
             DrawBarOrgan_C6.aiff\
             DrawBarOrgan_C6.31k.aiff\
             Dulcimer_C5.aiff\
             Dulcimer_C5.22k.aiff\
             ElecPiano1_C5.aiff\
             ElecPiano1_C6.aiff\
             ElecPiano1_C5.22k.aiff\
             ElecPiano1_C6.22k.aiff\
             EngHorn_C5.aiff\
             EngHorn_C5.22k.aiff\
             FingerBass_G3.aiff\
             FingerBass_G3.22k.aiff\
             Flute_C6.aiff\
             Flute_C6.18k.aiff\
             FrHorn_F4.aiff\
             FrHorn_F4.22k.aiff\
             FretNoise.aiff\
             Fretless_C3.aiff\
             Fretless_C3.22k.aiff\
             GMPiano_C2.18k.aiff\
             GMPiano_Bb2.16k.aiff\
             GMPiano_F3.19k.aiff\
             GMPiano_C4.22k.aiff\
             GMPiano_G4.22k.aiff\
             GMPiano_C5.22k.aiff\
             GMPiano_G5.22k.aiff\
             GMPiano_C6.18k.aiff\
             GMPiano_C2.aiff\
             GMPiano_Bb2.aiff\
             GMPiano_F3.aiff\
             GMPiano_C4.aiff\
             GMPiano_G4.aiff\
             GMPiano_C5.aiff\
             GMPiano_G5.aiff\
             GMPiano_C6.aiff\
             Glock_Bb4.aiff\
             Glock_C4.aiff\
             Glock_C6.aiff\
             Glock_F5.aiff\
             Glock_Bb4.23k.aiff\
             Glock_C4.19k.aiff\
             Glock_C6.33k.aiff\
             Glock_F5.27k.aiff\
             GtrHarmonic_C5.aiff\
             GtrHarmonic_C5.15k.aiff\
             GunShot.22k.aiff\
             Harmonica_F5.aiff\
             Harmonica_F5.31k.aiff\
             Harp_E5.aiff\
             Harp_E5.16k.aiff\
             Harpsichord_A3.aiff\
             Harpsichord_C5.aiff\
             Harpsichord_C6.aiff\
             Harpsichord_F4.aiff\
             Harpsichord_Gb5.aiff\
             Harpsichord_A3.22k.aiff\
             Harpsichord_C5.31k.aiff\
             Harpsichord_C6.31k.aiff\
             Harpsichord_F4.24k.aiff\
             Harpsichord_Gb5.26k.aiff\
             Helicopter.22k.aiff\
             JazzGtr_Db6.aiff\
             JazzGtr_E5.aiff\
             JazzGtr_G4.aiff\
             JazzGtr_Db6.22k.aiff\
             JazzGtr_E5.22k.aiff\
             JazzGtr_G4.22k.aiff\
             Kalimba_C5.aiff\
             Kalimba_C5.22k.aiff\
             Koto_C5.aiff\
             Koto_C5.22k.aiff\
             Marimba_C4.aiff\
             Marimba_Bb4.aiff\
             Marimba_F5.aiff\
             Marimba_C6.aiff\
             Marimba_C4.22k.aiff\
             Marimba_Bb4.22k.aiff\
             Marimba_F5.22k.aiff\
             Marimba_C6.22k.aiff\
             Music_Box_C5.aiff\
             Music_Box_C5.20k.aiff\
             MuteTrmpt_C5.aiff\
             MuteTrmpt_F5.aiff\
             MuteTrmpt_Bb5.aiff\
             MuteTrmpt_C5.22k.aiff\
             MuteTrmpt_F5.22k.aiff\
             MuteTrmpt_Bb5.22k.aiff\
             NylonStrGtr_B4.aiff\
             NylonStrGtr_Db6.aiff\
             NylonStrGtr_Gb5.aiff\
             NylonStrGtr_B4.15k.aiff\
             NylonStrGtr_Db6.19k.aiff\
             NylonStrGtr_Gb5.17k.aiff\
             Oboe_C5.aiff\
             Oboe_C5.17k.aiff\
             Ocarina_C5.aiff\
             Ocarina_C5.15k.aiff\
             OrchHit_C4.aiff\
             OrchHit_C4.18k.aiff\
             OverDrvGtr_A3.aiff\
             OverDrvGtr_A5.aiff\
             OverDrvGtr_C5.aiff\
             OverDrvGtr_E4.aiff\
             OverDrvGtr_A3.19k.aiff\
             OverDrvGtr_A5.19k.aiff\
             OverDrvGtr_C5.19k.aiff\
             OverDrvGtr_E4.19k.aiff\
             PanFlute2_C5.aiff\
             PanFlute2_C5.20k.aiff\
             PercOrgan_C6.aiff\
             PercOrgan_C6.18k.aiff\
             PickBass_C3.aiff\
             PickBass_C3.22k.aiff\
             PipeOrgan_G3.aiff\
             PipeOrgan_E4.aiff\
             PipeOrgan_C5.aiff\
             PipeOrgan_A5.aiff\
             PipeOrgan_G3.22k.aiff\
             PipeOrgan_E4.22k.aiff\
             PipeOrgan_C5.22k.aiff\
             PipeOrgan_A5.22k.aiff\
             Pizzicato_C5.aiff\
             Pizzicato_C5.17k.aiff\
             Recorder_G5.aiff\
             Recorder_G5.17k.aiff\
             ReedOrgan_G5.aiff\
             ReedOrgan_G5.22k.aiff\
             RockOrgan_C6.aiff\
             RockOrgan_C6.24k.aiff\
             SeaShore.22k.aiff\
             Shakuhachi_C5.aiff\
             Shakuhachi_C5.16k.aiff\
             Shamison_C5.19k.aiff\
             Shanai_C5.22k.aiff\
             Sitar2_G4.20k.aiff\
             SlapBass1_C3.aiff\
             SlapBass1_C3.22k.aiff\
             SlapBass2_C3.aiff\
             SlapBass2_C3.22k.aiff\
             SopSax_F5.aiff\
             SopSax_F5.23k.aiff\
             StDrum_C4.22k.aiff\
             StDrum_C5.22k.aiff\
             StlStrGtr_Db6.aiff\
             StlStrGtr_E5.aiff\
             StlStrGtr_G4.aiff\
             StlStrGtr_Db6.22k.aiff\
             StlStrGtr_E5.22k.aiff\
             StlStrGtr_G4.22k.aiff\
             Strings_Ab3.aiff\
             Strings_E4.aiff\
             Strings_Gb4.aiff\
             Strings_D5.aiff\
             Strings_C6.aiff\
             Strings_Ab3.22k.aiff\
             Strings_E4.22k.aiff\
             Strings_Gb4.22k.aiff\
             Strings_D5.22k.aiff\
             Strings_C6.22k.aiff\
             SynBass1_G3.aiff\
             SynBass1_G3.22k.aiff\
             SynBass3_G3.aiff\
             SynBass3_G3.22k.aiff\
             SynBrass4_C5.aiff\
             SynBrass4_C5.24k.aiff\
             SynBrass2_C5.aiff\
             SynBrass2_C5.22k.aiff\
             SynthStr3_C5.aiff\
             SynthStr3_C5.18k.aiff\
             SynthStr4_C5.aiff\
             SynthStr4_C5.31k.aiff\
             SynthVoice_F4.aiff\
             SynthVoice_F4.13k.aiff\
             Telephone3.aiff\
             TenorSax_C4.aiff\
             TenorSax_C4.22k.aiff\
             Timpani_C3.aiff\
             Timpani_C3.15k.aiff\
             Trombone_C4.aiff\
             Trombone_F3.aiff\
             Trombone_C4.22k.aiff\
             Trombone_F3.22k.aiff\
             Trumpet_A4.aiff\
             Trumpet_A5.aiff\
             Trumpet_Db5.aiff\
             Trumpet_F5.aiff\
             Trumpet_A4.22k.aiff\
             Trumpet_A5.20k.aiff\
             Trumpet_Db5.20k.aiff\
             Trumpet_F5.22k.aiff\
             Tuba_C3.aiff\
             Tuba_C3.22k.aiff\
             TubeBells_E4.aiff\
             TubeBells_C5.aiff\
             TubeBells_G5.aiff\
             TubeBells_E4.18k.aiff\
             TubeBells_C5.18k.aiff\
             TubeBells_G5.18k.aiff\
             Vibes_C4.aiff\
             Vibes_Bb4.aiff\
             Vibes_F5.aiff\
             Vibes_C6.aiff\
             Vibes_C4.22k.aiff\
             Vibes_Bb4.22k.aiff\
             Vibes_F5.22k.aiff\
             Vibes_C6.22k.aiff\
             Viola_A3.aiff\
             Viola_F4.aiff\
             Viola_C5.aiff\
             Viola_A3.19k.aiff\
             Viola_F4.19k.aiff\
             Viola_C5.22k.aiff\
             Violin_C5.aiff\
             Violin_C6.aiff\
             Violin_C5.20k.aiff\
             Violin_C6.19k.aiff\
             Whistle2_F5.aiff\
             Whistle2_F5.24k.aiff\
             Atmosphere_C5.aiff\
             BassLead_C5.aiff\
             BowedGlass_C5.aiff\
             Brightness6_C5.aiff\
             Calliope_C5.aiff\
             Charang_C5.aiff\
             ChiffLead_C5.aiff\
             Crystal_C5.aiff\
             EchoDrops_C5.aiff\
             Goblins_C5.aiff\
             HaloPad_C5.aiff\
             IceRain_C5.aiff\
             MetalicPad_C5.aiff\
             NewAgePad_C5.aiff\
             NewAgePad_C6.aiff\
             Polysynth2_C5.aiff\
             SawFifths_C5.aiff\
             SawWave2_C5.aiff\
             SoloVoice_C5.aiff\
             Soundtrack_C5.aiff\
             SpaceVoice_C5.aiff\
             SqrWave_C5.aiff\
             StarTheme_C5.aiff\
             SweepPad_C5.aiff\
             WarmPad_C5.aiff\
             Atmosphere_C5.22k.aiff\
             BassLead_C5.22k.aiff\
             BowedGlass_C5.22k.aiff\
             Brightness6_C5.22k.aiff\
             Calliope_C5.22k.aiff\
             Charang_C5.22k.aiff\
             ChiffLead_C5.22k.aiff\
             Crystal_C5.22k.aiff\
             EchoDrops_C5.22k.aiff\
             Goblins_C5.22k.aiff\
             HaloPad_C5.22k.aiff\
             IceRain_C5.22k.aiff\
             MetalicPad_C5.22k.aiff\
             NewAgePad_C5.22k.aiff\
             Polysynth2_C5.22k.aiff\
             SawFifths_C5.22k.aiff\
             SawWave2_C5.22k.aiff\
             SoloVoice_C5.22k.aiff\
             Soundtrack_C5.22k.aiff\
             SpaceVoice_C5.22k.aiff\
             SqrWave_C5.22k.aiff\
             StarTheme_C5.22k.aiff\
             SweepPad_C5.22k.aiff\
             WarmPad_C5.22k.aiff\
             sin.aiff\
             imp.aiff


AIFCFILES=$(AIFFFILES:.aiff=.aifc)
TABLEFILES=$(AIFFFILES:.aiff=.table)

LDIRT=	$(TABLEFILES) $(AIFCFILES)

default: $(TARGETS)

include $(COMMONRULES)

.SUFFIXES: .aiff .aifc

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

sounds: $(AIFCFILES)

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

install: default
	$(INSTALL) -m 444 -F /usr/lib/PR/$(TARGETS) $(AIFCFILES)
	$(INSTALL) -m 444 -F /usr/src/PR/assets/sounds $(AIFFFILES) Makefile
