+++ /dev/null
-March 95\r
-Version 1.32 of pccts\r
- \r
-At the moment this file is available via anonymous FTP at\r
- \r
- Node: marvin.ecn.purdue.edu\r
- File: pub/pccts/1.32/NOTES.BCC\r
- \r
-Mail corrections or additions to David Seidel <71333.1575@compuserve.com>\r
-===============================================================================\r
-Notes on Building PCCTS 1.32 with Borland C++\r
- \r
-David Seidel, Innovative Data Concepts Incorporated\r
-CompuServe: 71333,1575\r
-Internet: 71333.1575@compuserve.com\r
- dseidel@delphi.com\r
- \r
-I have gotten ANTLR and DLG to succesfully build with BCC 4.0, but have found\r
-from experience that ANTLR, in particular, is likely to run out of memory\r
-with grammars over a certain size, or with larger values for the -k and -ck\r
-options. Now that BCC 4.02 and the new Borland Power Pack for DOS is now\r
-available, I feel that there is no excuse not to build these tools as\r
-32-bit executables, as they ought to be.\r
- \r
-For people without the Power Pack, the makefiles below should be fairly easily\r
-modified to build 16-bit real-mode executables, but I don't really recommend\r
-it. As an alternative, you might consider the highly regarded DJGPP compiler\r
-(a DOS port of the Gnu GCC compiler, with a DOS extender included). Hopefully\r
-some other PCCTS who has DJGPP can provode whatever advice is necessary. The\r
-Watcom compiler is also an excellent possibility (albeit a commercial one),\r
-and I hope to make available Watcom makefiles in the near future.\r
- \r
-Here are the makefiles I am using. Both makefiles use a compiler configuration\r
-file that contains compiler switches such as optimization settings. I call\r
-this file bor32.cfg and keep a copy in both the ANTLR and DLG subdirectories.\r
- \r
-==== File: bor32.cfg (cut here) ===============================================\r
--w-\r
--RT-\r
--x-\r
--N-\r
--k-\r
--d\r
--O2-e-l\r
--Z\r
--D__STDC__=1\r
-==== End of file bor32.cfg (cut here) =========================================\r
- \r
-==== File: antlr\bor32.mak (cut here) =========================================\r
-#\r
-# ANTLR 1.32 Makefile for Borland C++ 4.02 with DPMI 32-bit DOS extender by\r
-# David Seidel\r
-# Innovative Data Concepts Incorporated\r
-# 71333.1575@compuserve.com (or) dseidel@delphi.com\r
-#\r
-# Notes: 1. Compiler switches (optimization etc.) are contained in the\r
-# file bor32.cfg.\r
-# 2. This makefile requires Borland C++ 4.02 or greater with\r
-# the DOS Power Pack add-on package.\r
-# 3. Change the BCCDIR macro below to the topmost directory in\r
-# which BCC is installed on your system.\r
-#\r
- \r
-BCCDIR = d:\bc4\r
-CC = bcc32\r
-SET = ..\support\set\r
-PCCTS_H = ..\h\r
-ANTLR = ..\bin\antlr\r
-DLG = ..\bin\dlg\r
-CFLAGS = -I$(BCCDIR)\include -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN \\r
- +bor32.cfg\r
-LIBS = dpmi32 cw32\r
-OBJ_EXT = obj\r
-OBJS = antlr.obj scan.obj err.obj bits.obj build.obj fset2.obj fset.obj \\r
- gen.obj globals.obj hash.obj lex.obj main.obj misc.obj pred.obj dialog.obj \\r
- set.obj\r
- \r
-.c.obj:\r
- $(CC) -c $(CFLAGS) {$&.c }\r
- \r
-antlr.exe: $(OBJS)\r
- tlink32 @&&|\r
--Tpe -ax -c -s -L$(BCCDIR)\lib +\r
-$(BCCDIR)\lib\c0x32 $**\r
-$@\r
- \r
-$(LIBS)\r
-;\r
-|\r
- copy *.exe ..\bin\r
- \r
- \r
-# *********** Target list of PC machines ***********\r
-#\r
-# Don't worry about the ambiguity messages coming from antlr\r
-# for making antlr.c etc... [should be 10 of them, I think]\r
-#\r
- \r
-# leave this commented out for initial build!\r
-#antlr.c stdpccts.h parser.dlg tokens.h err.c : antlr.g\r
-# $(ANTLR) antlr.g\r
- \r
-antlr.$(OBJ_EXT): antlr.c mode.h tokens.h\r
- \r
-scan.$(OBJ_EXT): scan.c mode.h tokens.h\r
- \r
-# leave this commented out for initial build!\r
-#scan.c mode.h: parser.dlg\r
-# $(DLG) -C2 parser.dlg scan.c\r
- \r
-set.$(OBJ_EXT): $(SET)\set.c\r
- $(CC) -c $(CFLAGS) $(SET)\set.c\r
- \r
-==== End of file antlr\bor32.mak (cut here) ===================================\r
- \r
-==== File: dlg\bor32.mak (cut here) ===========================================\r
-#\r
-# DLG 1.32 Makefile for Borland C++ 4.02 with DPMI 32-bit DOS extender by\r
-# David Seidel\r
-# Innovative Data Concepts Incorporated\r
-# 71333.1575@compuserve.com (or) dseidel@delphi.com\r
-#\r
-# Notes: 1. Compiler switches (optimization etc.) are contained in the\r
-# file bor32.cfg.\r
-# 2. This makefile requires Borland C++ 4.02 or greater with\r
-# the DOS Power Pack add-on package.\r
-# 3. Change the BCCDIR macro below to the topmost directory in\r
-# which BCC is installed on your system.\r
-#\r
- \r
- \r
-BCCDIR = d:\bc4\r
-CC = bcc32\r
-SET = ..\support\set\r
-PCCTS_H = ..\h\r
-ANTLR = ..\bin\antlr\r
-DLG = ..\bin\dlg\r
-CFLAGS = -I$(BCCDIR)\include -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN \\r
- +bor32.cfg\r
-LIBS = dpmi32 cw32\r
-OBJ_EXT = obj\r
-OBJS = dlg_p.obj dlg_a.obj main.obj err.obj support.obj \\r
- output.obj relabel.obj automata.obj set.obj\r
- \r
-.c.obj:\r
- $(CC) -c $(CFLAGS) {$&.c }\r
- \r
-dlg.exe : $(OBJS)\r
- tlink32 @&&|\r
--Tpe -ax -c -s -L$(BCCDIR)\lib +\r
-c0x32 $**\r
-$@\r
- \r
-$(LIBS)\r
-;\r
-|\r
- copy *.exe ..\bin\r
- \r
-dlg_p.obj: dlg_p.c\r
- \r
-dlg_a.obj: dlg_a.c\r
- \r
-main.obj: main.c\r
- \r
-err.obj: err.c\r
- \r
-support.obj: support.c\r
- \r
-output.obj: output.c\r
- \r
-relabel.obj: relabel.c\r
- \r
-automata.obj: automata.c\r
- \r
-set.$(OBJ_EXT): $(SET)\set.c\r
- $(CC) -c $(CFLAGS) $(SET)\set.c\r
- \r
-==== End of file dlg\bor32.mak (cut here) =====================================\r
- \r
- \r
- \r
-\r
-\r
-\r