Fix the raw win32 makefile system which got broken in r6144 and r6145:

* The lexers depend on the parser's headers so make sure to compile the parsers first
 * Move a misplaced line-wrapping backslash in src/makefile.win32


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6153 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2008-10-14 18:28:21 +00:00
parent 55aaffac40
commit 29d7c7abfd
4 changed files with 36 additions and 16 deletions

View File

@ -5,7 +5,16 @@ CPPFLAGS += -I$(top_srcdir)/lib/sqlite3
include $(top_srcdir)/makerules/common.mk include $(top_srcdir)/makerules/common.mk
# Due to the lexer's dependencies on the parser's header we need to compile the
# parsers first
PARSERS= \
resource_parser.tab.c \
resource_lexer.lex.c \
strres_parser.tab.c \
strres_lexer.lex.c
SRC= \ SRC= \
$(PARSERS) \
configfile.c \ configfile.c \
cursors16.c \ cursors16.c \
cursors32.c \ cursors32.c \
@ -18,13 +27,9 @@ SRC= \
lexer_input.c \ lexer_input.c \
physfs_vfs.c \ physfs_vfs.c \
printf_ext.c \ printf_ext.c \
resource_lexer.lex.c \
resource_parser.tab.c \
SDL_framerate.c \ SDL_framerate.c \
strnlen1.c \ strnlen1.c \
strres.c \ strres.c \
strres_lexer.lex.c \
strres_parser.tab.c \
tagfile.c \ tagfile.c \
treap.c \ treap.c \
trig.c \ trig.c \

View File

@ -3,11 +3,16 @@ top_builddir=$(top_srcdir)
include $(top_srcdir)/makerules/common.mk include $(top_srcdir)/makerules/common.mk
# Due to the lexer's dependencies on the parser's header we need to compile the
# parsers first
PARSERS= \
audp_parser.tab.c \
audp_lexer.lex.c
SRC= \ SRC= \
$(PARSERS) \
anim.c \ anim.c \
animobj.c \ animobj.c \
audp_lexer.lex.c \
audp_parser.tab.c \
gtime.c \ gtime.c \
hashtabl.c hashtabl.c

View File

@ -3,16 +3,21 @@ top_builddir=$(top_srcdir)
include $(top_srcdir)/makerules/common.mk include $(top_srcdir)/makerules/common.mk
SRC= \ # Due to the lexer's dependencies on the parser's header we need to compile the
chat_lexer.lex.c \ # parsers first
PARSERS= \
chat_parser.tab.c \ chat_parser.tab.c \
chat_lexer.lex.c \
script_parser.tab.c \
script_lexer.lex.c
SRC= \
$(PARSERS) \
codeprint.c \ codeprint.c \
event.c \ event.c \
evntsave.c \ evntsave.c \
interp.c \ interp.c \
script.c \ script.c \
script_parser.tab.c \
script_lexer.lex.c \
stack.c stack.c
LIB=script LIB=script

View File

@ -5,7 +5,16 @@ CPPFLAGS += -I$(top_srcdir)/lib/sqlite3
include $(top_srcdir)/makerules/common.mk include $(top_srcdir)/makerules/common.mk
# Due to the lexer's dependencies on the parser's header we need to compile the
# parsers first
PARSERS= \
message_parser.tab.c \
message_lexer.lex.c \
scriptvals_parser.tab.c \
scriptvals_lexer.lex.c
SRC= \ SRC= \
$(PARSERS) \
action.c \ action.c \
advvis.c \ advvis.c \
ai.c \ ai.c \
@ -65,8 +74,6 @@ SRC= \
mapgrid.c \ mapgrid.c \
mechanics.c \ mechanics.c \
message.c \ message.c \
message_lexer.lex.c \
message_parser.tab.c \
miscimd.c \ miscimd.c \
mission.c \ mission.c \
move.c \ move.c \
@ -99,8 +106,6 @@ SRC= \
scriptobj.c \ scriptobj.c \
scripttabs.c \ scripttabs.c \
scriptvals.c \ scriptvals.c \
scriptvals_lexer.lex.c \
scriptvals_parser.tab.c \
selection.c \ selection.c \
seqdisp.c \ seqdisp.c \
stats.c \ stats.c \
@ -112,8 +117,8 @@ SRC= \
version.c \ version.c \
visibility.c \ visibility.c \
warcam.c \ warcam.c \
warzoneconfig.c warzoneconfig.c \
wrappers.c \ wrappers.c
LIBS=$(top_builddir)/lib/libgamelib.a \ LIBS=$(top_builddir)/lib/libgamelib.a \
$(top_builddir)/lib/libivis_common.a \ $(top_builddir)/lib/libivis_common.a \