1 # $NHDT-Date: 1524689255 2018/04/25 20:47:35 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.12 $
2 # Copyright (c) 2018 by Michael Allison
3 # NetHack may be freely redistributed. See license for details.
5 # Set all of these or none of them.
7 # bison and flex are the ones found in GnuWin32, which
8 # is probably the easiest set of these tools to find
20 all: tools ../util/dgn_yacc.c ../util/dgn_lex.c
25 -del ..\util\dgn_lex.c
26 -del ..\util\dgn_yacc.c
27 -del ..\include\dgn_comp.h
31 @echo Yacc-alike set to $(YACC)
32 @echo YTABC set to $(YTABC)
33 @echo YTABH set to $(YTABH)
37 @echo Lex-alike set to $(LEX)
38 @echo LEXYYC set to $(LEXYYC)
41 #==========================================
42 # Dungeon Compiler Stuff
43 #==========================================
45 ../include/dgn_comp.h : ../util/dgn_comp.y
47 @echo Using pre-built dgn_comp.h
49 copy /y ..\sys\share\dgn_comp.h
56 copy $(YTABH) ..\include\dgn_comp.h
62 ../util/dgn_yacc.c : ../util/dgn_comp.y
64 @echo Using pre-built dgn_yacc.c
66 copy /y ..\sys\share\dgn_yacc.c
73 copy $(YTABH) ..\include\dgn_comp.h
79 ../util/dgn_lex.c: ../util/dgn_comp.l
81 @echo Using pre-built dgn_lex.c
83 copy /y ..\sys\share\dgn_lex.c