LIBSUBDIRS = libavcodec libavformat
.PHONY:	${LIBSUBDIRS}

ifeq (.${TOPDIR}.,..)
all:
	${MAKE} -C .. ffmpeg
else
all:	${LIBSUBDIRS}
endif


${LIBSUBDIRS}:
	${MAKE} -C $@ TOPDIR=${TOPDIR}/..

clean:
	for i in ${LIBSUBDIRS} ; do ${MAKE} -C $$i $@ ; done
	@-rm config.h config.log config.mak

install:	all

