sub build_patform { my $OSVERSION='WCE300'; my $PLATFORM='Pocket PC 2002'; my $WCEROOT='C:\Program Files\Microsoft eMbedded Tools'; my $SDKROOT='C:\Windows CE Tools'; my $TARGETCPU=shift; $ENV{'CC'}=shift; $ENV{'CFG'}='none'; $ENV{'OSVERSION'}=$OSVERSION; $ENV{'PLATFORM'}=$PLATFORM; $ENV{'WCEROOT'}=$WEBROOT; $ENV{'SDKROOT'}=$SDKROOT; $ENV{'TARGETCPU'}=$TARGETCPU; $ENV{'PATH'}="$WCEROOT\\COMMON\\EVC\\bin;$WCEROOT\\EVC\\$OSVERSION\\bin;$PATH"; $ENV{'INCLUDE'}="$SDKROOT\\$OSVERSION\\$PLATFORM\\include;$SDKROOT\\$OSVERSION\\$PLATFORM\\include\\$TARGETCPU;$SDKROOT\\$OSVERSION\\$PLATFORM\\MFC\\include;$SDKROOT\\$OSVERSION\\$PLATFORM\\ATL\\include;"; $ENV{'LIB'}="$SDKROOT\\$OSVERSION\\$PLATFORM\\lib\\$TARGETCPU;$SDKROOT\\$OSVERSION\\$PLATFORM\\MFC\\lib\\$TARGETCPU;$SDKROOT\\$OSVERSION\\$PLATFORM\\ATL\\lib\\$TARGETCPU;"; $ENV{'WCECOMPAT'}="$BUILD\\wcecompat"; # system "cmd"; system "del /s /q openssl-$SSLVER"; system "del /s /q wcecompat"; system "..\\unzip.exe -q ..\\src\\openssl-$SSLVER.zip"; system "..\\unzip.exe -q ..\\src\\wcecompat-$COMPATVER.zip"; chdir 'wcecompat'; system 'nmake'; chdir "..\\openssl-$SSLVER"; system 'perl Configure VC-CE'; system 'ms\do_ms.bat'; system 'nmake', '-f', 'ms\cedll.mak'; } $SSLVER='0.9.8a'; $COMPATVER='1.2'; $PATH=$ENV{'PATH'}; mkdir 'build'; chdir 'build'; $BUILD=`cd`; chomp $BUILD; build_patform 'ARM', 'clarm.exe';