build: simplify enabling of compat objects

Add a configure function to pull in a compat object and set up
redirects in one operation.  This avoids duplicating conditions
across configure and makefiles.

Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
Mans Rullgard
2012-10-14 17:56:00 +01:00
parent 66a1ccd746
commit 84e65c763d
2 changed files with 12 additions and 6 deletions

View File

@@ -88,8 +88,7 @@ OBJS = adler32.o \
utils.o \
xtea.o \
OBJS-$(HAVE_MSVCRT) += ../compat/msvcrt/snprintf.o \
../compat/strtod.o
OBJS += $(COMPAT_OBJS:%=../compat/%)
SKIPHEADERS = old_pix_fmts.h