4 At the moment this file is available via anonymous FTP at
6 Node: marvin.ecn.purdue.edu
7 File: pub/pccts/1.32/NOTES.BCC
9 Mail corrections or additions to David Seidel <71333.1575@compuserve.com>
10 ===============================================================================
11 Notes on Building PCCTS 1.32 with Borland C++
13 David Seidel, Innovative Data Concepts Incorporated
14 CompuServe: 71333,1575
15 Internet: 71333.1575@compuserve.com
18 I have gotten ANTLR and DLG to succesfully build with BCC 4.0, but have found
19 from experience that ANTLR, in particular, is likely to run out of memory
20 with grammars over a certain size, or with larger values for the -k and -ck
21 options. Now that BCC 4.02 and the new Borland Power Pack for DOS is now
22 available, I feel that there is no excuse not to build these tools as
23 32-bit executables, as they ought to be.
25 For people without the Power Pack, the makefiles below should be fairly easily
26 modified to build 16-bit real-mode executables, but I don't really recommend
27 it. As an alternative, you might consider the highly regarded DJGPP compiler
28 (a DOS port of the Gnu GCC compiler, with a DOS extender included). Hopefully
29 some other PCCTS who has DJGPP can provode whatever advice is necessary. The
30 Watcom compiler is also an excellent possibility (albeit a commercial one),
31 and I hope to make available Watcom makefiles in the near future.
33 Here are the makefiles I am using. Both makefiles use a compiler configuration
34 file that contains compiler switches such as optimization settings. I call
35 this file bor32.cfg and keep a copy in both the ANTLR and DLG subdirectories.
37 ==== File: bor32.cfg (cut here) ===============================================
47 ==== End of file bor32.cfg (cut here) =========================================
49 ==== File: antlr\bor32.mak (cut here) =========================================
51 # ANTLR 1.32 Makefile for Borland C++ 4.02 with DPMI 32-bit DOS extender by
53 # Innovative Data Concepts Incorporated
54 # 71333.1575@compuserve.com (or) dseidel@delphi.com
56 # Notes: 1. Compiler switches (optimization etc.) are contained in the
58 # 2. This makefile requires Borland C++ 4.02 or greater with
59 # the DOS Power Pack add-on package.
60 # 3. Change the BCCDIR macro below to the topmost directory in
61 # which BCC is installed on your system.
70 CFLAGS = -I$(BCCDIR)\include -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN \
74 OBJS = antlr.obj scan.obj err.obj bits.obj build.obj fset2.obj fset.obj \
75 gen.obj globals.obj hash.obj lex.obj main.obj misc.obj pred.obj dialog.obj \
79 $(CC) -c $(CFLAGS) {$&.c }
83 -Tpe -ax -c -s -L$(BCCDIR)\lib +
84 $(BCCDIR)\lib\c0x32 $**
93 # *********** Target list of PC machines ***********
95 # Don't worry about the ambiguity messages coming from antlr
96 # for making antlr.c etc... [should be 10 of them, I think]
99 # leave this commented out for initial build!
100 #antlr.c stdpccts.h parser.dlg tokens.h err.c : antlr.g
103 antlr.$(OBJ_EXT): antlr.c mode.h tokens.h
105 scan.$(OBJ_EXT): scan.c mode.h tokens.h
107 # leave this commented out for initial build!
108 #scan.c mode.h: parser.dlg
109 # $(DLG) -C2 parser.dlg scan.c
111 set.$(OBJ_EXT): $(SET)\set.c
112 $(CC) -c $(CFLAGS) $(SET)\set.c
114 ==== End of file antlr\bor32.mak (cut here) ===================================
116 ==== File: dlg\bor32.mak (cut here) ===========================================
118 # DLG 1.32 Makefile for Borland C++ 4.02 with DPMI 32-bit DOS extender by
120 # Innovative Data Concepts Incorporated
121 # 71333.1575@compuserve.com (or) dseidel@delphi.com
123 # Notes: 1. Compiler switches (optimization etc.) are contained in the
125 # 2. This makefile requires Borland C++ 4.02 or greater with
126 # the DOS Power Pack add-on package.
127 # 3. Change the BCCDIR macro below to the topmost directory in
128 # which BCC is installed on your system.
138 CFLAGS = -I$(BCCDIR)\include -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN \
142 OBJS = dlg_p.obj dlg_a.obj main.obj err.obj support.obj \
143 output.obj relabel.obj automata.obj set.obj
146 $(CC) -c $(CFLAGS) {$&.c }
150 -Tpe -ax -c -s -L$(BCCDIR)\lib +
167 support.obj: support.c
171 relabel.obj: relabel.c
173 automata.obj: automata.c
175 set.$(OBJ_EXT): $(SET)\set.c
176 $(CC) -c $(CFLAGS) $(SET)\set.c
178 ==== End of file dlg\bor32.mak (cut here) =====================================