# Select the following #ifdef switches for the CFLAGS macro:
#
# -DANALY	if present, compiles as analizer & synthesizer;
#		if not present, synthesizer only
#
# -DSTREAMLINE	if present, disables all unneccessary i/o including sungraph
#
# -DPOSTFIL2	if present, uses postfilter style 2 (simpler)
#
#CFLAGS = -O2 -f68881 -DANALY # sun3
CFLAGS = -O2 -DANALY # sun4 & Alliant
#CFLAGS = -g -DANALY # for debugging
#SGIO_LIB= ../diskio/disk_io3.a   # sun3 & Alliant
SGIO_LIB= ../diskio/disk_io4.a   # sun4
TARGET = celp
OBJFILES=actorc.o autohf.o biterror.o bwexp.o cbsearch.o celp.o cgain.o cli.o clip.o confg.o cor.o csub.o dcodcbg.o dcodcbi.o dcodpg.o dcodtau.o delay.o dist.o disto.o durbin.o find.o gaincode.o ham.o hamming.o hexline.o impulse.o intanaly.o intsynth.o iodisk.o ldelay.o lsp34.o lsptopc.o mark.o mtrxgen.o mexcite.o movefr.o noise2.o pack.o packtau.o pctolsp2.o pctolsp3.o pctorc.o pgain.o ptcode.o pitchvq.o polefilt.o postfilt.o prefilt.o psearch.o random.o rctoac.o rctopc.o rderr.o save_sg.o segsnr.o setr.o smcbg.o smpg.o smt.o specdist.o unpack.o variance.o vdecode.o wrerr.o zerofilt.o  
LIB= $(SGIO_LIB) 
$(TARGET): $(OBJFILES) $(LIB)
	   $(CC) $(CFLAGS) -o $(TARGET) $(OBJFILES) -lm $(LIB)
actorc.o: actorc.c
actorc.o: ./ccsub.h
autohf.o: autohf.c
autohf.o: /usr/include/math.h
autohf.o: /usr/include/stdio.h
autohf.o: ./ccsub.h
autohf.o: ./celp.c
biterror.o: biterror.c
biterror.o: /usr/include/stdio.h
bwexp.o: bwexp.c
bwexp.o: /usr/include/math.h
cbsearch.o: cbsearch.c
cbsearch.o: ./ccsub.h
cbsearch.o: ./celp.c
celp.o: celp.c
celp.o: /usr/include/stdio.h
celp.o: /usr/include/math.h
celp.o: /usr/include/strings.h
celp.o: ./ccsub.h
celp.o: ./pdelay.h
celp.o: ./codebook.h
celp.o: ./pdencode.h
celp.o: ./pddecode.h
celp.o: ./bitprot.h
celp.o: ./bitperm.h
cgain.o: cgain.c
cgain.o: /usr/include/math.h
cgain.o: ./ccsub.h
cgain.o: ./celp.c
cli.o: cli.c
cli.o: /usr/include/stdio.h
cli.o: /usr/include/sys/time.h
cli.o: /usr/include/time.h
cli.o: /usr/include/math.h
cli.o: ./ccsub.h
cli.o: /usr/include/sys/types.h
cli.o: /usr/include/sys/times.h
cli.o: ./celp.c
clip.o: clip.c
clip.o: /usr/include/math.h
confg.o: confg.c
confg.o: ./ccsub.h
confg.o: ./celp.c
cor.o: cor.c
csub.o: csub.c
csub.o: ./ccsub.h
csub.o: ./celp.c
dcodcbg.o: dcodcbg.c
dcodcbi.o: dcodcbi.c
dcodpg.o: dcodpg.c
dcodtau.o: dcodtau.c
dcodtau.o: ./ccsub.h
delay.o: delay.c
delay.o: ./ccsub.h
delay.o: /usr/include/math.h
delay.o: /usr/include/stdio.h
#delay_nr.o: delay_nr.c
#delay_nr.o: /usr/include/math.h
#delay_nr.o: /usr/include/stdio.h
dist.o: dist.c
dist.o: ./ccsub.h
dist.o: /usr/include/math.h
disto.o: disto.c
disto.o: ./ccsub.h
durbin.o: durbin.c
durbin.o: ./ccsub.h
find.o: find.c
find.o: ./ccsub.h
find.o: /usr/include/stdio.h
gaincode.o: gaincode.c
gaincode.o: /usr/include/math.h
ham.o: ham.c
ham.o: /usr/include/math.h
hamming.o: hamming.c
hexline.o: hexline.c
hexline.o: /usr/include/stdio.h
impulse.o: impulse.c
impulse.o: ./ccsub.h
impulse.o: ./celp.c
intanaly.o: intanaly.c
intanaly.o: ./ccsub.h
intanaly.o: ./celp.c
intsynth.o: intsynth.c
intsynth.o: ./ccsub.h
intsynth.o: ./celp.c
iodisk.o: iodisk.c
iodisk.o: /usr/include/stdio.h
iodisk.o: /usr/include/sys/file.h
ldelay.o: ldelay.c
#ldelay_nr.o:ldelay_nr.c 
lsp34.o: lsp34.c
lsp34.o: /usr/include/math.h
lsp34.o: ./ccsub.h
lsptopc.o: lsptopc.c
lsptopc.o: /usr/include/math.h
lsptopc.o: /usr/include/stdio.h
lsptopc.o: ./ccsub.h
lsptopc.o: ./celp.c
mark.o: mark.c
mark.o: /usr/include/stdio.h
mtrxgen.o: mtrxgen.c
mexcite.o: mexcite.c
mexcite.o: ./ccsub.h
mexcite.o: /usr/include/math.h
movefr.o: movefr.c
noise2.o: noise2.c
noise2.o: /usr/include/math.h
pack.o: pack.c
packtau.o: packtau.c
pctolsp2.o: pctolsp2.c
pctolsp2.o: /usr/include/math.h
pctolsp2.o: /usr/include/stdio.h
pctolsp3.o: pctolsp3.c
pctolsp3.o: ./ccsub.h
pctorc.o: pctorc.c
pctorc.o: ./ccsub.h
pgain.o: pgain.c
pgain.o: ./ccsub.h
pgain.o: ./celp.c
ptcode.o: ptcode.c
ptcode.o: /usr/include/math.h
pitchvq.o: pitchvq.c
pitchvq.o: /usr/include/math.h
pitchvq.o: ./ccsub.h
polefilt.o: polefilt.c
postfilt.o: postfilt.c
postfilt.o: /usr/include/math.h
postfilt.o: ./ccsub.h
postfilt.o: ./celp.c
prefilt.o: prefilt.c
prefilt.o: ./ccsub.h
prefilt.o: /usr/include/stdio.h
prefilt.o: /usr/include/math.h
psearch.o: psearch.c
psearch.o: /usr/include/stdio.h
psearch.o: /usr/include/math.h
psearch.o: ./ccsub.h
psearch.o: ./submult.h
psearch.o: ./celp.c
random.o: random.c
rctoac.o: rctoac.c
rctopc.o: rctopc.c
rctopc.o: ./ccsub.h
rderr.o: rderr.c
rderr.o: /usr/include/stdio.h
save_sg.o: save_sg.c
segsnr.o: segsnr.c
segsnr.o: /usr/include/math.h
setr.o: setr.c
smcbg.o: smcbg.c
smcbg.o: /usr/include/math.h
smcbg.o: ./ccsub.h
smcbg.o: ./celp.c
smpg.o: smpg.c
smpg.o: /usr/include/math.h
smpg.o: ./celp.c
smt.o: smt.c
smt.o: /usr/include/math.h
smt.o: ./celp.c
specdist.o: specdist.c
specdist.o: ./ccsub.h
specdist.o: ./celp.c
unpack.o: unpack.c
variance.o: variance.c
vdecode.o: vdecode.c
vdecode.o: ./ccsub.h
vdecode.o: ./celp.c
wrerr.o: wrerr.c
wrerr.o: /usr/include/stdio.h
zerofilt.o: zerofilt.c

clean:
	rm -f celp core $(OBJFILES)
