CFILES = sndnoise.c sndpluck.c
HFILES = 
SRCS = $(CFILES) $(HFILES)

all: sndpluck sndnoise

test:	test.snd
	sndinfo test.snd
	sndplay test.snd

sndpluck: sndpluck.c
	cc -g -Wall -o sndpluck sndpluck.c

sndnoise: sndnoise.c
	cc -g -Wall -o sndnoise sndnoise.c

test.snd: sndpluck
	sndpluck .5 440.0 .1 .2 1.0 -1 test.snd

clean:
	/bin/rm -f sndpluck sndnoise *.snd *.o

install:
	echo 'Nothing installed	for sndgen' >/dev/null

installsrc:
	mkdirs -m 755 $(SRCROOT)
	cp $(SRCS) README Makefile $(SRCROOT)
	chmod 444 $(SRCROOT)/*
