SRCDIR       = .
CC           = /usr/bin/gcc
PREFIX       = /usr
BIN_DIR      = $(PREFIX)/bin
LDLIBS       = -L/usr/lib -lm
CFLAGS       = -g -O
DEFS         = 
PROGS        = powiedz

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

all: $(PROGS)

SAY_OBJS = say.o newstring.o phtoelm.o holmes.o elements.o nsynth.o def_pars.o aufile.o dits.o polytran.o palput.o main.o

powiedz : $(SAY_OBJS)
	$(CC) -o $@ $(LDFLAGS) $(SAY_OBJS) $(LDLIBS) 

clean:
	rm -f $(PROGS) $(DICTS) *.o tmp.par core *~ *% ~* ,* .e[cks]1



aufile.o : aufile.c proto.h file.h
newstring.o : newstring.c proto.h newstring.h
def_pars.o : def_pars.c proto.h nsynth.h  pars.def
elements.o : elements.c elements.h phfeat.h polphones.h elements.plf
holmes.o : holmes.c proto.h nsynth.h elements.h newstring.h holmes.h phfeat.h
nsynth.o : nsynth.c proto.h nsynth.h
phtoelm.o : phtoelm.c proto.h elements.h phfeat.h newstring.h phtoelm.h holmes.h nsynth.h polphones.h
say.o : say.c proto.h nsynth.h  newstring.h holmes.h phtoelm.h file.h say.h powiedz.h
dits.o : dits.c
palput.o : palput.c
polytran.o: polytran.c
main.o: main.c powiedz.h
