2007-03-13 12:10:57 +00:00
|
|
|
SRCS_COMMON += $(SRCS_COMMON-yes)
|
|
|
|
SRCS_MPLAYER += $(SRCS_MPLAYER-yes)
|
|
|
|
SRCS_MENCODER += $(SRCS_MENCODER-yes)
|
2006-11-27 13:32:24 +00:00
|
|
|
|
2007-03-13 12:10:57 +00:00
|
|
|
OBJS_COMMON = $(addsuffix .o, $(basename $(SRCS_COMMON)) )
|
|
|
|
OBJS_MPLAYER = $(addsuffix .o, $(basename $(SRCS_MPLAYER)) )
|
|
|
|
OBJS_MENCODER = $(addsuffix .o, $(basename $(SRCS_MENCODER)) )
|
2006-11-26 18:12:36 +00:00
|
|
|
|
2007-03-18 22:49:37 +00:00
|
|
|
CFLAGS-$(CONFIG_LIBAVUTIL) += -I../libavutil
|
|
|
|
CFLAGS-$(CONFIG_LIBAVCODEC) += -I../libavcodec
|
|
|
|
CFLAGS-$(CONFIG_LIBAVFORMAT) += -I../libavformat
|
2007-03-18 22:11:32 +00:00
|
|
|
CFLAGS += $(CFLAGS-yes) -I. -I.. $(OPTFLAGS)
|
2006-11-26 18:12:36 +00:00
|
|
|
|
2007-03-13 12:10:57 +00:00
|
|
|
LIBS-$(MPLAYER) += $(LIBNAME_MPLAYER)
|
|
|
|
LIBS-$(MENCODER) += $(LIBNAME_MENCODER)
|
|
|
|
LIBS = $(LIBNAME_COMMON) $(LIBS-yes)
|
2006-11-27 01:40:39 +00:00
|
|
|
|
2007-03-13 10:14:05 +00:00
|
|
|
libs: $(LIBS)
|
2006-11-26 18:12:36 +00:00
|
|
|
|
2007-03-13 12:10:57 +00:00
|
|
|
$(LIBNAME_COMMON): $(OBJS_COMMON)
|
|
|
|
$(LIBNAME_MPLAYER): $(OBJS_MPLAYER)
|
|
|
|
$(LIBNAME_MENCODER): $(OBJS_MENCODER)
|
|
|
|
$(LIBNAME_COMMON) $(LIBNAME_MPLAYER) $(LIBNAME_MENCODER):
|
2006-11-27 01:40:39 +00:00
|
|
|
$(AR) r $@ $^
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
2006-11-26 18:12:36 +00:00
|
|
|
clean::
|
|
|
|
rm -f *.o *.a *~
|
|
|
|
|
|
|
|
distclean:: clean
|
|
|
|
rm -f .depend
|
|
|
|
|
2007-03-13 23:55:10 +00:00
|
|
|
dep depend::
|
2007-03-13 12:10:57 +00:00
|
|
|
$(CC) -MM $(CFLAGS) $(SRCS_COMMON) $(SRCS_MPLAYER) $(SRCS_MENCODER) 1>.depend
|
2006-11-26 18:12:36 +00:00
|
|
|
|
2007-02-24 10:44:16 +00:00
|
|
|
-include .depend
|
2007-03-12 23:26:02 +00:00
|
|
|
|
2007-03-13 10:14:05 +00:00
|
|
|
.PHONY: libs clean distclean dep depend
|