openh264/module/targets.mk
Martin Storsjö b3f7896a51 Inject STL_INCLUDES via MODULE_INCLUDES for the gmp plugin
This avoids having to rely on manual modifications to targets.mk,
which are overwritten if the targets.mk files are regenerated
via the script.
2014-06-25 08:59:55 +03:00

17 lines
487 B
Makefile

MODULE_SRCDIR=module
MODULE_CPP_SRCS=\
$(MODULE_SRCDIR)/gmp-openh264.cpp\
MODULE_OBJS += $(MODULE_CPP_SRCS:.cpp=.$(OBJ))
OBJS += $(MODULE_OBJS)
$(MODULE_SRCDIR)/%.$(OBJ): $(MODULE_SRCDIR)/%.cpp
$(QUIET_CXX)$(CXX) $(CFLAGS) $(CXXFLAGS) $(INCLUDES) $(MODULE_CFLAGS) $(MODULE_INCLUDES) -c $(CXX_O) $<
$(LIBPREFIX)module.$(LIBSUFFIX): $(MODULE_OBJS)
$(QUIET)rm -f $@
$(QUIET_AR)$(AR) $(AR_OPTS) $+
plugin: $(LIBPREFIX)module.$(LIBSUFFIX)
LIBRARIES += $(LIBPREFIX)module.$(LIBSUFFIX)