## ``The contents of this file are subject to the Erlang Public License, ## Version 1.1, (the "License"); you may not use this file except in ## compliance with the License. You should have received a copy of the ## Erlang Public License along with this software. If not, it can be ## retrieved via the world wide web at http://www.erlang.org/. ## ## Software distributed under the License is distributed on an "AS IS" ## basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See ## the License for the specific language governing rights and limitations ## under the License. ## ## The Initial Developer of the Original Code is Ericsson Utvecklings AB. ## Portions created by Ericsson are Copyright 1999, Ericsson Utvecklings ## AB. All Rights Reserved.'' ## ## $Id$ ## ##---------------------------------------------------------------------- ## Author : Raimo Niskanen ## Created : 8 Sep 2000 by Raimo Niskanen ##---------------------------------------------------------------------- SHELL =/bin/sh MODULE :=inet_speed R6B :=BEAM_4.9.1.3 R6B_ERL :=/usr/local/otp/releases/otp_beam_sunos5_r6b_patched/bin/erl R7A :=BEAM_5.0 R7A_ERL :=/usr/local/otp/releases/otp_beam_sunos5_r7a/bin/erl LOCAL_HOST :=iluvatar REMOTE_HOST :=gorbag PARALLEL :=16 MKPLOT :=./$(MODULE)_mkplot ERL_SOURCES :=$(MODULE).erl BEAM_TARGETS :=$(ERL_SOURCES:erl=beam) R6B_LOGS :=\ $(foreach host,$(LOCAL_HOST) $(REMOTE_HOST),\ $(foreach mode,echo flow,\ $(foreach par,1 $(PARALLEL),\ $(foreach type,list binary,\ $(MODULE)_$(R6B)_$(host)_$(mode)_$(par)_$(type).log)))) R7A_LOGS :=$(R6B_LOGS:$(MODULE)_$(R6B)_%.log=$(MODULE)_$(R7A)_%.log) PLOT_TARGETS :=$(R6B_LOGS:$(MODULE)_$(R6B)_%.log=$(MODULE)_%.plot) PS_TARGETS :=$(PLOT_TARGETS:plot=ps) GIF_TARGETS :=$(PLOT_TARGETS:plot=gif) .PHONY: all test clean clean_test test_r6b test_r7a print foo all: $(BEAM_TARGETS) $(PLOT_TARGETS) $(PS_TARGETS) $(GIF_TARGETS) test: test_r6b test_r7a all clean: rm $(BEAM_TARGETS) $(PLOT_TARGETS) $(PS_TARGETS) $(GIF_TARGETS) clean_test: clean rm $(R6B_LOGS) $(R7A_LOGS) test_r6b: $(R6B_ERL) -noinput -sname inet_speed_r6b \ -s inet_speed start \ inet_speed_r6b_client@$(LOCAL_HOST) $(PARALLEL) \ inet_speed_r6b_server@$(LOCAL_HOST) \ inet_speed_r6b_server@$(REMOTE_HOST) test_r7a: $(R7A_ERL) -noinput -sname inet_speed_r7a \ -s inet_speed start \ inet_speed_r7a_client@$(LOCAL_HOST) $(PARALLEL) \ inet_speed_r7a_server@$(LOCAL_HOST) \ inet_speed_r7a_server@$(REMOTE_HOST) print: lpr $(PS_TARGETS) foo: echo $(R6B_LOGS) echo echo $(R7A_LOGS) echo echo $(PLOT_TARGETS) $(BEAM_TARGETS): %.beam: %.erl erlc $< $(PLOT_TARGETS): $(MODULE)_%.plot: $(MKPLOT) $(MKPLOT) $(LOCAL_HOST) $@ $(GIF_TARGETS): $(MODULE)_%.gif: $(MODULE)_%.ps convert -monochrome -rotate '90<' PS:$< GIF:$@ $(PS_TARGETS): $(MODULE)_%.ps: $(MODULE)_%.plot \ $(MODULE)_$(R6B)_%.log $(MODULE)_$(R7A)_%.log gnuplot $<