-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmpwcw.make
103 lines (84 loc) · 3.03 KB
/
mpwcw.make
1
#Makefile for ZTools 7/2 to make an MPW tool with CodeWarrior 68K compiler and linker#Don't forget to convert LF->CR in source files#Modify this line, then use #BuildProgram "Mydisk:mydir:mpwcw"SrcDir = :MAKEFILE = {SrcDir}mpwcw.make¥MondoBuild¥ = {MAKEFILE} # Make blank to avoid rebuilds when makefile is modifiedIncludes = -i {SrcDir}Sym¥68K = -mbg full -model far -D MAC_MPWObjDir¥68K = {SrcDir}ToolDir = {SrcDir}C = MWC68KLink = MWLink68K -dCOptions = {Includes} {Sym¥68K} #CWPro1. Note that the ANSI lib is not built by default. Use Build MSL Library tool to build it.AnsiLib = "{MW68KLibraries}MSL C.68K MPW(NL_4i_8d).Lib" "{MW68KLibraries}MSL Runtime68K.Lib"MPWRuntimeLib = "{MW68KLibraries}MSL MPWRuntime.68K.Lib"MathLib = "{MW68KLibraries}MathLib68K (4i_8d).lib"#CW11#AnsiLib = "{MW68KLibraries}MSL MPW C.68K.Lib"# You have to build unix.mac.c.o yourself. CW 11 MSL left out some definitions. #MPWRuntimeLib = "{MW68KLibraries}unix.mac.c.o" "{MW68KLibraries}MSL MPWRuntime.68K.Lib"#MathLib = "{MW68KLibraries}MathLib68K (4i/8d).lib"#Following definitions are for pre-MSL ANSI libraries. Use for CW MPW 10 or less#AnsiLib = "{MW68KLibraries}MPW ANSI (4i/8d) C.68K.Lib"#MPWRuntimeLib = "{MW68KLibraries}MPWRuntime.68K.Lib"#MathLib = "{MW68KLibraries}MathLib68K (4i/8d).lib"Check¥Objects¥68K = ¶ "{ObjDir¥68K}check.c.o"Pix2gif¥Objects¥68K = ¶ "{ObjDir¥68K}pix2gif.c.o"Infodump¥Objects¥68K = ¶ "{ObjDir¥68K}txio.c.o" ¶ "{ObjDir¥68K}infodump.c.o" ¶ "{ObjDir¥68K}showhead.c.o" ¶ "{ObjDir¥68K}showdict.c.o" ¶ "{ObjDir¥68K}showobj.c.o" ¶ "{ObjDir¥68K}infinfo.c.o" ¶ "{ObjDir¥68K}symbols.c.o" ¶ "{ObjDir¥68K}getopt.c.o" ¶ "{ObjDir¥68K}showverb.c.o"Txd¥Objects¥68K = ¶ "{ObjDir¥68K}txio.c.o" ¶ "{ObjDir¥68K}txd.c.o" ¶ "{ObjDir¥68K}getopt.c.o" ¶ "{ObjDir¥68K}infinfo.c.o" ¶ "{ObjDir¥68K}symbols.c.o" ¶ "{ObjDir¥68K}showobj.c.o" ¶ "{ObjDir¥68K}showverb.c.o" {SrcDir}mpwcw Ä {ToolDir}check {ToolDir}infodump {ToolDir}pix2gif {ToolDir}txd {ToolDir}check Ä {¥MondoBuild¥} {Check¥Objects¥68K} {Link} -o {Targ} -xm mpwtool -model far ¶ {Check¥Objects¥68K} ¶ {MPWRuntimeLib} ¶ {AnsiLib} ¶ "{MW68KLibraries}MacOS.lib" ¶ {MathLib} ¶ "{Libraries}ToolLibs.o"{ToolDir}pix2gif Ä {¥MondoBuild¥} {Pix2gif¥Objects¥68K} {Link} -o {Targ} -xm mpwtool -model far ¶ {Pix2gif¥Objects¥68K} ¶ {MPWRuntimeLib} ¶ {AnsiLib} ¶ "{MW68KLibraries}MacOS.lib" ¶ {MathLib} ¶ "{Libraries}ToolLibs.o"{ToolDir}infodump Ä {¥MondoBuild¥} {Infodump¥Objects¥68K} {Link} -o {Targ} -xm mpwtool -model far ¶ {Infodump¥Objects¥68K} ¶ {MPWRuntimeLib} ¶ {AnsiLib} ¶ "{MW68KLibraries}MacOS.lib" ¶ {MathLib} ¶ "{Libraries}ToolLibs.o"{ToolDir}txd Ä {¥MondoBuild¥} {Txd¥Objects¥68K} {Link} -o {Targ} -xm mpwtool -model far ¶ {MPWRuntimeLib} ¶ "{MW68KLibraries}MacOS.lib" ¶ {Txd¥Objects¥68K} ¶ {AnsiLib} ¶ {MathLib} ¶ "{Libraries}ToolLibs.o".c.o Ä .c {¥MondoBuild¥} {C} {depDir}{Default}{stem}.c -o {Targ} {COptions}