remove useless casts
[mplayer/glamo.git] / mpcommon.mak
blob0364ab4b753d4e3bbc10685f20c4a1d3281d5db8
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)
17 libs: $(LIBS)
19 $(LIBNAME_COMMON): $(OBJS_COMMON)
20 $(LIBNAME_MPLAYER): $(OBJS_MPLAYER)
21 $(LIBNAME_MENCODER): $(OBJS_MENCODER)
22 $(LIBNAME_COMMON) $(LIBNAME_MPLAYER) $(LIBNAME_MENCODER):
23 $(AR) r $@ $^
24 $(RANLIB) $@
26 clean::
27 rm -f *.o *.a *~
29 distclean:: clean
30 rm -f .depend test test2
32 dep depend::
33 $(CC) -MM $(CFLAGS) $(SRCS_COMMON) $(SRCS_MPLAYER) $(SRCS_MENCODER) 1>.depend
35 -include .depend
37 .PHONY: libs clean distclean dep depend