VC-32.pl 13.3 KB
Newer Older
1
#!/usr/local/bin/perl
2 3
# VC-32.pl - unified script for Microsoft Visual C++, covering Win32,
# Win64 and WinCE [follow $FLAVOR variable to trace the differences].
4 5 6 7 8
#

$ssl=	"ssleay32";
$crypto="libeay32";

9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
if ($fips && !$shlib)
	{
	$crypto="libeayfips32";
	$crypto_compat = "libeaycompat32.lib";
	}
else
	{
	$crypto="libeay32";
	}

if ($fipscanisterbuild)
	{
	$fips_canister_path = "\$(LIB_D)\\fipscanister.lib";
	}

24
$o='\\';
D
Dr. Stephen Henson 已提交
25
$cp='$(PERL) util/copy.pl';
26
$cp2='$(PERL) util/copy.pl -stripcr';
D
Dr. Stephen Henson 已提交
27
$mkdir='$(PERL) util/mkdir-p.pl';
28
$rm='del /Q';
R
Richard Levitte 已提交
29
$mv='move /Y';
30

D
Dr. Stephen Henson 已提交
31 32
$zlib_lib="zlib1.lib";

33 34 35 36
# Santize -L options for ms link
$l_flags =~ s/-L("\[^"]+")/\/libpath:$1/g;
$l_flags =~ s/-L(\S+)/\/libpath:$1/g;

37 38
# C compiler stuff
$cc='cl';
39 40 41 42 43 44 45 46 47 48
if ($FLAVOR =~ /WIN64/)
    {
    # Note that we currently don't have /WX on Win64! There is a lot of
    # warnings, but only of two types:
    #
    # C4344: conversion from '__int64' to 'int/long', possible loss of data
    # C4267: conversion from 'size_t' to 'int/long', possible loss of data
    #
    # Amount of latter type is minimized by aliasing strlen to function of
    # own desing and limiting its return value to 2GB-1 (see e_os.h). As
49
    # per 0.9.8 release remaining warnings were explicitly examined and
50 51
    # considered safe to ignore.
    # 
52
    $base_cflags= " $mf_cflag";
53
    my $f = ($shlib and !$fipscanisterbuild)?' /MD':' /MT';
54 55
    $opt_cflags=$f.' /Ox';
    $dbg_cflags=$f.'d /Od -DDEBUG -D_DEBUG';
56
    $lflags="/nologo /subsystem:console /opt:ref";
57 58 59 60 61 62 63 64

    *::perlasm_compile_target = sub {
	my ($target,$source,$bname)=@_;
	my $ret;

	$bname =~ s/(.*)\.[^\.]$/$1/;
	$ret=<<___;
\$(TMP_D)$o$bname.asm: $source
65
	set ASM=\$(ASM)
66
	\$(PERL) $source \$\@
67 68 69 70
___
	$ret .= "\t\$(PERL) util\\fipsas.pl . \$@ norunasm \$(CFLAG)\n" if $fipscanisterbuild;

	$ret.=<<___;
71 72 73 74 75 76

$target: \$(TMP_D)$o$bname.asm
	\$(ASM) $afile\$\@ \$(TMP_D)$o$bname.asm

___
	}
77
    }
78 79
elsif ($FLAVOR =~ /CE/)
    {
80 81 82 83 84
    # sanity check
    die '%OSVERSION% is not defined'	if (!defined($ENV{'OSVERSION'}));
    die '%PLATFORM% is not defined'	if (!defined($ENV{'PLATFORM'}));
    die '%TARGETCPU% is not defined'	if (!defined($ENV{'TARGETCPU'}));

85 86 87
    #
    # Idea behind this is to mimic flags set by eVC++ IDE...
    #
88 89
    $wcevers = $ENV{'OSVERSION'};			# WCENNN
    die '%OSVERSION% value is insane'	if ($wcevers !~ /^WCE([1-9])([0-9]{2})$/);
90 91
    $wcecdefs = "-D_WIN32_WCE=$1$2 -DUNDER_CE=$1$2";	# -D_WIN32_WCE=NNN
    $wcelflag = "/subsystem:windowsce,$1.$2";		# ...,N.NN
92

93 94
    $wceplatf =  $ENV{'PLATFORM'};
    $wceplatf =~ tr/a-z0-9 /A-Z0-9_/d;
95
    $wcecdefs .= " -DWCE_PLATFORM_$wceplatf";
96

97 98
    $wcetgt = $ENV{'TARGETCPU'};	# just shorter name...
    SWITCH: for($wcetgt) {
99
	/^X86/		&& do {	$wcecdefs.=" -Dx86 -D_X86_ -D_i386_ -Di_386_";
100
				$wcelflag.=" /machine:X86";	last; };
101
	/^ARMV4[IT]/	&& do { $wcecdefs.=" -DARM -D_ARM_ -D$wcetgt";
102 103 104 105
				$wcecdefs.=" -DTHUMB -D_THUMB_" if($wcetgt=~/T$/);
				$wcecdefs.=" -QRarch4T -QRinterwork-return";
				$wcelflag.=" /machine:THUMB";	last; };
	/^ARM/		&& do {	$wcecdefs.=" -DARM -D_ARM_ -D$wcetgt";
A
Andy Polyakov 已提交
106
				$wcelflag.=" /machine:ARM";	last; };
107 108 109 110 111 112 113 114 115 116
	/^MIPSIV/	&& do {	$wcecdefs.=" -DMIPS -D_MIPS_ -DR4000 -D$wcetgt";
				$wcecdefs.=" -D_MIPS64 -QMmips4 -QMn32";
				$wcelflag.=" /machine:MIPSFPU";	last; };
	/^MIPS16/	&& do {	$wcecdefs.=" -DMIPS -D_MIPS_ -DR4000 -D$wcetgt";
				$wcecdefs.=" -DMIPSII -QMmips16";
				$wcelflag.=" /machine:MIPS16";	last; };
	/^MIPSII/	&& do {	$wcecdefs.=" -DMIPS -D_MIPS_ -DR4000 -D$wcetgt";
				$wcecdefs.=" -QMmips2";
				$wcelflag.=" /machine:MIPS";	last; };
	/^R4[0-9]{3}/	&& do {	$wcecdefs.=" -DMIPS -D_MIPS_ -DR4000";
A
Andy Polyakov 已提交
117
				$wcelflag.=" /machine:MIPS";	last; };
118
	/^SH[0-9]/	&& do {	$wcecdefs.=" -D$wcetgt -D_$wcetgt_ -DSHx";
119
				$wcecdefs.=" -Qsh4" if ($wcetgt =~ /^SH4/);
A
Andy Polyakov 已提交
120
				$wcelflag.=" /machine:$wcetgt";	last; };
121
	{ $wcecdefs.=" -D$wcetgt -D_$wcetgt_";
A
Andy Polyakov 已提交
122
	  $wcelflag.=" /machine:$wcetgt";			last; };
123
    }
124

125
    $cc=($ENV{CC} or "cl");
126
    $base_cflags=' /W3 /WX /GF /Gy /nologo -DUNICODE -D_UNICODE -DOPENSSL_SYS_WINCE -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DNO_CHMOD -DOPENSSL_SMALL_FOOTPRINT';
127
    $base_cflags.=" $wcecdefs";
A
Andy Polyakov 已提交
128 129
    $base_cflags.=' -I$(WCECOMPAT)/include'		if (defined($ENV{'WCECOMPAT'}));
    $base_cflags.=' -I$(PORTSDK_LIBPATH)/../../include'	if (defined($ENV{'PORTSDK_LIBPATH'}));
A
Andy Polyakov 已提交
130
    if (`$cc 2>&1` =~ /Version ([0-9]+)\./ && $1>=14) {
131 132 133 134 135
	$base_cflags.=($shlib and !$fipscanisterbuild)?' /MD':' /MT';
    } else {
	$base_cflags.=' /MC';
    }
    $opt_cflags=' /O1i';	# optimize for space, but with intrinsics...
A
Andy Polyakov 已提交
136
    $dbg_cflags=' /Od -DDEBUG -D_DEBUG';
137
    $lflags="/nologo /opt:ref $wcelflag";
138 139
    }
else	# Win32
140
    {
141
    $base_cflags= " $mf_cflag";
142
    my $f = ($shlib and !$fipscanisterbuild)?' /MD':' /MT';
143 144
    $opt_cflags=$f.' /Ox /O2 /Ob2';
    $dbg_cflags=$f.'d /Od -DDEBUG -D_DEBUG';
A
Andy Polyakov 已提交
145
    $lflags="/nologo /subsystem:console /opt:ref";
146
    }
147
$lib_cflag='/Zl' if (!$shlib or $fipscanisterbuild);	# remove /DEFAULTLIBs
148
$mlflags='';
149

150 151 152 153
$out_def ="out32";	$out_def.="dll"			if ($shlib);
			$out_def.='_$(TARGETCPU)'	if ($FLAVOR =~ /CE/);
$tmp_def ="tmp32";	$tmp_def.="dll"			if ($shlib);
			$tmp_def.='_$(TARGETCPU)'	if ($FLAVOR =~ /CE/);
154 155
$inc_def="inc32";

156 157
if ($debug)
	{
158
	$cflags=$dbg_cflags.$base_cflags;
159
	}
160 161 162 163
else
	{
	$cflags=$opt_cflags.$base_cflags;
	}
164

165
# generate symbols.pdb unconditionally
166 167
$app_cflag.=" /Zi /Fd\$(TMP_D)/app";
$lib_cflag.=" /Zi /Fd\$(TMP_D)/lib";
168 169
$lflags.=" /debug";

170
$lflags.=" /fixed" if ($fips && $FLAVOR !~ /WIN64/);
171

172
$obj='.obj';
173
$asm_suffix='.asm';
174 175 176 177
$ofile="/Fo";

# EXE linking stuff
$link="link";
D
 
Dr. Stephen Henson 已提交
178
$rsc="rc";
179 180
$efile="/out:";
$exep='.exe';
181
if ($no_sock)		{ $ex_libs=''; }
182
elsif ($FLAVOR =~ /CE/)	{ $ex_libs='ws2.lib'; }
183
else			{ $ex_libs='ws2_32.lib'; }
184 185

if ($FLAVOR =~ /CE/)
186
	{
187 188 189 190 191 192
	$ex_libs.=' crypt32.lib';	# for e_capi.c
	if (defined($ENV{WCECOMPAT}))
		{
		$ex_libs.= ' $(WCECOMPAT)/lib';
		if (-f "$ENV{WCECOMPAT}/lib/$ENV{TARGETCPU}/wcecompatex.lib")
			{
A
Andy Polyakov 已提交
193
			$ex_libs.='/$(TARGETCPU)/wcecompatex.lib';
194 195 196 197 198 199
			}
		else
			{
			$ex_libs.='/wcecompatex.lib';
			}
		}
200
	$ex_libs.=' $(PORTSDK_LIBPATH)/portlib.lib'	if (defined($ENV{'PORTSDK_LIBPATH'}));
201
	$ex_libs.=' /nodefaultlib coredll.lib corelibc.lib' if ($ENV{'TARGETCPU'} eq "X86");
202
	}
203 204
else
	{
205
	$ex_libs.=' gdi32.lib advapi32.lib crypt32.lib user32.lib';
206
	$ex_libs.=' bufferoverflowu.lib' if ($FLAVOR =~ /WIN64/ and `cl 2>&1` =~ /14\.00\.4[0-9]{4}\./);
207 208 209
	# WIN32 UNICODE build gets linked with unicows.lib for
	# backward compatibility with Win9x.
	$ex_libs="unicows.lib $ex_libs" if ($FLAVOR =~ /WIN32/ and $cflags =~ /\-DUNICODE/);
210 211
	}

212
# static library stuff
D
Dr. Stephen Henson 已提交
213
$mklib='lib /nologo';
214 215 216 217 218 219 220
$ranlib='';
$plib="";
$libp=".lib";
$shlibp=($shlib)?".dll":".lib";
$lfile='/out:';

$shlib_ex_obj="";
221
$app_ex_obj="setargv.obj" if ($FLAVOR !~ /CE/);
222
if ($FLAVOR =~ /WIN64A/) {
223 224
	if (`nasm -v 2>NUL` =~ /NASM version ([0-9]+\.[0-9]+)/ && $1 >= 2.0) {
		$asm='nasm -f win64 -DNEAR -Ox -g';
225 226
		$afile='-o ';
	} else {
227
		$asm='ml64 /c /Cp /Cx /Zi';
228 229
		$afile='/Fo';
	}
230
} elsif ($FLAVOR =~ /WIN64I/) {
231
	$asm='ias -d debug';
232 233
	$afile="-o ";
} elsif ($nasm) {
234 235
	my $ver=`nasm -v 2>NUL`;
	my $vew=`nasmw -v 2>NUL`;
236
	# pick newest version
237
	$asm=($ver ge $vew?"nasm":"nasmw")." -f win32";
238
	$asmtype="win32n";
239 240
	$afile='-o ';
} else {
241
	$asm='ml /nologo /Cp /coff /c /Cx /Zi';
242
	$afile='/Fo';
243
	$asmtype="win32";
244
}
245

246 247
$bn_asm_obj='';
$bn_asm_src='';
248 249 250 251 252 253 254
$des_enc_obj='';
$des_enc_src='';
$bf_enc_obj='';
$bf_enc_src='';

if (!$no_asm)
	{
255 256 257 258 259 260 261 262 263 264 265
	win32_import_asm($mf_bn_asm, "bn", \$bn_asm_obj, \$bn_asm_src);
	win32_import_asm($mf_aes_asm, "aes", \$aes_asm_obj, \$aes_asm_src);
	win32_import_asm($mf_des_asm, "des", \$des_enc_obj, \$des_enc_src);
	win32_import_asm($mf_bf_asm, "bf", \$bf_enc_obj, \$bf_enc_src);
	win32_import_asm($mf_cast_asm, "cast", \$cast_enc_obj, \$cast_enc_src);
	win32_import_asm($mf_rc4_asm, "rc4", \$rc4_enc_obj, \$rc4_enc_src);
	win32_import_asm($mf_rc5_asm, "rc5", \$rc5_enc_obj, \$rc5_enc_src);
	win32_import_asm($mf_md5_asm, "md5", \$md5_asm_obj, \$md5_asm_src);
	win32_import_asm($mf_sha_asm, "sha", \$sha1_asm_obj, \$sha1_asm_src);
	win32_import_asm($mf_rmd_asm, "ripemd", \$rmd160_asm_obj, \$rmd160_asm_src);
	win32_import_asm($mf_wp_asm, "whrlpool", \$whirlpool_asm_obj, \$whirlpool_asm_src);
266
	win32_import_asm($mf_modes_asm, "modes", \$modes_asm_obj, \$modes_asm_src);
267 268
	win32_import_asm($mf_cpuid_asm, "", \$cpuid_asm_obj, \$cpuid_asm_src);
	$perl_asm = 1;
269 270
	}

271
if ($shlib && $FLAVOR !~ /CE/)
272 273
	{
	$mlflags.=" $lflags /dll";
274
	$lib_cflag.=" -D_WINDLL";
A
Andy Polyakov 已提交
275 276 277 278
	#
	# Engage Applink...
	#
	$app_ex_obj.=" \$(OBJ_D)\\applink.obj /implib:\$(TMP_D)\\junk.lib";
279
	$cflags.=" -DOPENSSL_USE_APPLINK -I.";
A
Andy Polyakov 已提交
280 281 282 283 284 285
	# I'm open for better suggestions than overriding $banner...
	$banner=<<'___';
	@echo Building OpenSSL

$(OBJ_D)\applink.obj:	ms\applink.c
	$(CC) /Fo$(OBJ_D)\applink.obj $(APP_CFLAGS) -c ms\applink.c
286
$(OBJ_D)\uplink.obj:	ms\uplink.c ms\applink.c
A
Andy Polyakov 已提交
287 288 289 290
	$(CC) /Fo$(OBJ_D)\uplink.obj $(SHLIB_CFLAGS) -c ms\uplink.c

LIBS_DEP=$(LIBS_DEP) $(OBJ_D)\applink.obj
CRYPTOOBJ=$(OBJ_D)\uplink.obj $(CRYPTOOBJ)
291 292 293
___
	$banner.=<<'___' if ($FLAVOR =~ /WIN64/);
CRYPTOOBJ=ms\uptable.obj $(CRYPTOOBJ)
A
Andy Polyakov 已提交
294
___
295
	}
296 297 298
elsif ($shlib && $FLAVOR =~ /CE/)
	{
	$mlflags.=" $lflags /dll";
299
	$lflags.=' /entry:mainCRTstartup' if(defined($ENV{'PORTSDK_LIBPATH'}));
300 301
	$lib_cflag.=" -D_WINDLL";
	$lib_cflag.=" -D_DLL" if (!$fipscanisterbuild);
302
	}
303

304 305 306 307 308 309
sub do_rehash_rule {
    my ($target, $deps) = @_;
    my $ret = <<"EOF";
$target: $deps
	set OPENSSL=\$(BIN_D)${o}openssl.exe
	set OPENSSL_DEBUG_MEMORY=on
310
	\$(PERL) \$(BIN_D)${o}c_rehash certs/demo
311
	echo off > $target
312 313 314 315 316 317 318 319 320 321 322
EOF
    return $ret
}
sub do_test_rule {
    my ($target, $deps, $test_cmd) = @_;
    my $ret = <<"EOF";
$target: $deps force.$target
	set TOP=.
	set BIN_D=\$(BIN_D)
	set TEST_D=\$(TEST_D)
	set PERL=\$(PERL)
323
	\$(PERL) test\\$test_cmd \$(TESTS)
324 325 326 327
force.$target:
EOF
}

328 329
sub do_lib_rule
	{
330
	my($objs,$target,$name,$shlib,$ign,$base_addr) = @_;
D
Dr. Stephen Henson 已提交
331
	local($ret);
332 333

	$taget =~ s/\//$o/g if $o ne '/';
334 335 336 337 338 339 340 341 342
	my $base_arg;
	if ($base_addr ne "")
		{
		$base_arg= " /base:$base_addr";
		}
	else
		{
		$base_arg = "";
		}
D
Dr. Stephen Henson 已提交
343 344 345 346 347
	if ($name ne "")
		{
		$name =~ tr/a-z/A-Z/;
		$name = "/def:ms/${name}.def";
		}
348

349
#	$target="\$(LIB_D)$o$target";
350
#	$ret.="$target: $objs\n";
351 352 353
	if (!$shlib)
		{
#		$ret.="\t\$(RM) \$(O_$Name)\n";
354
		$ret.="$target: $objs\n";
355
		$ret.="\t\$(MKLIB) $lfile$target @<<\n  $objs\n<<\n";
356 357 358
		}
	else
		{
D
Dr. Stephen Henson 已提交
359
		local($ex)=($target =~ /O_CRYPTO/)?'':' $(L_CRYPTO)';
D
Dr. Stephen Henson 已提交
360
		$ex.=" $zlib_lib" if $zlib_opt == 1 && $target =~ /O_CRYPTO/;
361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381

 		if ($fips && $target =~ /O_CRYPTO/)
			{
			$ret.="$target: $objs \$(PREMAIN_DSO_EXE)";
			$ret.="\n\tSET FIPS_LINK=\$(LINK)\n";
			$ret.="\tSET FIPS_CC=\$(CC)\n";
			$ret.="\tSET FIPS_CC_ARGS=/Fo\$(OBJ_D)${o}fips_premain.obj \$(SHLIB_CFLAGS) -c\n";
			$ret.="\tSET PREMAIN_DSO_EXE=\$(PREMAIN_DSO_EXE)\n";
			$ret.="\tSET FIPS_SHA1_EXE=\$(FIPS_SHA1_EXE)\n";
			$ret.="\tSET FIPS_TARGET=$target\n";
			$ret.="\tSET FIPSLIB_D=\$(FIPSLIB_D)\n";
			$ret.="\t\$(FIPSLINK) \$(MLFLAGS) /map $base_arg $efile$target ";
			$ret.="$name @<<\n  \$(SHLIB_EX_OBJ) $objs \$(EX_LIBS) ";
			$ret.="\$(OBJ_D)${o}fips_premain.obj $ex\n<<\n";
			}
		else
			{
			$ret.="$target: $objs";
			$ret.="\n\t\$(LINK) \$(MLFLAGS) $efile$target $name @<<\n  \$(SHLIB_EX_OBJ) $objs $ex \$(EX_LIBS)\n<<\n";
			}

382
		$ret.="\tIF EXIST \$@.manifest mt -nologo -manifest \$@.manifest -outputresource:\$@;2\n\n";
383 384 385 386 387 388 389
		}
	$ret.="\n";
	return($ret);
	}

sub do_link_rule
	{
390
	my($target,$files,$dep_libs,$libs,$standalone)=@_;
391 392
	local($ret,$_);
	$file =~ s/\//$o/g if $o ne '/';
393
	$n=&bname($target);
394
	$ret.="$target: $files $dep_libs\n";
395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428
	if ($standalone == 1)
		{
		$ret.="  \$(LINK) \$(LFLAGS) $efile$target @<<\n\t";
		$ret.= "\$(EX_LIBS) " if ($files =~ /O_FIPSCANISTER/ && !$fipscanisterbuild);
		$ret.="$files $libs\n<<\n";
		}
	elsif ($standalone == 2)
		{
		$ret.="\tSET FIPS_LINK=\$(LINK)\n";
		$ret.="\tSET FIPS_CC=\$(CC)\n";
		$ret.="\tSET FIPS_CC_ARGS=/Fo\$(OBJ_D)${o}fips_premain.obj \$(SHLIB_CFLAGS) -c\n";
		$ret.="\tSET PREMAIN_DSO_EXE=\n";
		$ret.="\tSET FIPS_TARGET=$target\n";
		$ret.="\tSET FIPS_SHA1_EXE=\$(FIPS_SHA1_EXE)\n";
		$ret.="\tSET FIPSLIB_D=\$(FIPSLIB_D)\n";
		$ret.="\t\$(FIPSLINK) \$(LFLAGS) /map $efile$target @<<\n";
		$ret.="\t\$(APP_EX_OBJ) $files \$(OBJ_D)${o}fips_premain.obj $libs\n<<\n";
		}
	else
		{
		$ret.="\t\$(LINK) \$(LFLAGS) $efile$target @<<\n";
		$ret.="\t\$(APP_EX_OBJ) $files $libs\n<<\n";
		}
    	$ret.="\tIF EXIST \$@.manifest mt -nologo -manifest \$@.manifest -outputresource:\$@;1\n\n";
	return($ret);
	}

sub do_rlink_rule
	{
	local($target,$rl_start, $rl_mid, $rl_end,$dep_libs,$libs)=@_;
	local($ret,$_);
	my $files = "$rl_start $rl_mid $rl_end";

	$file =~ s/\//$o/g if $o ne '/';
429
	$n=&bname($target);
430 431 432 433 434 435 436 437 438
	$ret.="$target: $files $dep_libs \$(FIPS_SHA1_EXE)\n";
	$ret.="\t\$(PERL) ms\\segrenam.pl \$\$a $rl_start\n";
	$ret.="\t\$(PERL) ms\\segrenam.pl \$\$b $rl_mid\n";
	$ret.="\t\$(PERL) ms\\segrenam.pl \$\$c $rl_end\n";
	$ret.="\t\$(MKLIB) $lfile$target @<<\n\t$files\n<<\n";
	$ret.="\t\$(FIPS_SHA1_EXE) $target > ${target}.sha1\n";
	$ret.="\t\$(PERL) util${o}copy.pl -stripcr fips${o}fips_premain.c \$(LIB_D)${o}fips_premain.c\n";
	$ret.="\t\$(CP) fips${o}fips_premain.c.sha1 \$(LIB_D)${o}fips_premain.c.sha1\n";
	$ret.="\n";
439 440 441
	return($ret);
	}

442 443 444 445 446 447 448 449 450 451 452 453 454 455
sub win32_import_asm
	{
	my ($mf_var, $asm_name, $oref, $sref) = @_;
	my $asm_dir;
	if ($asm_name eq "")
		{
		$asm_dir = "crypto\\";
		}
	else
		{
		$asm_dir = "crypto\\$asm_name\\asm\\";
		}

	$$oref = "";
456 457
	$$sref = "";
	$mf_var =~ s/\.o//g;
458 459 460

	foreach (split(/ /, $mf_var))
		{
461 462 463 464 465
		$$sref .= $asm_dir . $_ . ".asm ";
		}
	foreach (split(/ /, $mf_var))
		{
		$$oref .= "\$(TMP_D)\\" . $_ . ".obj ";
466 467
		}
	$$oref =~ s/ $//;
468
	$$sref =~ s/ $//;
469 470 471 472

	}


473
1;