mirror of
https://github.com/antoinevignau/source.git
synced 2025-01-21 23:30:21 +00:00
1 line
4.3 KiB
Plaintext
1 line
4.3 KiB
Plaintext
|
#
# Scrap.make - Makefile for Scrap
#
# 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 =
Segment = SCRAP
Segment2 = WPIO
Segment3 = TOASCII
Segment4 = TOWPSCRAP
Segment5 = IMPORTAWDB
Segment6 = TODBSCRAP
Segment7 = IMPORTAWWP
Segment8 = IMPORTMSGS
Segment9 = TOPICT
Segment10 = TOSTATTEXT
Segment11 = IMPORTAWSS
Segment12 = TOSSSCRAP
Segment13 = IMPORTPICT
Module = Scrap
ModuleDir = {AWGS}{Module}:
SrcDir = {ModuleDir}Src:
IncDir = {ModuleDir}
ObjDir = {ModuleDir}Obj:
Linkfile = {ModuleDir}{Module}.link
Makefile = {ModuleDir}{Module}.make
GlobalIncludes = {AWGS}Macros:Macros.dump <09>
{AWGS}Driver:Driver.equ <09>
{IncDir}Scrap.equ
Objs = {ObjDir}shell.aii.o <09>
{ObjDir}scrapeqs.aii.o <09>
{ObjDir}clip.aii.o <09>
{ObjDir}stuff.aii.o <09>
{ObjDir}swscrap.aii.o <09>
{ObjDir}wpscrap.aii.o <09>
{ObjDir}ssscrap.aii.o <09>
{ObjDir}dbscrap.aii.o <09>
{ObjDir}pict.aii.o <09>
{ObjDir}ascii.aii.o <09>
{ObjDir}dbscdata.aii.o <09>
{ObjDir}ssscdata.aii.o <09>
{ObjDir}grscrap.aii.o <09>
{ObjDir}ssstring.aii.o <09>
{ObjDir}fscanner.aii.o <09>
{ObjDir}wpscrap2.aii.o <09>
{ObjDir}imptxt.aii.o <09>
{ObjDir}plscrap2.aii.o <09>
{ObjDir}drawpl.aii.o <09>
{ObjDir}short.aii.o
Objs2 = {ObjDir}wpdisk.aii.o
Objs3 = {ObjDir}ascii2.aii.o
Objs4 = {ObjDir}wpscrap3.aii.o
Objs5 = {ObjDir}dbaworks.aii.o
Objs6 = {ObjDir}dbscrap2.aii.o
Objs7 = {ObjDir}wpaworks.aii.o
Objs8 = {ObjDir}msgswp.aii.o
Objs9 = {ObjDir}pict2.aii.o
Objs10 = {ObjDir}plscrap.aii.o
Objs11 = {ObjDir}ssaworks.aii.o
Objs12 = {ObjDir}ssscrap2.aii.o
Objs13 = {ObjDir}sworkslp.aii.o
#--------------------------------------------------------------------------------
# Main target
{Linkfile} <09><> {Objs} <09>
{Objs2} <09>
{Objs3} <09>
{Objs4} <09>
{Objs5} <09>
{Objs6} <09>
{Objs7} <09>
{Objs8} <09>
{Objs9} <09>
{Objs10} <09>
{Objs11} <09>
{Objs12} <09>
{Objs13} <09>
{Makefile}
@echo "Creating {LinkFile} <20><>"
@echo " -lseg {Segment} {Objs} <09><>" > {Targ}
@echo " -lseg:dynamic {Segment2} {Objs2} <20><>" >> {Targ}
@echo " -lseg:dynamic {Segment3} {Objs3} <20><>" >> {Targ}
@echo " -lseg:dynamic {Segment4} {Objs4} <20><>" >> {Targ}
@echo " -lseg:dynamic {Segment5} {Objs5} <20><>" >> {Targ}
@echo " -lseg:dynamic {Segment6} {Objs6} <20><>" >> {Targ}
@echo " -lseg:dynamic {Segment7} {Objs7} <20><>" >> {Targ}
@echo " -lseg:dynamic {Segment8} {Objs8} <20><>" >> {Targ}
@echo " -lseg:dynamic {Segment9} {Objs9} <20><>" >> {Targ}
@echo " -lseg:dynamic {Segment10} {Objs10} <20><>" >> {Targ}
@echo " -lseg:dynamic {Segment11} {Objs11} <20><>" >> {Targ}
@echo " -lseg:dynamic {Segment12} {Objs12} <20><>" >> {Targ}
@echo " -lseg:dynamic {Segment13} {Objs13} <20><>" >> {Targ}
# Global Scrap dependencies
{Objs} <09>
{Objs2} <09>
{Objs3} <09>
{Objs4} <09>
{Objs5} <09>
{Objs6} <09>
{Objs7} <09>
{Objs8} <09>
{Objs9} <09>
{Objs10} <09>
{Objs11} <09>
{Objs12} <09>
{Objs13} <09> {GlobalIncludes}
# Clean out Objs
clean <09>
@confirm "Delete {Module} objs and linkfile?"
@if {status} == 0 then
rm {Linkfile} {Objs} {Objs2} {Objs3} {Objs4} {Objs5} {Objs6} {Objs7} {Objs8} {Objs9} {Objs10} {Objs11} {Objs12} {Objs13}
@end
#--------------------------------------------------------------------------------
# Special Cases
{ObjDir}clip.aii.o <09>
{ObjDir}dbaworks.aii.o <09>
{ObjDir}dbscdata.aii.o <09>
{ObjDir}dbscrap.aii.o <09>
{ObjDir}dbscrap2.aii.o <09>
{ObjDir}pict2.aii.o <09>
{ObjDir}plscrap.aii.o <09> {IncDir}dbsc.equ
{ObjDir}dbscrap.aii.o <09>
{ObjDir}plscrap.aii.o <09>
{ObjDir}short.aii.o <09>
{ObjDir}ssscdata.aii.o <09>
{ObjDir}ssaworks.aii.o <09>
{ObjDir}ssscrap.aii.o <09>
{ObjDir}ssscrap2.aii.o <09>
{ObjDir}ssstring.aii.o <09>
{ObjDir}ascii2.aii.o <09> {IncDir}sssc.equ
{ObjDir}sh
|