RSS Git Download  Clone
Raw Blame History
#
# Title:	Makefile
# Author:	M.Thomas BEAM Ltd
# Date:		2007-03-15
#
#



.SUFFIXES: .mo .ui

.h.mo:
	$(MOC) -o $@.cpp $<
	$(CXX) $(CXXFLAGS) -c -o $@ $@.cpp

TOP	= $(shell pwd)/..

include ${TOP}/Makefile.config

MOC		= $(QTDIR)/bin/moc
CXXFLAGS += -I/usr/lib/qt-3.3/include
LDLIBS	+= -lTms

PROGS	= tmsStress
OBJS	= tmsStress.o tmsSink.o

# General
all:	${PROGS}

install:	all
	mkdir -p ${BINDIR}
	cp ${PROGS} ${BINDIR}

depend:
	makedepend $(DFLAGS) *.cpp *.cc 2> /dev/null

tmsStress:	$(HUIC) $(OBJS)
	$(CXX) $(LDFLAGS) -o tmsStress $(OBJS) $(LDLIBS)

clean:
	rm -f *.o *.a *.so $(PROGS)

test1:
	tmsStress --file test1.tmp --benchmark 1048576 -channels 1,16,31 tms3
	
#Small packets	
test2:
	tmsStress --file test2.tmp --benchmark 100 --maxbytes 1024 -channels 1,16,31 tms3

#Lost of Channels	
test3:
	tmsStress --file test3.tmp --benchmark 10 --maxbytes 1024 --channels 1:40 tms3

#Lots of Channels and allow net saturation	
test3:
	tmsStress --file test3.tmp --benchmark 1024 --maxbytes 104857600 --channels 1:40 tms3

#Lots of Channels small packets and allow packet saturation	
test4:
	tmsStress --file test3.tmp --benchmark 10 --maxbytes 104857600 --channels 1:40 tms3



plot:	
	@echo 'plot "test1.tmp" using 1:2 with lines title "(Large Packet,chans 1,16,31) ) Transfer Rate MB/sec"' >> /tmp/1.tmp
	@echo 'pause -1 "Press any key to exit"' >> /tmp/1.tmp
	gnuplot /tmp/1.tmp


# DO NOT DELETE