aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-03-01 19:52:32 +0100
committerDiego Biurrun <diego@biurrun.de>2013-03-27 14:49:13 +0100
commit7c22d0489fa4bf0e74ae45725007dcba5028cb04 (patch)
treee126a1ede960443d0f4473d658601555a85efd31
parentb4d24b471bc52f1f78a43ee330199e70483e51c3 (diff)
downloadffmpeg-7c22d0489fa4bf0e74ae45725007dcba5028cb04.tar.gz
build: Move setting of SRC_DIR to the only place it is used
-rw-r--r--common.mak1
-rw-r--r--library.mak2
2 files changed, 1 insertions, 2 deletions
diff --git a/common.mak b/common.mak
index b134835187..d3c6b9f694 100644
--- a/common.mak
+++ b/common.mak
@@ -27,6 +27,7 @@ HEADERS += $(HEADERS-yes)
DEP_LIBS := $(foreach NAME,$(FFLIBS),lib$(NAME)/$($(CONFIG_SHARED:yes=S)LIBNAME))
+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)%)
diff --git a/library.mak b/library.mak
index f3e44273f7..88d33dccfc 100644
--- a/library.mak
+++ b/library.mak
@@ -1,5 +1,3 @@
-SRC_DIR := $(SRC_PATH)/lib$(NAME)
-
include $(SRC_PATH)/common.mak
LIBVERSION := $(lib$(NAME)_VERSION)