ref: 0f1f158d8b590d1b2d59895757fe2c921d1f8446
parent: 5e9492cb6e05a0fcd4acf08405c6f3a7fe258921
author: Martin Storsjö <martin@martin.st>
date: Wed Jun 25 05:07:51 EDT 2014
Don't build an unused libmodule.a file This also avoids another manual edit in module/targets.mk. Now the file is completely autogenerated by the build/mktargets.sh script, just as all the other targets.mk files.
--- a/build/mktargets.sh
+++ b/build/mktargets.sh
@@ -11,5 +11,5 @@
python build/mktargets.py --directory test/decoder --prefix decoder_unittest
python build/mktargets.py --directory test/processing --prefix processing_unittest
python build/mktargets.py --directory test/api --prefix api_test
-python build/mktargets.py --directory module --library module
+python build/mktargets.py --directory module --prefix module
python build/mktargets.py --directory gtest --library gtest --out build/gtest-targets.mk --cpp-suffix .cc --include gtest-all.cc
--- a/module/targets.mk
+++ b/module/targets.mk
@@ -8,9 +8,3 @@
$(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)