2007-03-13 12:10:57 +00:00
|
|
|
SRCS_COMMON += $(SRCS_COMMON-yes)
|
|
|
|
SRCS_MPLAYER += $(SRCS_MPLAYER-yes)
|
|
|
|
SRCS_MENCODER += $(SRCS_MENCODER-yes)
|
2006-12-01 01:11:42 +00:00
|
|
|
CFLAGS += $(CFLAGS-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
|
|
|
|
|
|
|
CFLAGS += -I. -I.. $(OPTFLAGS)
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|