1 # $ANH-Date$ $ANH-Branch$:$ANH-Revision$
3 # Set all of these or none of them.
5 # bison and flex are the ones found in GnuWin32, which
6 # is probably the easiest set of these tools to find
18 all: tools ..\util\dgn_yacc.c ..\util\dgn_lex.c
23 -del ..\util\dgn_lex.c
24 -del ..\util\dgn_yacc.c
25 -del ..\
include\dgn_comp.h
29 @echo Yacc-alike set to
$(YACC
)
30 @echo YTABC set to
$(YTABC
)
31 @echo YTABH set to
$(YTABH
)
35 @echo Lex-alike set to
$(LEX
)
36 @echo LEXYYC set to
$(LEXYYC
)
40 #==========================================
41 # Dungeon Compiler Stuff
42 #==========================================
44 ..\util\dgn_yacc.c ..\
include\dgn_comp.h
: ..\util\dgn_comp.y
46 @echo Using pre-built dgn_yacc.c and dgn_comp.h
47 @copy ..\sys\share\dgn_yacc.c ..\util\dgn_yacc.c
48 @copy ..\sys\share\dgn_comp.h ..\
include\dgn_comp.h
53 copy
$(YTABH
) ..\
include\dgn_comp.h
59 ..\util\dgn_lex.c
: ..\util\dgn_comp.l
61 @echo Using pre-built dgn_lex.c
62 @copy ..\sys\share\dgn_lex.c
$@