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-31 23:33:30 +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-04-25 08:35:35 +00:00
|
|
|
CFLAGS-$(LIBAVCODEC) += -I../libavcodec
|
|
|
|
CFLAGS-$(LIBAVFORMAT) += -I../libavformat
|
2007-03-26 22:03:43 +00:00
|
|
|
CFLAGS += $(CFLAGS-yes) $(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
|
2007-03-24 15:03:57 +00:00
|
|
|
rm -f .depend test test2
|
2006-11-26 18:12:36 +00:00
|
|
|
|
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
|