SKIPHEADERS = cmdutils_common_opts.h
-include common.mak
+include $(SRC_PATH)/common.mak
FF_LDFLAGS := $(FFLDFLAGS)
FF_EXTRALIBS := $(FFEXTRALIBS)
define DOSUBDIR
$(foreach V,$(SUBDIR_VARS),$(eval $(call RESET,$(V))))
SUBDIR := $(1)/
-include $(1)/Makefile
+include $(SRC_PATH)/$(1)/Makefile
endef
$(foreach D,$(FFLIBS),$(eval $(call DOSUBDIR,lib$(D))))
check: test checkheaders
-include doc/Makefile
-include tests/Makefile
+include $(SRC_PATH)/doc/Makefile
+include $(SRC_PATH)/tests/Makefile
# Dummy rule to stop make trying to rebuild removed or renamed headers
%.h:
"
FILES="
Makefile
- common.mak
- subdir.mak
- doc/Makefile
doc/texi2pod.pl
- libavcodec/Makefile
- libavcodec/${arch}/Makefile
- libavdevice/Makefile
- libavfilter/Makefile
- libavfilter/${arch}/Makefile
- libavformat/Makefile
- libavutil/Makefile
- libpostproc/Makefile
- libswscale/Makefile
- tests/Makefile
"
map 'mkdir -p $v' $DIRS;
- map 'test -f "$source_path/$v" && $ln_s "$source_path/$v" $v' $FILES
+ map '$ln_s "$source_path/$v" $v' $FILES
fi
config_files="$TMPH config.mak"
# well.
OBJS-$(!CONFIG_SMALL) += inverse.o
--include $(SUBDIR)$(ARCH)/Makefile
+-include $(SRC_PATH)/$(SUBDIR)$(ARCH)/Makefile
SKIPHEADERS += %_tablegen.h \
%_tables.h \
CLEANFILES = *_tables.c *_tables.h *_tablegen$(HOSTEXESUF)
-include $(SUBDIR)../subdir.mak
+include $(SRC_PATH)/subdir.mak
$(SUBDIR)dct-test$(EXESUF): $(SUBDIR)dctref.o
SKIPHEADERS-$(HAVE_ALSA_ASOUNDLIB_H) += alsa-audio.h
SKIPHEADERS-$(HAVE_SNDIO_H) += sndio_common.h
-include $(SUBDIR)../subdir.mak
+include $(SRC_PATH)/subdir.mak
OBJS-$(CONFIG_NULLSINK_FILTER) += vsink_nullsink.o
--include $(SUBDIR)$(ARCH)/Makefile
+-include $(SRC_PATH)/$(SUBDIR)$(ARCH)/Makefile
DIRS = x86
-include $(SUBDIR)../subdir.mak
+include $(SRC_PATH)/subdir.mak
EXAMPLES = output
TESTPROGS = timefilter
-include $(SUBDIR)../subdir.mak
+include $(SRC_PATH)/subdir.mak
$(SUBDIR)output-example$(EXESUF): ELIBS = -lswscale
ARCH_HEADERS = bswap.h intmath.h intreadwrite.h timer.h
-include $(SUBDIR)../subdir.mak
+include $(SRC_PATH)/subdir.mak
$(SUBDIR)lzo-test$(EXESUF): ELIBS = -llzo2
OBJS = postprocess.o
-include $(SUBDIR)../subdir.mak
+include $(SRC_PATH)/subdir.mak
DIRS = bfin mlib ppc sparc x86
-include $(SUBDIR)../subdir.mak
+include $(SRC_PATH)/subdir.mak
SRC_DIR := $(SRC_PATH)/lib$(NAME)
-include $(SUBDIR)../common.mak
+include $(SRC_PATH)/common.mak
LIBVERSION := $(lib$(NAME)_VERSION)
LIBMAJOR := $(lib$(NAME)_VERSION_MAJOR)