summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/units/MPWMake
blob: 9946631a6c59a08ad700e70789a76b36efc48303 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FPC = ppcppc

rtl-stamp Ä
	Set Exit 0
	NewFolder powerpc-macos
	Set Exit 1
	Set TEMP_FPC `Files -f "{FPC}"`
	Set TEMP_OUTDIR "`Directory`powerpc-macos:"
  Directory :::rtl:macos
	Make all -f MPWMake -d FPC={TEMP_FPC} -d REDIR=-FE'"'{TEMP_OUTDIR}'"' -d OPT={OPT} > Makeout ; Makeout
	Directory :::tests:units
	Echo Compiled > :rtl-stamp

rtl Ä rtl-stamp

:powerpc-macos:erroru.ppu Ä :erroru.pp
	Set Exit 0
	NewFolder powerpc-macos
	Set Exit 1
	"{FPC}" -FE:powerpc-macos: :erroru.pp

:powerpc-macos:ptest.ppu Ä ::test:cg:ptest.pp
	Set Exit 0
	NewFolder powerpc-macos
	Set Exit 1
	"{FPC}" -FE:powerpc-macos: ::test:cg:ptest.pp

:powerpc-macos:popuperr.ppu Ä :popuperr.pp
	Set Exit 0
	NewFolder powerpc-macos
	Set Exit 1
	"{FPC}" -FE:powerpc-macos: :popuperr.pp

extra Ä :powerpc-macos:erroru.ppu :powerpc-macos:ptest.ppu :powerpc-macos:popuperr.ppu

all Ä rtl extra



cleanrtlfcl Ä
	Set Exit 0 # To handle the case, when there is no match
	Delete -y powerpc-macos
	Delete -y -i rtl-stamp fcl-stamp
	Set Exit 1 #Revert error handling

clean Ä cleanrtlfcl