~ubuntu-branches/ubuntu/utopic/cccc/utopic

« back to all changes in this revision

Viewing changes to pccts/NOTES.watcom

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2003-08-23 04:34:05 UTC
  • Revision ID: james.westby@ubuntu.com-20030823043405-xnzd3mn3hwtvi6dr
Tags: upstream-3.pre81
ImportĀ upstreamĀ versionĀ 3.pre81

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
From Tom Zougas, zougas@civ.utoronto.ca
 
2
 
 
3
These are the changes I had to make to get ANTLR to compile under Watcom C
 
4
10.0 32-bit mode. I'm including the makefiles for antlr and dlg:
 
5
 
 
6
[Warning from T. Parr: I think that I may have expanded the tabs by
 
7
 mistake in this file.  You might have to convert them back to
 
8
 tabs to have this file work correctly.]
 
9
 
 
10
antlr.mak:
 
11
-----------------------------------------------------------------------
 
12
 
 
13
SET=..\support\set
 
14
PCCTS_H=..\h
 
15
 
 
16
#
 
17
#   Watcom
 
18
#
 
19
CC=wcl386
 
20
ANTLR=..\bin\antlr
 
21
DLG=..\bin\dlg
 
22
CFLAGS= -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN -DPC
 
23
OUT_OBJ = -o
 
24
OBJ_EXT = obj
 
25
LINK = wcl386
 
26
 
 
27
.c.obj :
 
28
        $(CC) -c $[* $(CFLAGS)
 
29
 
 
30
antlr.exe: antlr.obj scan.obj err.obj bits.obj build.obj fset2.obj &
 
31
        fset.obj gen.obj globals.obj hash.obj lex.obj main.obj &
 
32
        misc.obj set.obj pred.obj
 
33
        $(LINK) -fe=antlr.exe *.obj -k14336
 
34
        copy *.exe ..\bin
 
35
 
 
36
# *********** Target list of PC machines ***********
 
37
#
 
38
# Don't worry about the ambiguity messages coming from antlr
 
39
# for making antlr.c etc...  [should be 10 of them, I think]
 
40
#
 
41
antlr.c stdpccts.h parser.dlg tokens.h err.c : antlr.g
 
42
        $(ANTLR) antlr.g
 
43
 
 
44
antlr.$(OBJ_EXT): antlr.c mode.h tokens.h
 
45
 
 
46
scan.$(OBJ_EXT): scan.c mode.h tokens.h
 
47
 
 
48
scan.c mode.h: parser.dlg
 
49
        $(DLG) -C2 parser.dlg scan.c
 
50
 
 
51
set.$(OBJ_EXT): $(SET)\set.c
 
52
        $(CC) $(CFLAGS) -c set.$(OBJ_EXT) $(SET)\set.c
 
53
 
 
54
#
 
55
# ****** These next targets are common to UNIX and PC world ********
 
56
#
 
57
 
 
58
#clean up all the intermediate files
 
59
clean:
 
60
        del *.obj
 
61
 
 
62
#remove everything in clean plus the PCCTS files generated
 
63
scrub:
 
64
        del $(PCCTS_GEN) 
 
65
        del *.$(OBJ_EXT)
 
66
---------------------------------------------------------------------
 
67
dlg.mak:
 
68
---------------------------------------------------------------------
 
69
SET=..\support\set
 
70
PCCTS_H=..\h
 
71
 
 
72
#
 
73
#   Watcom
 
74
#
 
75
CC=wcl386
 
76
ANTLR=..\bin\antlr
 
77
DLG=..\bin\dlg
 
78
CFLAGS= -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN -DPC
 
79
LIBS=
 
80
OBJ_EXT = obj
 
81
LINK = wcl386
 
82
 
 
83
.c.obj :
 
84
        $(CC) -c $[* $(CFLAGS)
 
85
 
 
86
dlg.exe : dlg_p.obj dlg_a.obj main.obj err.obj set.obj support.obj &
 
87
        output.obj relabel.obj automata.obj
 
88
        $(LINK) -fe=dlg.exe *.obj -k14336
 
89
        copy *.exe ..\bin
 
90
 
 
91
SRC = dlg_p.c dlg_a.c main.c err.c $(SET)\set.c support.c output.c &
 
92
        relabel.c automata.c
 
93
 
 
94
dlg_p.c parser.dlg err.c tokens.h : dlg_p.g
 
95
        $(ANTLR) dlg_p.g
 
96
 
 
97
dlg_a.c mode.h : parser.dlg
 
98
        $(DLG) -C2 parser.dlg dlg_a.c
 
99
 
 
100
dlg_p.$(OBJ_EXT) : dlg_p.c dlg.h tokens.h mode.h
 
101
        $(CC) $(CFLAGS) -c dlg_p.c
 
102
 
 
103
dlg_a.$(OBJ_EXT) : dlg_a.c dlg.h tokens.h mode.h
 
104
        $(CC) $(CFLAGS) -c dlg_a.c
 
105
 
 
106
main.$(OBJ_EXT) : main.c dlg.h
 
107
        $(CC) $(CFLAGS) -c main.c
 
108
 
 
109
set.$(OBJ_EXT) : $(SET)\set.c
 
110
        $(CC) -c $(CFLAGS) $(SET)\set.c
 
111
 
 
112
#clean up all the intermediate files
 
113
clean:
 
114
        del *.$(OBJ_EXT)