mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 12:02:23 +02:00
Move common code for generating multiple libraries to mpcommon.mak.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21303 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
42bf94ecc7
commit
e6b3cc9b3d
@ -2,11 +2,8 @@
|
|||||||
include ../config.mak
|
include ../config.mak
|
||||||
|
|
||||||
LIBNAME = libmpcodecs.a
|
LIBNAME = libmpcodecs.a
|
||||||
LIBNAME2 = libmpencoders.a
|
|
||||||
|
|
||||||
LIBS =$(LIBNAME)
|
|
||||||
ifeq ($(MENCODER),yes)
|
ifeq ($(MENCODER),yes)
|
||||||
LIBS+=$(LIBNAME2)
|
LIBNAME2 = libmpencoders.a
|
||||||
endif
|
endif
|
||||||
|
|
||||||
SRCS = native/minilzo.c \
|
SRCS = native/minilzo.c \
|
||||||
@ -176,12 +173,6 @@ CFLAGS = -I.. \
|
|||||||
|
|
||||||
include ../mpcommon.mak
|
include ../mpcommon.mak
|
||||||
|
|
||||||
all: $(LIBS)
|
|
||||||
|
|
||||||
$(LIBNAME2): $(OBJS2)
|
|
||||||
$(AR) r $@ $^
|
|
||||||
$(RANLIB) $@
|
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
rm -f native/*.o native/*.a native/*~
|
rm -f native/*.o native/*.a native/*~
|
||||||
|
|
||||||
|
@ -1,12 +1,9 @@
|
|||||||
|
|
||||||
include ../config.mak
|
include ../config.mak
|
||||||
|
|
||||||
LIBNAME = libvo.a
|
|
||||||
LIBNAME2 = libosd.a
|
LIBNAME2 = libosd.a
|
||||||
|
|
||||||
LIBS =$(LIBNAME2)
|
|
||||||
ifeq ($(MPLAYER),yes)
|
ifeq ($(MPLAYER),yes)
|
||||||
LIBS+=$(LIBNAME)
|
LIBNAME = libvo.a
|
||||||
endif
|
endif
|
||||||
|
|
||||||
SRCS=aspect.c \
|
SRCS=aspect.c \
|
||||||
@ -45,9 +42,3 @@ include ../mpcommon.mak
|
|||||||
|
|
||||||
.m.o:
|
.m.o:
|
||||||
$(CC) -c $(CFLAGS) -o $@ $<
|
$(CC) -c $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
all: $(LIBS)
|
|
||||||
|
|
||||||
$(LIBNAME2): $(OBJS2)
|
|
||||||
$(AR) r $@ $^
|
|
||||||
$(RANLIB) $@
|
|
||||||
|
@ -10,12 +10,18 @@ CFLAGS += -I. -I.. $(OPTFLAGS)
|
|||||||
.c.o:
|
.c.o:
|
||||||
$(CC) -c $(CFLAGS) -o $@ $<
|
$(CC) -c $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
all: $(LIBNAME)
|
LIBS = $(LIBNAME) $(LIBNAME2)
|
||||||
|
|
||||||
|
all: $(LIBS)
|
||||||
|
|
||||||
$(LIBNAME): $(OBJS)
|
$(LIBNAME): $(OBJS)
|
||||||
$(AR) r $@ $^
|
$(AR) r $@ $^
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
|
$(LIBNAME2): $(OBJS2)
|
||||||
|
$(AR) r $@ $^
|
||||||
|
$(RANLIB) $@
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
rm -f *.o *.a *~
|
rm -f *.o *.a *~
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user