all: targets vpbmon emitest

targets: blinddial tnowait4dial twait4dial dialdtmfcont tnumrings

clean:   
	 rm -f blinddial tnowait4dial twait4dial dialdtmfcont tnumrings\
	 vpbmon emitest core* *.o 

%: %.cpp ../../src/libvpb.a
	$(CXX) $< -o $@ ../../src/libvpb.a -pthread -Wall -g -lm \
	../kbhit.cpp $(GPROF) 

# these are needed to fit on a single floppy for compliance testing...
vpbmon: vpbmon.cpp ../src/libvpb.a
	$(CXX) vpbmon.cpp -o vpbmon ../src/libvpb.a -pthread -Wall \
	-lm kbhit.cpp -static
	strip vpbmon

emitest: emitest.cpp ../src/libvpb.a
	$(CXX) emitest.cpp -o emitest ../src/libvpb.a -pthread \
	-Wall -lm -static
	strip emitest






