Mercurial > mplayer.hg
diff stream/Makefile @ 21259:92b122592776
Merge common parts of all Makefiles into one file included by all.
author | diego |
---|---|
date | Sun, 26 Nov 2006 18:12:36 +0000 |
parents | 68df3b19a160 |
children | d4f6e0e5de2e |
line wrap: on
line diff
--- a/stream/Makefile Sun Nov 26 18:06:11 2006 +0000 +++ b/stream/Makefile Sun Nov 26 18:12:36 2006 +0000 @@ -130,35 +130,11 @@ SRCS += dvb_tune.c endif -OBJS = $(SRCS:.c=.o) -INCLUDE = -I.. -I../loader $(LIBAV_INC) -CFLAGS = $(INCLUDE) $(OPTFLAGS) - -.SUFFIXES: .c .o - -# .PHONY: all clean - -all: $(LIBNAME) +CFLAGS = -I../loader $(LIBAV_INC) -.c.o: - $(CC) -c $(CFLAGS) -o $@ $< +include ../mpcommon.mak -$(LIBNAME): $(OBJS) - $(AR) r $(LIBNAME) $(OBJS) - $(RANLIB) $(LIBNAME) - -clean: - rm -f *.o *.a *~ \ - realrtsp/*.o realrtsp/*.a realrtsp/*~ \ +clean:: + rm -f realrtsp/*.o realrtsp/*.a realrtsp/*~ \ librtsp/*.o librtsp/*.a librtsp/*~ \ freesdp/*.o freesdp/*.a freesdp/*~ - -distclean: clean - rm -f .depend - -dep depend: - $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend - -ifneq ($(wildcard .depend),) -include .depend -endif