antoine-source/appleworksgs/WP/WP.make

1 line
3.4 KiB
Plaintext
Raw Normal View History

2023-03-04 02:45:20 +00:00
# # WP.make - Makefile for WP # # Copyright <20> 1989, Claris Corporation. # # This is a sub-makefile, called recursively when ::AppleWorks.make is # executed. # # All modules (including Driver, Scrap, Pict., SS, DB, etc.) # should have similar makefiles in their respective folders. # # This makefile rebuilds the module object files as necessary and creates a # file containing the necessary steps to link this module with the rest of # AppleWorksGS. ::AppleWorks.make combines the link files from the modules # into a script which it executes to create an executable. #-------------------------------------------------------------------------------- # Variables AsmIIGSOptions = -d Developing=0,ChangeBorders,Network={Network} Segment1 = WP Segment2 = WP2 Module = WP ModuleDir = {AWGS}{Module}: SrcDir = {ModuleDir}Src: IncDir = {ModuleDir} ObjDir = {ModuleDir}Obj: OldObjDir = {AWGS}WP:Old.Obj: Linkfile = {ModuleDir}{Module}.link Makefile = {ModuleDir}{Module}.make GlobalIncludes = {AWGS}Driver:Driver.equ <09> {IncDir}WP.equ GlobalMacros = {AWGS}macros:macros.dump <09> {IncDir}WP.macros Objs = {Objs1} {Objs2} SpellObj = {ObjDir}spell.aii.o NoSpellObj = {ObjDir}spstub.aii.o Objs1 = {ObjDir}jumps.aii.o <09> {ObjDir}wpglobals.aii.o <09> {ObjDir}screen.aii.o <09> {ObjDir}docs.aii.o <09> {ObjDir}pars.aii.o <09> {ObjDir}lines.aii.o <09> {ObjDir}drawing.aii.o <09> {ObjDir}menus.aii.o <09> {ObjDir}editing.aii.o <09> {ObjDir}edit2.aii.o <09> {ObjDir}mouse.aii.o <09> {ObjDir}pages.aii.o <09> {ObjDir}pixel.aii.o <09> {ObjDir}fonts.aii.o <09> {ObjDir}arrows.aii.o <09> {ObjDir}delete.aii.o <09> {ObjDir}printing.aii.o <09> {ObjDir}wpfileio.aii.o <09> {ObjDir}paste.aii.o <09> {ObjDir}undo.aii.o <09> {ObjDir}tools.aii.o <09> {ObjDir}fr.dialog.aii.o <09> {ObjDir}fr.work.aii.o <09> {ObjDir}stats.aii.o <09> {ObjDir}copy.aii.o <09> {ObjDir}pmerge.aii.o <09> {ObjDir}mergedlg.aii.o <09> {ObjDir}report.aii.o <09> {ObjDir}memory.aii.o Objs2 = {ObjDir}dlgstuff.aii.o <09> {ObjDir}rulers.aii.o <09> {ObjDir}rulers2.aii.o <09> {ObjDir}pagedlg.aii.o #-------------------------------------------------------------------------------- # Main target {Linkfile} <09><> {Objs} {SpellObj} {Makefile} @if "`newer {Makefile} {LinkFile}`"; <09> @echo "# Creating {LinkFile} <20><>" @echo " -lseg:dynamic {Segment1} {Objs1} {SpellObj} <20><>" > {Targ} @echo " -lseg {Segment2} {Objs2} <20><>" >> {Targ} @else @touch {linkfile} @end {Linkfile}.nsp <20><> {Objs} {NoSpellObj} {Makefile} @if "`newer {Makefile} {LinkFile}.nsp`"; <09> @echo "# Creating {LinkFile}.nsp <20><>" @echo " -lseg:dynamic {Segment1} {Objs1} {NoSpellObj} <20><>" > {Targ} @echo " -lseg {Segment2} {Objs2} <20><>" >> {Targ} @else @touch {linkfile}.nsp @end # Global CM dependencies {Objs} <09> {GlobalIncludes} {GlobalMacros} clean <09> @confirm "Delete {Module} objs and linkfile?" @if {status} == 0 then rm {Linkfile} {Objs} @end #-------------------------------------------------------------------------------- # Exceptions {ObjDir}copy.aii.o <09> {ObjDir}paste.aii.o <09> {AWGS}Scrap:Scrap.equ {ObjDir}wpfileio.aii.o <09> {AWGS}WP:Wp.make #-------------------------------------------------------------------------------- # Default rules .aii.o <09> .aii AsmIIGS {DepDir}{Default}.aii -o {TargDir}{Default}.aii.o -i {IncDir},{AWGS}Macros,{AWGS}Driver,{AWGS}Scrap {AsmIIGSOptions} {ObjDir} <09> {SrcDir}