From d8b406b0ca3c4446ac97153bacace7b19528a0a3 Mon Sep 17 00:00:00 2001 From: "waterson%netscape.com" Date: Thu, 16 Nov 2000 05:47:32 +0000 Subject: [PATCH] Add rules to make data files by running programs. --- tools/footprint/win32-gdf.mk | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tools/footprint/win32-gdf.mk b/tools/footprint/win32-gdf.mk index f68ab837c08..210b692a33d 100644 --- a/tools/footprint/win32-gdf.mk +++ b/tools/footprint/win32-gdf.mk @@ -52,7 +52,6 @@ # sh.exe instead of cmd.exe to process commands); e.g., # # make --unix -f win32-gdf.mk \ -# PROGRAM=winEmbed \ # BUSTER_URL="http://localhost/cgi-bin/buster.cgi?refresh=10" # # What You'll Need @@ -76,6 +75,10 @@ # Where is the slope and is the y-intercept. LINEAR_REGRESSION=awk -f linear-regression.awk +PROGRAM_PATH=..\\..\\dist\\win32_o.obj\\bin +WINEMBED_PROGRAM=winEmbed +MOZILLA_PROGRAM=mozilla + GNUPLOT=wgnuplot.exe BUSTER_URL=http://btek/cgi-bin/buster.cgi?refresh=10 @@ -119,11 +122,18 @@ mozilla-ws.dat: mozilla.dat mozilla-pws.dat: mozilla.dat awk '{ print NR, $$2 / 1024; }' $? > $@ +# Run programs to collect data +winEmbed.dat: wm.exe + cmd /c "start $(PROGRAM_PATH)\\$(WINEMBED_PROGRAM) $(BUSTER_URL) && .\\wm $(PROGRAM) > $@" + +mozilla.dat: wm.exe + cmd /c "start $(PROGRAM_PATH)\\$(MOZILLA_PROGRAM) $(BUSTER_URL) && .\\wm $(PROGRAM) > $@" + # Build ``wm.exe'', the memory spy wm.exe: wm.cpp cl wm.cpp advapi32.lib # Clean up the mess. clean: - rm -f wm.exe *-gdf.png *~ + rm -f wm.exe *-gdf.png *.dat *~