ref: e0282587d17e32568e95d11a780242fa04c71670
parent: 174f09bd104246f68c5ae68fd6642fb6f814a6bd
parent: bdb837ffaf25f78dbc727b22fd70820bffedb61c
author: sijchen <[email protected]>
date: Wed Nov 18 05:03:42 EST 2015
Merge pull request #2251 from luser/plugin-name add an echo-plugin-name target
--- a/Makefile
+++ b/Makefile
@@ -67,6 +67,7 @@
include $(SRC_PATH)build/platform-$(OS).mk
+MODULE := $(LIBPREFIX)$(MODULE_NAME).$(SHAREDLIBSUFFIX)
CFLAGS += -DGENERATED_VERSION_HEADER
LDFLAGS +=
@@ -226,7 +227,7 @@
endif
ifeq ($(HAVE_GMP_API),Yes)
-plugin: $(LIBPREFIX)$(MODULE_NAME).$(SHAREDLIBSUFFIX)
+plugin: $(MODULE)
LIBRARIES += $(LIBPREFIX)$(MODULE_NAME).$(SHAREDLIBSUFFIXVER)
else
plugin:
@@ -234,12 +235,15 @@
@echo "You do not have gmp-api. Run make gmp-bootstrap to get the gmp-api headers."
endif
+echo-plugin-name:
+ @echo $(MODULE)
+
$(LIBPREFIX)$(MODULE_NAME).$(SHAREDLIBSUFFIXVER): $(MODULE_OBJS) $(ENCODER_OBJS) $(DECODER_OBJS) $(PROCESSING_OBJS) $(COMMON_OBJS)
$(QUIET)rm -f $@
$(QUIET_CXX)$(CXX) $(SHARED) $(CXX_LINK_O) $+ $(LDFLAGS) $(SHLDFLAGS) $(MODULE_LDFLAGS)
ifneq ($(SHAREDLIBSUFFIXVER),$(SHAREDLIBSUFFIX))
-$(LIBPREFIX)$(MODULE_NAME).$(SHAREDLIBSUFFIX): $(LIBPREFIX)$(MODULE_NAME).$(SHAREDLIBSUFFIXVER)
+$(MODULE): $(LIBPREFIX)$(MODULE_NAME).$(SHAREDLIBSUFFIXVER)
$(QUIET)ln -sfn $+ $@
endif