1 SRCS_COMMON
+= $(SRCS_COMMON-yes
)
2 SRCS_MPLAYER
+= $(SRCS_MPLAYER-yes
)
3 SRCS_MENCODER
+= $(SRCS_MENCODER-yes
)
5 OBJS_COMMON
+= $(addsuffix .o
, $(basename $(SRCS_COMMON
)) )
6 OBJS_MPLAYER
+= $(addsuffix .o
, $(basename $(SRCS_MPLAYER
)) )
7 OBJS_MENCODER
+= $(addsuffix .o
, $(basename $(SRCS_MENCODER
)) )
9 CFLAGS-
$(LIBAVCODEC
) += -I..
/libavcodec
10 CFLAGS-
$(LIBAVFORMAT
) += -I..
/libavformat
11 CFLAGS
+= $(CFLAGS-yes
) $(OPTFLAGS
)
13 LIBS-
$(MPLAYER
) += $(LIBNAME_MPLAYER
)
14 LIBS-
$(MENCODER
) += $(LIBNAME_MENCODER
)
15 LIBS
= $(LIBNAME_COMMON
) $(LIBS-yes
)
19 $(LIBNAME_COMMON
): $(OBJS_COMMON
)
20 $(LIBNAME_MPLAYER
): $(OBJS_MPLAYER
)
21 $(LIBNAME_MENCODER
): $(OBJS_MENCODER
)
22 $(LIBNAME_COMMON
) $(LIBNAME_MPLAYER
) $(LIBNAME_MENCODER
):
30 rm -f .depend
test test2
33 $(CC
) -MM
$(CFLAGS
) $(SRCS_COMMON
) $(SRCS_MPLAYER
) $(SRCS_MENCODER
) 1>.depend
37 .PHONY
: libs
clean distclean dep depend