2 # VC-CE.pl - the file for eMbedded Visual C++ 3.0 for windows CE, static libraries
10 $cp='copy nul+'; # Timestamps get stuffed otherwise
15 $cflags=' /W3 /WX /Ox /O2 /Ob2 /Gs0 /GF /Gy /nologo -D$(TARGETCPU) -D_$(TARGETCPU)_ -DUNDER_CE=300 -D_WIN32_CE=300 -DWIN32_PLATFORM_PSPC -DUNICODE -D_UNICODE -DWIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DNO_CHMOD -I$(WCECOMPAT)/include';
16 $lflags='/nologo /subsystem:windowsce,3.00 /machine:$(TARGETCPU) /opt:ref';
25 $cflags=" /MDd /W3 /WX /Zi /Yd /Od /nologo -DWIN32 -D_DEBUG -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -DDEBUG -DDSO_WIN32";
39 else { $ex_libs='winsock.lib $(WCECOMPAT)/lib/wcecompatex.lib'; }
40 #else { $ex_libs='winsock.lib coredll.lib $(WCECOMPAT)/lib/wcecompatex.lib'; }
42 # static library stuff
47 $shlibp=($shlib)?".dll":".lib";
51 #$app_ex_obj="setargv.obj";
63 $mlflags.=" $lflags /dll";
64 # $cflags =~ s| /MD| /MT|;
65 $lib_cflag=" -D_WINDLL -D_DLL";
70 $cflags.=" /Fd$out_def";
74 local($objs,$target,$name,$shlib)=@_;
77 $taget =~ s/\//$o/g if $o ne '/';
78 ($Name=$name) =~ tr/a-z/A-Z/;
80 # $target="\$(LIB_D)$o$target";
81 $ret.="$target: $objs\n";
84 # $ret.="\t\$(RM) \$(O_$Name)\n";
86 $ret.="\t\$(MKLIB) $lfile$target @<<\n $objs $ex\n<<\n";
90 local($ex)=($target =~ /O_SSL/)?' $(L_CRYPTO)':'';
91 # $ex.=' winsock.lib coredll.lib $(WCECOMPAT)/lib/wcecompatex.lib';
92 $ex.=' winsock.lib $(WCECOMPAT)/lib/wcecompatex.lib';
93 $ret.="\t\$(LINK) \$(MLFLAGS) $efile$target /def:ms/${Name}.def @<<\n \$(SHLIB_EX_OBJ) $objs $ex\n<<\n";
101 local($target,$files,$dep_libs,$libs)=@_;
104 $file =~ s/\//$o/g if $o ne '/';
106 $ret.="$target: $files $dep_libs\n";
107 $ret.=" \$(LINK) \$(LFLAGS) $efile$target @<<\n";
108 $ret.=" \$(APP_EX_OBJ) $files $libs\n<<\n\n";