mirror of https://github.com/mpv-player/mpv
Reuse common parts of all Makefiles through mpcommon.mak.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22567 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5fe6345197
commit
57c3425749
|
@ -3,27 +3,17 @@ include ../config.mak
|
||||||
LIBNAME_MPLAYER = libvidix.a
|
LIBNAME_MPLAYER = libvidix.a
|
||||||
|
|
||||||
SRCS_MPLAYER = vidixlib.c
|
SRCS_MPLAYER = vidixlib.c
|
||||||
OBJS_MPLAYER = $(SRCS_MPLAYER:.c=.o)
|
|
||||||
|
|
||||||
CFLAGS = $(OPTFLAGS)
|
all: libs
|
||||||
|
|
||||||
all: $(LIBNAME_MPLAYER)
|
|
||||||
$(MAKE) -C drivers
|
$(MAKE) -C drivers
|
||||||
|
|
||||||
$(LIBNAME_MPLAYER): $(OBJS_MPLAYER)
|
clean::
|
||||||
$(AR) r $@ $^
|
|
||||||
$(RANLIB) $@
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f *.o *.a *~
|
|
||||||
$(MAKE) -C drivers clean
|
$(MAKE) -C drivers clean
|
||||||
|
|
||||||
distclean: clean
|
distclean::
|
||||||
rm -f .depend
|
|
||||||
$(MAKE) -C drivers distclean
|
$(MAKE) -C drivers distclean
|
||||||
|
|
||||||
dep depend:
|
dep depend::
|
||||||
$(CC) -MM $(CFLAGS) $(SRCS_MPLAYER) 1>.depend
|
|
||||||
$(MAKE) -C drivers depend
|
$(MAKE) -C drivers depend
|
||||||
|
|
||||||
-include .depend
|
include ../mpcommon.mak
|
||||||
|
|
Loading…
Reference in New Issue