1 2## Sfront, a SAOL to C translator 3## This file: Makefile to make sfront + new libraries 4## 5## Copyright (c) 1999-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 38## 39## The current version and release date. 40## 41## --IDSTRING-- 42 43## 44## Compiler optimization and debug options. Mac OS X users 45## should replace "gcc" with "cc". 46## 47 48CC = gcc 49OPT = -O2 50DBUG = -g 51MODEL = -m32 52 53## 54## Machine/OS specific compiling options should be added 55## to CFLAGS below. 56## 57 58CFLAGS = $(OPT) $(DBUG) $(MODEL) 59 60## 61## 62 63LIBMAKER = libmaker 64 65OBJS = libmaker.o 66 67## 68## Networking support is not enabled in this sfront distribution. 69## See the sfront/src/NETWORK.HTML file for full instructions on how 70## to enable networking support. In this file, comment out the 71## blank NSYS definition below, and uncommment the NSYS definition 72## one the two lines that follow (be sure to uncomment both lines). 73## 74 75NSYS = 76 77## NSYS = net_sfront net_include net_globals net_siplib \ 78## net_rtplib net_rtcplib net_jsend net_jrecv net_crypto 79 80 81PSYS = pa_hosthdr pa_porthdr pa_tracehdr pa_lib pa_unix_oss \ 82 pa_win_wmme pa_dshdr pa_dswrap pa_dsound 83 84CSRC = runtime runtimef callback robust preamble runspt \ 85 tsync psync tgen 86 87ASYS = aif hpux raw wav dsound linux freebsd std vcdat null irix \ 88 portaudio coreaudio audiounit wiretap 89 90CSYS = ascii gliss linmidi freebsdmidi win32 alsamidi alsaseq fstr \ 91 coremidi aucontrol 92 93all: $(LIBMAKER) 94 ./libmaker -csrc $(CSRC) 95 ./libmaker -asys $(ASYS) 96 ./libmaker -csys $(CSYS) 97 ./libmaker -nsys $(NSYS) 98 ./libmaker -psys $(PSYS) 99 (cd .. ; make; cd lib) 100 101cfiles: $(LIBMAKER) 102 ./libmaker -csrc $(CSRC) 103 ./libmaker -asys $(ASYS) 104 ./libmaker -csys $(CSYS) 105 ./libmaker -nsys $(NSYS) 106 ./libmaker -psys $(PSYS) 107 108$(LIBMAKER): $(OBJS) libmaker.h 109 $(CC) $(CFLAGS) $(OBJS) -o $(LIBMAKER) 110 111do_csrc: $(LIBMAKER) 112 ./libmaker -csrc $(CSRC) 113 (cd .. ; make; cd lib) 114 115do_asys: $(LIBMAKER) 116 ./libmaker -asys $(ASYS) 117 (cd .. ; make; cd lib) 118 119do_csys: $(LIBMAKER) 120 ./libmaker -csys $(CSYS) 121 (cd .. ; make; cd lib) 122 123do_nsys: $(LIBMAKER) 124 ./libmaker -nsys $(NSYS) 125 (cd .. ; make; cd lib) 126 127do_psys: $(LIBMAKER) 128 ./libmaker -psys $(PSYS) 129 (cd .. ; make; cd lib) 130 131clean: 132 rm -f *.o $(LIBMAKER) 133 134 135 136 137