all: nyserver

nyserver: nyserver.o split_compounds.o stava.o suffix.o
	g++ -O2 -pipe -o $@ $^ -lsocket -lnsl

%.o:%.cpp
	g++ -O2 -pipe  $< -c

%.o:%.c
	gcc -O2 -pipe  $< -c

.PHONY: all clean

clean:
	rm -f *~ *.o
