since Elbereth doesn't work if you're not on the square anymore, we need to make sure that critters are discouraged from grabbing the sokoban prize or the castle wand. also, fix up the level compiler makefiles so that uncommenting the YACC/LEX definitions (presuming you have the right tools installed) works properly.
71 lines
1.5 KiB
Makefile
71 lines
1.5 KiB
Makefile
# $NHDT-Date$ $NHDT-Branch$:$NHDT-Revision$
|
|
# $Date: 2002/01/22 22:54:54 $ $Revision: 1.3 $
|
|
|
|
# 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
|
|
|
|
|
|
default: all
|
|
|
|
all: tools ..\util\dgn_yacc.c ..\util\dgn_lex.c
|
|
|
|
rebuild: clean all
|
|
|
|
clean:
|
|
-del ..\util\dgn_lex.c
|
|
-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
|
|
#==========================================
|
|
|
|
..\util\dgn_yacc.c ..\include\dgn_comp.h : ..\util\dgn_comp.y
|
|
!IF "$(YACC)"==""
|
|
@echo Using pre-built dgn_yacc.c and dgn_comp.h
|
|
@copy ..\sys\share\dgn_yacc.c ..\util\dgn_yacc.c
|
|
@copy ..\sys\share\dgn_comp.h ..\include\dgn_comp.h
|
|
!ELSE
|
|
chdir ..\util
|
|
$(YACC) -d dgn_comp.y
|
|
copy $(YTABC) $@
|
|
copy $(YTABH) ..\include\dgn_comp.h
|
|
@del $(YTABC)
|
|
@del $(YTABH)
|
|
chdir ..\build
|
|
!ENDIF
|
|
|
|
..\util\dgn_lex.c: ..\util\dgn_comp.l
|
|
!IF "$(LEX)"==""
|
|
@echo Using pre-built dgn_lex.c
|
|
@copy ..\sys\share\dgn_lex.c $@
|
|
!ELSE
|
|
chdir ..\util
|
|
$(LEX) dgn_comp.l
|
|
copy $(LEXYYC) $@
|
|
@del $(LEXYYC)
|
|
chdir ..\build
|
|
!ENDIF
|