summaryrefslogtreecommitdiff
path: root/tests/makeicc.pl
blob: 13f4ae39a39edfaaab5a0ae2f146090e108a74fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# $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 "	   source 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";
}