summaryrefslogtreecommitdiff
path: root/tests/makeicc.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/makeicc.pl')
-rwxr-xr-xtests/makeicc.pl42
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/makeicc.pl b/tests/makeicc.pl
new file mode 100755
index 00000000000..c9e9a42ec86
--- /dev/null
+++ b/tests/makeicc.pl
@@ -0,0 +1,42 @@
+# $Id$
+
+@ls = `ls -1 *.cpp`;
+$allicc = "icc.bat";
+
+foreach $tmp (@ls)
+{
+ ($a1, $a2) = split("cpp",$tmp);
+ $tmp2 = "$a1\icc";
+
+open(T,"> $a1\icc");
+ print T "// \$Id\$\n";
+ print T "\n";
+ print T "include \"vacpp_setup.icc\"\n";
+ print T "option\n";
+ print T " link(libSearchPath, platformLibSearchPath),\n";
+ print T " incl(searchPath, \"..\"),\n";
+ print T " link(linkWithMultiThreadLib,yes),\n";
+ print T " link(debug)\n";
+ print T " {\n";
+ chop($a1);
+ print T " target type (exe) \"$a1\"\n";
+ print T " {\n";
+ print T " source type (cpp) \"$a1\.cpp\"\n";
+ print T ' if ($__IBMCPP__ >= 500) {' . "\n";
+ print T " option macros(global) {\n";
+ print T " source type (hpp) \"test_config.h\"\n";
+ print T " }\n";
+ print T " source type (cpp) \"test_config.h\"\n";
+ print T " source type (cpp) \"../ace/Singleton.cpp\"\n";
+ print T " }\n";
+ print T " source type (lib) platformLinkLibs\n";
+ print T " }\n";
+ print T " }\n";
+close T;
+
+open(ALLICC,">> $allicc");
+ print ALLICC "vacbld -SEV=E $a1\.icc\n";
+close ALLICC;
+ print "$a1\n";
+}
+