view mpcommon.mak @ 22693:b73dca7dbb0f

allow horizontal resolutions >1024 in case we have a G550 (actualy in case mga_vid doesn't deny it)
author attila
date Sun, 18 Mar 2007 11:03:34 +0000
parents 974f5ffb5097
children 97ad9cecc6d9
line wrap: on
line source

SRCS_COMMON          += $(SRCS_COMMON-yes)
SRCS_MPLAYER         += $(SRCS_MPLAYER-yes)
SRCS_MENCODER        += $(SRCS_MENCODER-yes)
CFLAGS       += $(CFLAGS-yes)

OBJS_COMMON    = $(addsuffix .o, $(basename $(SRCS_COMMON)) )
OBJS_MPLAYER   = $(addsuffix .o, $(basename $(SRCS_MPLAYER)) )
OBJS_MENCODER  = $(addsuffix .o, $(basename $(SRCS_MENCODER)) )

CFLAGS += -I. -I.. $(OPTFLAGS)

LIBS-$(MPLAYER)  += $(LIBNAME_MPLAYER)
LIBS-$(MENCODER) += $(LIBNAME_MENCODER)
LIBS              = $(LIBNAME_COMMON) $(LIBS-yes)

libs: $(LIBS)

$(LIBNAME_COMMON):   $(OBJS_COMMON)
$(LIBNAME_MPLAYER):  $(OBJS_MPLAYER)
$(LIBNAME_MENCODER): $(OBJS_MENCODER)
$(LIBNAME_COMMON) $(LIBNAME_MPLAYER) $(LIBNAME_MENCODER):
	$(AR) r $@ $^
	$(RANLIB) $@

clean::
	rm -f *.o *.a *~

distclean:: clean
	rm -f .depend

dep depend::
	$(CC) -MM $(CFLAGS) $(SRCS_COMMON) $(SRCS_MPLAYER) $(SRCS_MENCODER) 1>.depend

-include .depend

.PHONY: libs clean distclean dep depend