ranlib cleanup by Dan Christiansen

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12633 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2004-06-24 12:52:17 +00:00
parent 310d9a47c1
commit 0fc20ac930
18 changed files with 18 additions and 15 deletions

View File

@ -27,6 +27,7 @@ OBJS = $(SRCS:.c=.o)
$(LIB): .depend $(OBJS)
rm -f $(LIB)
$(AR) rc $(LIB) $(OBJS) $(MPLAYEROBJS)
$(RANLIB) $(LIB)
all: $(LIB)

View File

@ -208,7 +208,6 @@ OBJS_MPLAYER += mplayer-rc.o
endif
$(PRG): $(MPLAYER_DEP)
./darwinfixlib.sh $(MPLAYER_DEP)
ifeq ($(TARGET_WIN32),yes)
windres -o mplayer-rc.o mplayer.rc
endif
@ -223,12 +222,10 @@ mplayer.exe.so: $(MPLAYER_DEP) mplayer.exe.spec.c
$(CC) $(CFLAGS) -Wall -shared -Wl,-rpath,/usr/local/lib -Wl,-Bsymbolic -o mplayer.exe.so $(OBJS_MPLAYER) mplayer.exe.spec.c libvo/libvo.a libao2/libao2.a $(MENU_LIBS) $(VIDIX_LIBS) $(GUI_LIBS) $(COMMON_LIBS) $(GTK_LIBS) $(VO_LIBS) $(AO_LIBS) $(EXTRA_LIB) $(LIRC_LIB) $(LIRCC_LIB) $(STATIC_LIB) $(ARCH_LIB) -lwine -lm
mplayer_wine.so: $(MPLAYER_DEP)
./darwinfixlib.sh $(MPLAYER_DEP)
$(CC) $(CFLAGS) -shared -Wl,-Bsymbolic -o mplayer_wine.so mplayer_wine.spec.c $(OBJS_MPLAYER) libvo/libvo.a libao2/libao2.a $(MENU_LIBS) $(VIDIX_LIBS) $(GUI_LIBS) $(COMMON_LIBS) $(GTK_LIBS) $(VO_LIBS) $(AO_LIBS) $(EXTRA_LIB) $(LIRC_LIB) $(LIRCC_LIB) $(STATIC_LIB) -lwine $(ARCH_LIB) -lm
ifeq ($(MENCODER),yes)
$(PRG_MENCODER): $(MENCODER_DEP)
./darwinfixlib.sh $(MENCODER_DEP) libmpcodecs/libmpencoders.a
$(CC) $(CFLAGS) -o $(PRG_MENCODER) $(OBJS_MENCODER) libmpcodecs/libmpencoders.a $(ENCORE_LIB) $(COMMON_LIBS) $(EXTRA_LIB) $(MLIB_LIB) $(LIRC_LIB) $(LIRCC_LIB) $(ARCH_LIB) $(I18NLIBS) -lm
endif

2
configure vendored
View File

@ -1892,6 +1892,8 @@ fi
# If IRIX we must use ar instead of ranlib (not present on IRIX systems)
if irix ; then
_ranlib='ar -r'
elif linux ; then
_ranlib='true'
fi
######################

View File

@ -1,11 +0,0 @@
#!/bin/sh
if [ `uname -s` = 'Darwin' ]; then
echo "Fixing libs with ranlib for Darwin (MacOSX)"
for i in $* ; do
if (echo $i | grep \\.a) >/dev/null 2>&1; then
echo "ranlib $i"
(ranlib $i) >/dev/null 2>&1
fi
done
fi
exit 0

View File

@ -16,6 +16,7 @@ CFLAGS = $(OPTFLAGS) -I. -I.. $(EXTRA_INC)
$(LIBNAME): $(OBJS)
$(AR) r $(LIBNAME) $(OBJS)
$(RANLIB) $(LIBNAME)
all: $(LIBNAME)

View File

@ -17,6 +17,7 @@ CFLAGS = $(MLIB_INC) $(OPTFLAGS)
$(LIBNAME): $(OBJS)
$(AR) r $(LIBNAME) $(OBJS)
$(RANLIB) $(LIBNAME)
test: $(LIBNAME) test.c
$(CC) $(CFLAGS) test.c ../cpudetect.c -o test ./liba52.a -lm

View File

@ -19,6 +19,7 @@ endif
$(LIBNAME): $(OBJS) Makefile
$(AR) r $(LIBNAME) $(OBJS)
$(RANLIB) $(LIBNAME)
$(OBJS):af.h control.h dsp.h filter.h window.h af_mp.h

View File

@ -17,6 +17,7 @@ CFLAGS = $(OPTFLAGS) -I. -I.. $(ARTS_INC) $(ESD_INC) $(SDL_INC) $(X11_INC) $(EX
$(LIBNAME): $(OBJS)
$(AR) r $(LIBNAME) $(OBJS)
$(RANLIB) $(LIBNAME)
all: $(LIBNAME)

View File

@ -17,6 +17,7 @@ CFLAGS = -I. $(OPTFLAGS)
$(LIBNAME): $(OBJS)
$(AR) r $(LIBNAME) $(OBJS)
$(RANLIB) $(LIBNAME)
all: $(LIBNAME)

View File

@ -20,6 +20,7 @@ CFLAGS = $(OPTFLAGS) -I. -I.. -I../libmpcodecs $(EXTRA_INC) -Wall
$(LIBNAME): $(OBJS)
$(AR) r $(LIBNAME) $(OBJS)
$(RANLIB) $(LIBNAME)
all: $(LIBNAME)

View File

@ -57,6 +57,7 @@ all: $(LIBNAME)
$(LIBNAME): $(OBJS)
$(AR) r $(LIBNAME) $(OBJS)
$(RANLIB) $(LIBNAME)
test: $(LIBNAME) test.c
$(CC) $(CFLAGS) test.c ../mp_msg.c ../osdep/shmem.c -o test ./libmpdemux.a ../libmpdvdkit2/libmpdvdkit.a ../libvo/aclib.o ../libmpcodecs/img_format.o ../libao2/afmt.o ../sub_cc.o ../m_option.o ../subreader.o $(ALSA_LIB) $(VORBIS_LIB) $(CDPARANOIA_LIB) -lz -lpthread

View File

@ -33,6 +33,7 @@ default: $(LIB).a
$(LIB).a: $(OBJS)
$(AR) rc $(LIB).a $(OBJS)
$(RANLIB) $(LIB).a
$(LIB).so: $(OBJS)
$(CC) -o $(LIB).so -shared -rdynamic $(OBJS)

View File

@ -22,6 +22,7 @@ endif
$(LIBNAME): $(OBJS)
$(AR) r $(LIBNAME) $(OBJS)
$(RANLIB) $(LIBNAME)
all: $(LIBNAME)

View File

@ -36,6 +36,7 @@ ifeq ($(TARGET_OS),OpenBSD)
./loader_objfix.sh
endif
$(AR) -r libloader.a $(LIB_OBJECTS) stubs.o
$(RANLIB) libloader.a
dep:
echo "dependency not required/supported"

View File

@ -47,6 +47,8 @@ decode_i586.o: decode_i586.c
libMP3.a: $(OBJS)
$(AR) r libMP3.a $(OBJS)
$(RANLIB) libMP3.a
test1: libMP3.a test.c
$(CC) $(CFLAGS) test.c ../libvo/aclib.c -o test1 -I.. ./libMP3.a ../mp_msg-mencoder.o ../cpudetect.o -lm

View File

@ -41,6 +41,7 @@ CFLAGS = $(OPTFLAGS) -I. -I.. $(EXTRA_INC)
$(LIBNAME): $(OBJS)
$(AR) r $(LIBNAME) $(OBJS)
$(RANLIB) $(LIBNAME)
all: $(LIBNAME)

View File

@ -20,6 +20,7 @@ all: $(SWSLIB)
$(SWSLIB): $(SWSOBJS)
$(AR) r $(SWSLIB) $(SWSOBJS)
$(RANLIB) $(SWSLIB)
clean:
rm -f *.o *.a *~ *.so cs_test swscale-example

View File

@ -21,7 +21,7 @@ all: $(SUBDIRS) $(LIBNAME)
$(LIBNAME): $(OBJS)
$(AR) r $(LIBNAME) $(OBJS)
$(RANLIB) $(LIBNAME)
clean:
rm -f *.o *.a *~