1 2# Sfront, a SAOL to C translator 3# This file: Makefile for sfront examples 4# 5# Copyright (c) 2000-2006, Regents of the University of California 6# All rights reserved. 7# 8# Redistribution and use in source and binary forms, with or without 9# modification, are permitted provided that the following conditions are 10# met: 11# 12# Redistributions of source code must retain the above copyright 13# notice, this list of conditions and the following disclaimer. 14# 15# Redistributions in binary form must reproduce the above copyright 16# notice, this list of conditions and the following disclaimer in the 17# documentation and/or other materials provided with the distribution. 18# 19# Neither the name of the University of California, Berkeley nor the 20# names of its contributors may be used to endorse or promote products 21# derived from this software without specific prior written permission. 22# 23# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 24# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 25# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 26# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 27# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 28# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 29# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 30# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 31# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 32# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 33# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34# 35# Maintainer: John Lazzaro, lazzaro@cs.berkeley.edu 36 37 38SHELL = /bin/sh 39 40# 41# Runs all the examples. 42# For quicker testing, delete pc, elpelele, and scr1. 43# do (cd $$i ; echo "Making in $$i..."; make clean; done 44 45SIMPLE = bach min vowels claps perc beat in speedt gliss torvalds scr1 elpelele pc 46 47PACKAGES = $(SIMPLE) 48 49## Makes audio files. 50 51audio: 52 for i in $(PACKAGES) ;\ 53 do (cd $$i ; echo "Making in $$i ..."; make -e ); done 54 55## Makes mp4 testing. 56 57mp4test: 58 for i in $(PACKAGES) ;\ 59 do (cd $$i ; echo "Making in $$i ..."; make -e mp4test); done 60 61## compares audio to safe in each directory 62 63compare: 64 for i in $(PACKAGES) ;\ 65 do (cd $$i ; echo "Making in $$i ..."; make -e compare); done 66 67## for timing ./sa > audio 68 69timing: 70 for i in $(PACKAGES) ;\ 71 do (cd $$i ; echo "Making in $$i ..."; make -e timing); done 72 73## copies audio to safe in each directory 74 75safe: 76 for i in $(PACKAGES) ;\ 77 do (cd $$i ; echo "Making in $$i ..."; make -e safe); done 78 79## Plays files through D/A (system-dependent -- set up for HPUX) 80 81play: 82 for i in $(PACKAGES) ;\ 83 do (cd $$i ; echo "Making in $$i ..."; make -e play); done 84 85## Deletes all files created during testing. 86 87clean: 88 for i in $(PACKAGES) ;\ 89 do (cd $$i ; echo "Making in $$i ..."; make -e clean); done 90 91 92 93 94 95