summaryrefslogtreecommitdiff
path: root/yacc/Makefile.Mac
blob: 9653a32d98d01c929ebbaffdf3b9a6094f2b7b3b (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Makefile for the parser generator.

C = sc
COptions = -d NDEBUG -model far -w 2
LinkOptions = -model far -msg nodup -compact -state nouse -br 68k
Libs = "{libraries}IntEnv.far.o" "{libraries}MacRuntime.o" ¶
       "{clibraries}StdCLib.far.o" "{libraries}MathLib.far.o" ¶
       "{libraries}ToolLibs.o" "{libraries}Interface.o"

PPCC = mrc
PPCCOptions = -d NDEBUG -w 2 -w 35
PPCLinkOptions = -d
PPCLibs = "{sharedlibraries}MathLib" "{ppclibraries}PPCCRuntime.o" ¶
          "{ppclibraries}PPCToolLibs.o" "{sharedlibraries}StdCLib" ¶
          "{ppclibraries}StdCRuntime.o" "{sharedlibraries}InterfaceLib"

OBJS = closure.c.o error.c.o lalr.c.o lr0.c.o main.c.o mkpar.c.o output.c.o ¶
       reader.c.o skeleton.c.o symtab.c.o verbose.c.o warshall.c.o ¶
       rotatecursor.c.o

PPCOBJS = closure.c.x error.c.x lalr.c.x lr0.c.x main.c.x mkpar.c.x ¶
       output.c.x ¶
       reader.c.x skeleton.c.x symtab.c.x verbose.c.x warshall.c.x ¶
       rotatecursor.c.x

all Ä ocamlyacc

ocamlyacc ÄÄ {OBJS}
    ilink -c 'MPS ' -t MPST {LinkOptions} -o ocamlyacc {OBJS} {Libs}

ocamlyacc ÄÄ {PPCOBJS}
    ppclink -c 'MPS ' -t MPST {PPCLinkOptions} -o ocamlyacc {PPCOBJS} {PPCLibs}

clean Ä
    delete -i Å.c.[ox] || set status 0
    delete -i ocamlyacc

rotatecursor.c.o Ä ::byterun:rotatecursor.c ::byterun:rotatecursor.h
    {c} {coptions} -I ::byterun: -o rotatecursor.c.o ::byterun:rotatecursor.c

rotatecursor.c.x Ä ::byterun:rotatecursor.c ::byterun:rotatecursor.h
    {ppcc} {ppccoptions} -I ::byterun: -o rotatecursor.c.x ::byterun:rotatecursor.c

depend Ä

closure.c.o Ä defs.h ::byterun:rotatecursor.h
error.c.o Ä defs.h ::byterun:rotatecursor.h
lalr.c.o Ä defs.h ::byterun:rotatecursor.h
lr0.c.o Ä defs.h ::byterun:rotatecursor.h
main.c.o Ä defs.h ::byterun:rotatecursor.h
mkpar.c.o Ä defs.h ::byterun:rotatecursor.h
output.c.o Ä defs.h ::byterun:rotatecursor.h
reader.c.o Ä defs.h ::byterun:rotatecursor.h
skeleton.c.o Ä defs.h ::byterun:rotatecursor.h
symtab.c.o Ä defs.h ::byterun:rotatecursor.h
verbose.c.o Ä defs.h ::byterun:rotatecursor.h
warshall.c.o Ä defs.h ::byterun:rotatecursor.h

closure.c.x Ä defs.h ::byterun:rotatecursor.h
error.c.x Ä defs.h ::byterun:rotatecursor.h
lalr.c.x Ä defs.h ::byterun:rotatecursor.h
lr0.c.x Ä defs.h ::byterun:rotatecursor.h
main.c.x Ä defs.h ::byterun:rotatecursor.h
mkpar.c.x Ä defs.h ::byterun:rotatecursor.h
output.c.x Ä defs.h ::byterun:rotatecursor.h
reader.c.x Ä defs.h ::byterun:rotatecursor.h
skeleton.c.x Ä defs.h ::byterun:rotatecursor.h
symtab.c.x Ä defs.h ::byterun:rotatecursor.h
verbose.c.x Ä defs.h ::byterun:rotatecursor.h
warshall.c.x Ä defs.h ::byterun:rotatecursor.h