1
# Make file for MPW make.
b'# Make <target> -f MPWMake > Makeout ; Makeout'
b'# where <target> should be replaced with actual make target.'
b'#############################################'
b'# TIPS (TODO move to Wiki or something'
b'# Defined variables: No quoting'
b'# Command lines: quote paths, dont quote option strings, since '
b'# they might contain several options, which must be separated.'
b'# Recursive call to Make: '
b'# - give options as -d XXX="{XXX}"'
b'# - in same dir, remember to ensure to have different Makeout files,'
b'# NOTE Currently cycle is stopped after three rounds, no diff is checked.'
b'FPC = {FPCDIR}bin:ppcppc'
b'# Default language for the compiler (english):'
b'MSGFILE = :msg:error{FPCLANG}.msg'
b'msg2inc \xc4 :utils:msg2inc.pp'
b'\t{FPC} -FE: -WT :utils:msg2inc.pp'
b'# The msgtxt.inc only depends on the error?.msg file, not on msg2inc,'
b'# because that one will be new almost everytime'
b'msgtxt.inc \xc4 {MSGFILE}'
b'\tMake msg2inc -f MPWMake > Makeout3 ; Makeout3'
b'\tmsg2inc {MSGFILE} msg msg'
0
2
NewFolder :powerpc:units: � Dev:Null
1
3
NewFolder :powerpc:units:powerpc-macos: � Dev:Null
b'\t"{FPC}" {OPT} "-Fu{RTLDIR}" -Fu:systems: -Fu:powerpc: -dGDB -dBROWSERLOG -dNOOPT \xb6'
3
5
-dpowerpc -WT -FE: -FU:powerpc:units:powerpc-macos: pp.pas
b'clean \xc4 utils_clean'
b'\tDelete -y :powerpc:units:powerpc-macos'
b'\tDelete -y ppcppc oldfpc msg2inc'
b'\tDelete -y \xc5.xcoff'
b'\tDelete -y :powerpc:units:powerpc-macos'
5
7
Set -e FPCDIR `GetFileName -wd -m 'Select where to install the FreePascal folder'`FreePascal:
6
8
Set -e Commands "{Commands},{FPCDIR}bin:"
7
9
Echo "Set -e FPCDIR �'{FPCDIR}�'" > "{MPW}Startup Items:FPC Startup"
8
10
Echo 'Set -e Commands "{Commands},{FPCDIR}bin:"' >> "{MPW}Startup Items:FPC Startup"
11
13
NewFolder "{FPCDIR}" � Dev:Null
12
14
NewFolder "{FPCDIR}bin:" � Dev:Null
14
16
Duplicate -y :ppcppc :utils:ppudump :utils:ppufiles :utils:ppumove �
15
17
:utils:fpc "{FPCDIR}bin:"
16
18
Echo "# Configuration file for Free Pascal for MPW" > "{FPCDIR}bin:fpc.cfg"
17
19
Echo "-Fu�'{FPCDIR}units:rtl:�'" >> "{FPCDIR}bin:fpc.cfg"
18
20
Echo "-l" >> "{FPCDIR}bin:fpc.cfg"
19
21
Echo "-vi" >> "{FPCDIR}bin:fpc.cfg"
b'\tDirectory ::rtl:macos'
b'\tMake clean -f MPWMake > Makeout ; Makeout'
b'\tMake all -d FPC="{FPC}" -d OPT="{OPT}" -f MPWMake > Makeout ; Makeout'
b'\tDirectory :::compiler'
b'\tMake clean -f MPWMake > Makeout2 ; Makeout2'
b'\tMake compiler -d FPC="{FPC}" -d OPT="{OPT}" -d RTLDIR=::rtl:units:powerpc-macos -f MPWMake > Makeout2 ; Makeout2'
20
22
Echo '******************** SECOND ROUND *********************'
b'\tRename -y ppcppc oldfpc'
b'\tDirectory ::rtl:macos'
b'\tMake clean -f MPWMake > Makeout ; Makeout'
b'\tMake all -d FPC=:::compiler:oldfpc -d OPT="{OPT}" -f MPWMake > Makeout ; Makeout'
b'\tDirectory :::compiler'
b'\tMake cycleclean -f MPWMake > Makeout2 ; Makeout2'
b'\tMake compiler -d FPC=oldfpc -d OPT="{OPT}" -d RTLDIR=::rtl:units:powerpc-macos -f MPWMake > Makeout2 ; Makeout2'
22
24
Echo '********************* THIRD ROUND *********************'
b'\tRename -y ppcppc oldfpc'
b'\tDirectory ::rtl:macos'
b'\tMake clean -f MPWMake > Makeout ; Makeout'
b'\tMake all -d FPC=:::compiler:oldfpc -d OPT="{OPT}" -f MPWMake > Makeout ; Makeout'
b'\tDirectory :::compiler'
b'\tMake cycleclean -f MPWMake > Makeout2 ; Makeout2'
b'\tMake compiler -d FPC=oldfpc -d OPT="{OPT}" -d RTLDIR=::rtl:units:powerpc-macos -f MPWMake > Makeout2 ; Makeout2'
b'\tMake utils_clean -f MPWMake > Makeout2 ; Makeout2'
b'\tMake utils_all -d FPC=::oldfpc -d OPT="{OPT}" -d RTLDIR=:::rtl:units:powerpc-macos -f MPWMake > Makeout2 ; Makeout2'
24
26
NewFolder :units: � Dev:Null
25
27
NewFolder :units:powerpc-macos: � Dev:Null
b'\t"{FPC}" {OPT} "-Fu{RTLDIR}" -FE: -FU:units:powerpc-macos -Fu:: -WT ppudump.pp'
b'\t"{FPC}" {OPT} "-Fu{RTLDIR}" -FE: -FU:units:powerpc-macos -Fu:: -WT ppufiles.pp'
b'\t"{FPC}" {OPT} "-Fu{RTLDIR}" -FE: -FU:units:powerpc-macos -Fu:: -WT ppumove.pp'
27
29
Duplicate -y fpc.mpw fpc
b'\tDelete -y :units:powerpc-macos'
b'\tDelete -y fpc ppudump ppufiles ppumove msg2inc'
b'\tDelete -y \xc5.xcoff'
b'\\ No newline at end of file'