~ubuntu-branches/ubuntu/dapper/fpc/dapper

« back to all changes in this revision

Viewing changes to compiler/MPWMake

  • Committer: Bazaar Package Importer
  • Author(s): Carlos Laviola
  • Date: 2005-05-30 11:59:10 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050530115910-x5pbzm4qqta4i94h
Tags: 2.0.0-2
debian/fp-compiler.postinst.in: forgot to reapply the patch that
correctly creates the slave link to pc(1).  (Closes: #310907)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Make file for MPW make.
 
 
b'# To run it, use:'
 
 
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'#'
 
 
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'#     e g Makeout2.'
 
 
b'# '
 
 
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'FPCLANG = e'
 
 
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'
 
 
b'msg \xc4 msgtxt.inc'
 
 
b'compiler \xc4 msg'
 
 
b'\tSet Exit 0'
0
2
 NewFolder :powerpc:units: � Dev:Null
1
3
 NewFolder :powerpc:units:powerpc-macos: � Dev:Null
2
4
 Set Exit 1
 
 
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'\tRename -y pp ppcppc'
 
 
b'clean \xc4 utils_clean'
 
 
b'\tSet Exit 0'
 
 
b'\tDelete -y :powerpc:units:powerpc-macos'
 
 
b'\tDelete -y ppcppc oldfpc msg2inc'
 
 
b'\tDelete -y \xc5.xcoff'
 
 
b'\tSet Exit 1'
 
 
b'cycleclean \xc4'
 
 
b'\tSet Exit 0'
 
 
b'\tDelete -y :powerpc:units:powerpc-macos'
 
 
b'\tSet Exit 1'
 
 
b'install \xc4'
4
6
 If {FPCDIR} == ''
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"
9
11
 End
10
12
 Set Exit 0
11
13
 NewFolder "{FPCDIR}" � Dev:Null
12
14
 NewFolder "{FPCDIR}bin:" � Dev:Null
13
15
 Set Exit 1
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'cycle \xc4'
 
 
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'
 
 
b'\t#'
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'
21
23
 #
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'
23
25
 #
 
 
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'
 
 
b'utils_all \xc4'
 
 
b'\tDirectory :utils'
 
 
b'\tSet Exit 0'
24
26
 NewFolder :units: � Dev:Null
25
27
 NewFolder :units:powerpc-macos: � Dev:Null
26
28
 Set Exit 1
 
 
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'\tDirectory ::'
 
 
b'utils_clean \xc4'
 
 
b'\tDirectory :utils'
 
 
b'\tSet Exit 0'
 
 
b'\tDelete -y :units:powerpc-macos'
 
 
b'\tDelete -y fpc ppudump ppufiles ppumove msg2inc'
 
 
b'\tDelete -y \xc5.xcoff'
 
 
b'\tSet Exit 1'
 
 
b'\tDirectory ::'
 
 
b'\\ No newline at end of file'