antoine-source/appleworksgs/PL/pl.make

1 line
3.1 KiB
Plaintext
Raw Normal View History

2023-03-04 02:45:20 +00:00
# # PL.make - Makefile for PL # # 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 = Segment1 = PL Segment2 = PL2 Segment3 = PLSCRAP Module = PL ModuleDir = {AWGS}{Module}: SrcDir = {ModuleDir}Src: IncDir = {ModuleDir} ObjDir = {ModuleDir}Obj: GlobalIncludes = {AWGS}Macros:Macros.dump <09> {IncDir}PL.equ <09> {AWGS}Driver:Driver.equ Linkfile = {ModuleDir}{Module}.link Makefile = {ModuleDir}{Module}.make Objs = {Objs1} {Objs2} {Objs3} Objs1 = {objdir}pl.o <09> {objdir}pdata.o <09> {objdir}picon.o <09> {objdir}putil.o <09> {objdir}poptions.o <09> {objdir}pfile.o <09> {objdir}pprint.o <09> {objdir}ptool.o <09> {objdir}pmouse.o <09> {objdir}pobject.o <09> {objdir}pobjutil.o <09> {objdir}plist.o <09> {objdir}pmove.o <09> {objdir}ppage.o <09> {objdir}pruler.o <09> {objdir}pupdate.o <09> {objdir}pmenus.o <09> {objdir}pedit.o <09> {objdir}pundo.o <09> {objdir}parrange.o <09> {objdir}pscroll.o <09> {objdir}pguide.o <09> {objdir}pdrag.o <09> {objdir}ptab.o <09> {objdir}main.o <09> {objdir}prim.o <09> {objdir}prim2.o <09> {objdir}tutil.o <09> {objdir}tdraw.o <09> {objdir}click.o <09> {objdir}key.o <09> {objdir}edit.o <09> {objdir}format.o <09> {objdir}truler.o <09> {objdir}tcntl.o Objs2 = {objdir}pruler2.o <09> {objdir}putil2.o <09> {objdir}pobjutil2.o <09> {objdir}tscrap.o <09> {objdir}tutil2.o <09> # {objdir}tdbg.o <09> # {objdir}tdbg.o <09> # {objdir}pdbg.o <09> # {objdir}pdbg.o Objs3 = {objdir}pscrap.o <09> {objdir}strings.o ScrapDpndtObj = {objdir}pedit.o <09> {objdir}pl.o #-------------------------------------------------------------------------------- # Main target {Linkfile} <09><> {Objs} {Makefile} @if "`newer {Makefile} {LinkFile}`"; <09> @echo "# Creating {LinkFile} <20><>" @echo " -lseg:dynamic {Segment1} {Objs1} <09><>" > {targ} @echo " -lseg:dynamic {Segment2} {Objs2} <09><>" >> {targ} @echo " -lseg {Segment3} {Objs3} <09><>" >> {targ} @else @touch {linkfile} @end # Global PL dependencies {Objs} <09> {GlobalIncludes} # Other PL dependencies {ScrapDpndtObj} <09> {AWGS}Scrap:Scrap.equ clean <09> @confirm "Delete {Module} objs and linkfile?" @if ({status} == 0) set foobar {exit} unset exit delete -y {awgs}{module}:src:<3A>.lst delete -y {Linkfile} delete -y {Objs} set exit {foobar} @end #-------------------------------------------------------------------------------- # Default rules .o <09> .s AsmIIGS {DepDir}{Default}.s -i {IncDir},{AWGS}Macros,{AWGS}Driver,{AWGS}Scrap -o {TargDir}{Default}.o {AsmIIGSOptions} {ObjDir} <09> {SrcDir}