summaryrefslogtreecommitdiff
path: root/common.mak
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-03-26 01:11:11 +0100
committerDiego Biurrun <diego@biurrun.de>2016-12-22 11:07:50 +0100
commit11a9320de54759340531177c9f2b1e31e6112cc2 (patch)
treea445b225d8690ce46f214a8ebe49ddac4f696a48 /common.mak
parentf9edc734e0ca3f6ef06c1ad0bd2c19c0c66f1ffa (diff)
downloadffmpeg-11a9320de54759340531177c9f2b1e31e6112cc2.tar.gz
build: Move build-system-related helper files to a separate subdirectory
This unclutters the top-level directory and groups related files together.
Diffstat (limited to 'common.mak')
-rw-r--r--common.mak63
1 files changed, 0 insertions, 63 deletions
diff --git a/common.mak b/common.mak
deleted file mode 100644
index 70ebd4b7ab..0000000000
--- a/common.mak
+++ /dev/null
@@ -1,63 +0,0 @@
-#
-# common bits used by all libraries
-#
-
-include $(SRC_PATH)/arch.mak
-
-OBJS += $(OBJS-yes)
-FFLIBS := $($(NAME)_FFLIBS) $(FFLIBS-yes) $(FFLIBS)
-TESTPROGS += $(TESTPROGS-yes)
-
-FFEXTRALIBS := $(FFLIBS:%=$(LD_LIB)) $(EXTRALIBS)
-
-OBJS := $(sort $(OBJS:%=$(SUBDIR)%))
-TESTOBJS := $(TESTOBJS:%=$(SUBDIR)tests/%) $(TESTPROGS:%=$(SUBDIR)tests/%.o)
-TESTPROGS := $(TESTPROGS:%=$(SUBDIR)tests/%$(EXESUF))
-HOSTOBJS := $(HOSTPROGS:%=$(SUBDIR)%.o)
-HOSTPROGS := $(HOSTPROGS:%=$(SUBDIR)%$(HOSTEXESUF))
-TOOLS += $(TOOLS-yes)
-TOOLOBJS := $(TOOLS:%=tools/%.o)
-TOOLS := $(TOOLS:%=tools/%$(EXESUF))
-HEADERS += $(HEADERS-yes)
-
-PATH_LIBNAME = $(foreach NAME,$(1),lib$(NAME)/$($(2)LIBNAME))
-DEP_LIBS := $(foreach lib,$(FFLIBS),$(call PATH_LIBNAME,$(lib),$(CONFIG_SHARED:yes=S)))
-STATIC_DEP_LIBS := $(foreach lib,$(FFLIBS),$(call PATH_LIBNAME,$(lib)))
-
-SRC_DIR := $(SRC_PATH)/lib$(NAME)
-ALLHEADERS := $(subst $(SRC_DIR)/,$(SUBDIR),$(wildcard $(SRC_DIR)/*.h $(SRC_DIR)/$(ARCH)/*.h))
-SKIPHEADERS += $(ARCH_HEADERS:%=$(ARCH)/%) $(SKIPHEADERS-)
-SKIPHEADERS := $(SKIPHEADERS:%=$(SUBDIR)%)
-HOBJS = $(filter-out $(SKIPHEADERS:.h=.h.o),$(ALLHEADERS:.h=.h.o))
-$(HOBJS): CCFLAGS += $(CFLAGS_HEADERS)
-checkheaders: $(HOBJS)
-.SECONDARY: $(HOBJS:.o=.c)
-
-alltools: $(TOOLS)
-
-$(HOSTOBJS): %.o: %.c
- $(COMPILE_HOSTC)
-
-$(HOSTPROGS): %$(HOSTEXESUF): %.o
- $(HOSTLD) $(HOSTLDFLAGS) $(HOSTLD_O) $^ $(HOSTEXTRALIBS)
-
-$(OBJS): | $(sort $(dir $(OBJS)))
-$(HOBJS): | $(sort $(dir $(HOBJS)))
-$(HOSTOBJS): | $(sort $(dir $(HOSTOBJS)))
-$(TESTOBJS): | $(sort $(dir $(TESTOBJS)))
-$(TOOLOBJS): | tools
-
-OBJDIRS := $(OBJDIRS) $(dir $(OBJS) $(HOBJS) $(HOSTOBJS) $(TESTOBJS))
-
-CLEANSUFFIXES = *.d *.o *~ *.h.c *.gcda *.gcno *.map *.ver
-DISTCLEANSUFFIXES = *.pc
-LIBSUFFIXES = *.a *.lib *.so *.so.* *.dylib *.dll *.def *.dll.a
-
-define RULES
-clean::
- $(RM) $(HOSTPROGS) $(TESTPROGS) $(TOOLS)
-endef
-
-$(eval $(RULES))
-
--include $(wildcard $(OBJS:.o=.d) $(HOSTOBJS:.o=.d) $(TESTOBJS:.o=.d) $(HOBJS:.o=.d))