-@incdirs = ("", "unix/", "mac/");
+# HACK: One of the source files in `charset' is auto-generated by
+# sbcsgen.pl. We need to generate that _now_, before attempting
+# dependency analysis.
+eval 'chdir "charset"; require "sbcsgen.pl"; chdir ".."';
+
+@incdirs = ("", "charset/", "unix/", "mac/");
$help = ""; # list of newline-free lines of help text
%programs = (); # maps prog name + type letter to listref of objects/resources
$help = ""; # list of newline-free lines of help text
%programs = (); # maps prog name + type letter to listref of objects/resources
"# TOOLPATH = /pkg/mingw32msvc/i386-mingw32msvc/bin/\n".
"CC = \$(TOOLPATH)gcc\n".
"RC = \$(TOOLPATH)windres\n".
"# TOOLPATH = /pkg/mingw32msvc/i386-mingw32msvc/bin/\n".
"CC = \$(TOOLPATH)gcc\n".
"RC = \$(TOOLPATH)windres\n".
"# You may also need to tell windres where to find include files:\n".
"# RCINC = --include-dir c:\\cygwin\\include\\\n".
"\n".
"# You may also need to tell windres where to find include files:\n".
"# RCINC = --include-dir c:\\cygwin\\include\\\n".
"\n".
-COptions = -i : -i :: -w 35 -w err -proto strict
-COptions_68K = {COptions} -model far -opt space
+COptions = -i : -i :: -i ::charset -w 35 -w err -proto strict -ansi on \xb6
+ -notOnce
+COptions_68K = {COptions} -model far -opt time
# Enabling "-opt space" for CFM-68K gives me undefined references to
# _$LDIVT and _$LMODT.
COptions_CFM68K = {COptions} -model cfmSeg -opt time
# Enabling "-opt space" for CFM-68K gives me undefined references to
# _$LDIVT and _$LMODT.
COptions_CFM68K = {COptions} -model cfmSeg -opt time
"{Libraries}MathLib.far.o" \xb6
"{Libraries}IntEnv.far.o" \xb6
"{Libraries}Interface.o" \xb6
"{Libraries}MathLib.far.o" \xb6
"{Libraries}IntEnv.far.o" \xb6
"{Libraries}Interface.o" \xb6
+ "{SharedLibraries}ControlsLib" \xb6
+ -weaklib ControlsLib \xb6
+ "{SharedLibraries}WindowsLib" \xb6
+ -weaklib WindowsLib \xb6
+ "{SharedLibraries}OpenTransportLib" \xb6
+ -weaklib OTClientLib \xb6
+ -weaklib OTClientUtilLib \xb6
+ "{SharedLibraries}OpenTptInternetLib" \xb6
+ -weaklib OTInetClientLib \xb6
END
print &splitline("all \xc4 " . join(" ", &progrealnames("M")), undef, "\xb6");
END
print &splitline("all \xc4 " . join(" ", &progrealnames("M")), undef, "\xb6");
foreach $p (&prognames("M")) {
($prog, $type) = split ",", $p;
foreach $p (&prognames("M")) {
($prog, $type) = split ",", $p;
undef, "\xb6"), "\n\n";
$rsrc = &objects($p, "", "X.rsrc", undef);
undef, "\xb6"), "\n\n";
$rsrc = &objects($p, "", "X.rsrc", undef);
print &splitline("\tSetFile -a BM {Targ}", 69, "\xb6"), "\n\n";
$objstr = &objects($p, "X.cfm68k.o", "", undef);
print &splitline("\tSetFile -a BM {Targ}", 69, "\xb6"), "\n\n";
$objstr = &objects($p, "X.cfm68k.o", "", undef);
- print &splitline("$prog.cfm68k \xc4 $objstr", undef, "\xb6"), "\n";
+ print &splitline("$prog.cfm68k \xc4 $objstr $rsrc", undef, "\xb6"), "\n";
print &splitline("\tDuplicate -y $rsrc {Targ}", 69, "\xb6"), "\n";
print &splitline("\tILink -o {Targ} {LinkOptions_CFM68K} " .
$objstr . " {Libs_CFM68K}", 69, "\xb6"), "\n";
print &splitline("\tSetFile -a BM {Targ}", 69, "\xb6"), "\n\n";
$objstr = &objects($p, "X.ppc.o", "", undef);
print &splitline("\tDuplicate -y $rsrc {Targ}", 69, "\xb6"), "\n";
print &splitline("\tILink -o {Targ} {LinkOptions_CFM68K} " .
$objstr . " {Libs_CFM68K}", 69, "\xb6"), "\n";
print &splitline("\tSetFile -a BM {Targ}", 69, "\xb6"), "\n\n";
$objstr = &objects($p, "X.ppc.o", "", undef);
- print &splitline("$prog.ppc \xc4 $objstr", undef, "\xb6"), "\n";
+ print &splitline("$prog.ppc \xc4 $objstr $rsrc", undef, "\xb6"), "\n";
print &splitline("\tDuplicate -y $rsrc {Targ}", 69, "\xb6"), "\n";
print &splitline("\tPPCLink -o {Targ} {LinkOptions_PPC} " .
$objstr . " {Libs_PPC}", 69, "\xb6"), "\n";
print &splitline("\tDuplicate -y $rsrc {Targ}", 69, "\xb6"), "\n";
print &splitline("\tPPCLink -o {Targ} {LinkOptions_PPC} " .
$objstr . " {Libs_PPC}", 69, "\xb6"), "\n";