]> granicus.if.org Git - nethack/commitdiff
Borland Makefile (from Yitzhak)
authornethack.allison <nethack.allison>
Mon, 30 Dec 2002 12:00:29 +0000 (12:00 +0000)
committernethack.allison <nethack.allison>
Mon, 30 Dec 2002 12:00:29 +0000 (12:00 +0000)
> This patch adds a bit of help on where a win32 bison/flex port can be
> downloaded, how to set it up, and provides default settings for that
>port. It seems the homepage has been stable for at least four years.
>The bison outputs from this port are y_tab.c and such, so I changed
>the defaults in the makefile to be such.  The flex output is yy.lex.c.
>One question that was fwd'd to me after the release dealt with
>using bison and flex.

sys/winnt/Makefile.bcc

index 5932961284b0bed101b58411d7cbc5e8e31bed9b..e3b769c491a5885e8ea77a75123c641cb74a3d1e 100644 (file)
@@ -141,6 +141,15 @@ DO_LEX  = LEX_MSG
 #DO_YACC  = YACC_ACT
 #DO_LEX   = LEX_ACT
 
+# Wilbur Streett's Win32 ports of GNU bison and flex are available at:
+#    http://www.monmouth.com/~wstreett/lex-yacc/lex-yacc.html
+#
+# To use them, download the executables and templates (bison.simple,
+# bison.hairy) to some directory, and set the environment variables
+# BISON_SIMPLE and BISON_HAIRY to point to this directory.
+#
+# The following settings are configured for Wilbur Streett's ports.
+
 # - Specify your yacc and lex programs (or work-alikes) here.
 
 YACC   = bison -y
@@ -157,8 +166,10 @@ LEX        = flex
 FLEXSKEL =
 #FLEXSKEL = -S../tools/flex.ske
 
-YTABC   = y.tab.c
-YTABH   = y.tab.h
+#YTABC   = y.tab.c
+#YTABH   = y.tab.h
+YTABC   = y_tab.c
+YTABH   = y_tab.h
 LEXYYC  = lex.yy.c
 
 #