# /***********************************************************
# Copyright 1991 by Stichting Mathematisch Centrum, Amsterdam, The
# Netherlands.
# 
#                         All Rights Reserved
# 
# Permission to use, copy, modify, and distribute this software and its 
# documentation for any purpose and without fee is hereby granted, 
# provided that the above copyright notice appear in all copies and that
# both that copyright notice and this permission notice appear in 
# supporting documentation, and that the names of Stichting Mathematisch
# Centrum or CWI not be used in advertising or publicity pertaining to
# distribution of the software without specific, written prior permission.
# 
# STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
# THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
# FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
# FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
# 
# ******************************************************************/


default:
		@echo 'You must use "make sun", "make sun4.1",'
		@echo '"make next" or "make sgi"'
		exit 1

all:		radio broadcast

# Platform-specific entries

sun:		# For SunOS 4.x
		make all
  
sun4.1:		# For SunOS  4.1 with audio library (/usr/demo/SOUND)
		make all LIBS=/usr/demo/SOUND/libaudio.a \
			CFLAGS='-DREMHDR -I/usr/demo/SOUND'
  
sgi:		# For SGI IRIX 4.0
		make all LIBS=-laudio

next:		# NeXT 2.1
		make all sndulaw
  
radio:		radio.o socklib.o
		$(CC) radio.o socklib.o $(LIBS) -o radio
  
broadcast:	broadcast.o socklib.o
		$(CC) broadcast.o socklib.o $(LIBS) -o broadcast

sndulaw:	sndulaw.o # Used on the NeXT only
		$(CC) sndulaw.o -o sndulaw

  clean:
		-rm -f core *.o *~ @* '#'* ,* *.pyc *.BAK Part??
		cd ulawtools; make clean
  
  clobber:	clean
		-rm -f radio broadcast
		cd ulawtools; make clobber
