1 From Tom Zougas, zougas@civ.utoronto.ca
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:
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.]
11 -----------------------------------------------------------------------
22 CFLAGS= -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN -DPC
28 $(CC) -c $[* $(CFLAGS)
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
36 # *********** Target list of PC machines ***********
38 # Don't worry about the ambiguity messages coming from antlr
39 # for making antlr.c etc... [should be 10 of them, I think]
41 antlr.c stdpccts.h parser.dlg tokens.h err.c : antlr.g
44 antlr.$(OBJ_EXT): antlr.c mode.h tokens.h
46 scan.$(OBJ_EXT): scan.c mode.h tokens.h
48 scan.c mode.h: parser.dlg
49 $(DLG) -C2 parser.dlg scan.c
51 set.$(OBJ_EXT): $(SET)\set.c
52 $(CC) $(CFLAGS) -c set.$(OBJ_EXT) $(SET)\set.c
55 # ****** These next targets are common to UNIX and PC world ********
58 #clean up all the intermediate files
62 #remove everything in clean plus the PCCTS files generated
66 ---------------------------------------------------------------------
68 ---------------------------------------------------------------------
78 CFLAGS= -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN -DPC
84 $(CC) -c $[* $(CFLAGS)
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
91 SRC = dlg_p.c dlg_a.c main.c err.c $(SET)\set.c support.c output.c &
94 dlg_p.c parser.dlg err.c tokens.h : dlg_p.g
97 dlg_a.c mode.h : parser.dlg
98 $(DLG) -C2 parser.dlg dlg_a.c
100 dlg_p.$(OBJ_EXT) : dlg_p.c dlg.h tokens.h mode.h
101 $(CC) $(CFLAGS) -c dlg_p.c
103 dlg_a.$(OBJ_EXT) : dlg_a.c dlg.h tokens.h mode.h
104 $(CC) $(CFLAGS) -c dlg_a.c
106 main.$(OBJ_EXT) : main.c dlg.h
107 $(CC) $(CFLAGS) -c main.c
109 set.$(OBJ_EXT) : $(SET)\set.c
110 $(CC) -c $(CFLAGS) $(SET)\set.c
112 #clean up all the intermediate files