cherry-pick the YACC/LEX upgrades from elsewhere
This commit is contained in:
@@ -1,27 +1,22 @@
|
||||
# $NHDT-Date$ $NHDT-Branch$:$NHDT-Revision$
|
||||
# $Date: 2002/01/22 22:54:54 $ $Revision: 1.3 $
|
||||
|
||||
#Set all of these or none of them
|
||||
#YACC = byacc.exe
|
||||
#LEX = flex.exe
|
||||
#YTABC = y_tab.c
|
||||
#YTABH = y_tab.h
|
||||
#LEXYYC = lexyy.c
|
||||
# Set all of these or none of them.
|
||||
#
|
||||
# bison and flex are the ones found in GnuWin32, which
|
||||
# is probably the easiest set of these tools to find
|
||||
# on Windows.
|
||||
#
|
||||
#YACC = bison.exe -y
|
||||
#LEX = flex.exe
|
||||
#YTABC = y.tab.c
|
||||
#YTABH = y.tab.h
|
||||
#LEXYYC = lex.yy.c
|
||||
|
||||
!IF "$(YACC)"!=""
|
||||
@echo Yacc-alike set to $(YACC)
|
||||
@echo YTABC set to $(YTABC)
|
||||
@echo YTABH set to $(YTABH)
|
||||
!ENDIF
|
||||
|
||||
!IF "$(LEX)"!=""
|
||||
@echo Lex-alike set to $(LEX)
|
||||
@echo LEXYYC set to $(LEXYYC)
|
||||
!ENDIF
|
||||
|
||||
default: all
|
||||
|
||||
all: ..\util\dgn_yacc.c ..\util\dgn_lex.c
|
||||
all: tools ..\util\dgn_yacc.c ..\util\dgn_lex.c
|
||||
|
||||
rebuild: clean all
|
||||
|
||||
@@ -30,6 +25,19 @@ clean:
|
||||
-del ..\util\dgn_yacc.c
|
||||
-del ..\include\dgn_comp.h
|
||||
|
||||
tools:
|
||||
!IFDEF YACC
|
||||
@echo Yacc-alike set to $(YACC)
|
||||
@echo YTABC set to $(YTABC)
|
||||
@echo YTABH set to $(YTABH)
|
||||
!ENDIF
|
||||
|
||||
!IFDEF LEX
|
||||
@echo Lex-alike set to $(LEX)
|
||||
@echo LEXYYC set to $(LEXYYC)
|
||||
!ENDIF
|
||||
|
||||
|
||||
#==========================================
|
||||
# Dungeon Compiler Stuff
|
||||
#==========================================
|
||||
|
||||
@@ -1,26 +1,18 @@
|
||||
# $NHDT-Date$ $NHDT-Branch$:$NHDT-Revision$
|
||||
# $Date:2002/01/22 22:54:54 $ $Revision: 1.2 $
|
||||
#YACC = byacc.exe
|
||||
#LEX = flex.exe
|
||||
#YTABC = y_tab.c
|
||||
#YTABH = y_tab.h
|
||||
#LEXYYC = lexyy.c
|
||||
|
||||
!IF "$(YACC)"!=""
|
||||
@echo Yacc-alike set to $(YACC)
|
||||
@echo YTABC set to $(YTABC)
|
||||
@echo YTABH set to $(YTABH)
|
||||
!ENDIF
|
||||
# Set all of these or none of them.
|
||||
#
|
||||
# bison and flex are the ones found in GnuWin32, which
|
||||
# is probably the easiest set of these tools to find
|
||||
# on Windows.
|
||||
#
|
||||
#YACC = bison.exe -y
|
||||
#LEX = flex.exe
|
||||
#YTABC = y.tab.c
|
||||
#YTABH = y.tab.h
|
||||
#LEXYYC = lex.yy.c
|
||||
|
||||
!IF "$(LEX)"!=""
|
||||
@echo Lex-alike set to $(LEX)
|
||||
@echo LEXYYC set to $(LEXYYC)
|
||||
!ENDIF
|
||||
|
||||
# these won't have an impact unless YACC/LEX are defined
|
||||
YTABC = y.tab.c
|
||||
YTABH = y.tab.h
|
||||
LEXYYC = lex.yy.c
|
||||
|
||||
default: all
|
||||
|
||||
|
||||
Reference in New Issue
Block a user