aryanrawlani28 4f55c1b689 DIRECTOR & KYRA: MODULES: Use workarounds to skip warnings.
- When these files are included for the second time, a warning is shown that the previous recipes will be overriden.
- Use_Rules helps with a workaround to disable these warnings.
2020-10-03 14:56:36 +02:00

60 lines
1.1 KiB
Makefile

MODULE := engines/director
MODULE_OBJS = \
archive.o \
cast.o \
castmember.o \
channel.o \
cursor.o \
director.o \
events.o \
frame.o \
graphics.o \
images.o \
metaengine.o \
movie.o \
resource.o \
score.o \
sound.o \
sprite.o \
stxt.o \
tests.o \
transitions.o \
util.o \
window.o \
lingo/lingo.o \
lingo/lingo-builtins.o \
lingo/lingo-bytecode.o \
lingo/lingo-code.o \
lingo/lingo-codegen.o \
lingo/lingo-events.o \
lingo/lingo-funcs.o \
lingo/lingo-gr.o \
lingo/lingo-lex.o \
lingo/lingo-object.o \
lingo/lingo-patcher.o \
lingo/lingo-preprocessor.o \
lingo/lingo-the.o \
lingo/xlibs/fileio.o \
lingo/xlibs/flushxobj.o \
lingo/xlibs/palxobj.o \
lingo/xlibs/winxobj.o
# HACK: Skip this when including the file for detection objects.
ifeq "$(USE_RULES)" "1"
director-grammar:
`brew --prefix flex`/bin/flex engines/director/lingo/lingo-lex.l
`brew --prefix bison`/bin/bison -dv engines/director/lingo/lingo-gr.y
endif
# This module can be built as a plugin
ifeq ($(ENABLE_DIRECTOR), DYNAMIC_PLUGIN)
PLUGIN := 1
endif
# Include common rules
include $(srcdir)/rules.mk
# Detection objects
DETECT_OBJS += $(MODULE)/detection.o