From 01469bc45a0b95fe56c7ece3c5a5e988f352f00e Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sun, 24 Feb 2013 16:05:52 +0000 Subject: [PATCH] Lunatic Makefile.deps: make game.c depend on defs.ilua. Since the size of defs.ilua's bytecode is used in game.c. git-svn-id: https://svn.eduke32.com/eduke32@3521 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/Makefile.deps | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/Makefile.deps b/polymer/eduke32/Makefile.deps index 090fc281c..8afc39452 100644 --- a/polymer/eduke32/Makefile.deps +++ b/polymer/eduke32/Makefile.deps @@ -31,7 +31,12 @@ duke3d_h=\ gamedef_h=$(SRC)/gamedef.h $(SRC)/gameexec.h $(SRC)/gamevars.h -$(OBJ)/game.$o: $(SRC)/game.c $(SRC)/jmact/scriplib.h $(duke3d_h) $(SRC)/input.h $(INC)/osdfuncs.h $(INC)/osdcmds.h $(INC)/grpscan.h $(INC)/demo.h $(EINC)/hightile.h +game_defs_dep= +ifneq ($(LUNATIC),0) + game_defs_dep=$(SRC)/lunatic/defs.ilua +endif + +$(OBJ)/game.$o: $(SRC)/game.c $(game_defs_dep) $(SRC)/jmact/scriplib.h $(duke3d_h) $(SRC)/input.h $(INC)/osdfuncs.h $(INC)/osdcmds.h $(INC)/grpscan.h $(INC)/demo.h $(EINC)/hightile.h $(OBJ)/actors.$o: $(SRC)/actors.c $(duke3d_h) $(OBJ)/anim.$o: $(SRC)/anim.c $(duke3d_h) $(SRC)/input.h $(SRC)/jmact/animlib.h $(SRC)/animvpx.h $(OBJ)/demo.$o: $(SRC)/demo.c $(duke3d_h) $(SRC)/input.h