# Parameters.

ALL	= tr_send tr_sendmix tr_sendnum play

# Compiler flags.

CFLAGS += -O4 -c
CPPFLAGS += -I/usr/demo/SOUND/multimedia
LDFLAGS +=  -L/usr/demo/SOUND
LDLIBS +=  -laudio -lm

COMPC	= cc $(CFLAGS) $*.c $(CPPFLAGS)
COMPO	= cc $@.o -o $@ $(LDFLAGS) $(LDLIBS) 

# Implicit rules
.c.o :
	$(COMPC)

# Targets.

all:	 $(ALL)

# Compile the SUN programme that use the audio device
play:	play.o
	$(COMPO)
	strip $@

# Compile our interface programmes for the use of the audio device
tr_send:	tr_send.o
	$(COMPO)
	strip $@

tr_sendmix:	tr_sendmix.o
	$(COMPO)
	strip $@


tr_sendnum:	tr_sendnum.o
	$(COMPO)
	strip $@
clean:
	rm -f *.o
