CC = gcc
CFLAGS = -O2 -Wall -pipe -fPIC
LIBS =

NAME = tract
OBJS = noise.o cordic.o formant.o glotal.o nasal.o frication.o sin.o tract.o ltract.o

.c.o:
	$(CC) -c $(CFLAGS) $<     

$(NAME).so: $(OBJS)
	$(CC) -o $@ $(OBJS) -shared $(LIBS)

clean:
	/bin/rm -f *.o *.so *.raw *~ $(NAME)

depend:
	makedepend -Y -I. *.c
	
play:
	play -r 44100 -e signed -b 8 test.raw

# DO NOT DELETE

cordic.o: cordic.h
formant.o: tract.h formant.h cordic.h
frication.o: tract.h frication.h sin.h noise.h
glotal.o: tract.h glotal.h cordic.h glotal_table.h sin.h
ltract.o: tract.h noise.h cordic.h formant.h glotal.h nasal.h frication.h
main.o: noise.h cordic.h formant.h glotal.h nasal.h frication.h
nasal.o: tract.h nasal.h cordic.h
sin.o: sin.h
tract.o: tract.h noise.h cordic.h formant.h glotal.h nasal.h frication.h
