Skip to content

Commit

Permalink
Rename LIB to LIBNAME for consistency.
Browse files Browse the repository at this point in the history
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10774 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
  • Loading branch information
diego committed Oct 18, 2007
1 parent 812ff6a commit 80aa377
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions common.mak
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ OBJS := $(OBJS) $(ASM_OBJS) $(CPPOBJS)
STATIC_OBJS := $(OBJS) $(STATIC_OBJS)
SHARED_OBJS := $(OBJS) $(SHARED_OBJS)

all: $(LIB) $(SLIBNAME)
all: $(LIBNAME) $(SLIBNAME)

$(LIB): $(STATIC_OBJS)
$(LIBNAME): $(STATIC_OBJS)
rm -f $@
$(AR) rc $@ $^ $(EXTRAOBJS)
$(RANLIB) $@
Expand All @@ -39,7 +39,7 @@ $(SLIBNAME_WITH_MAJOR): $(SHARED_OBJS)
%.o: %.S
$(CC) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $<

%: %.o $(LIB)
%: %.o $(LIBNAME)
$(CC) $(LDFLAGS) -o $@ $^ $(EXTRALIBS)

%.ho: %.h
Expand Down Expand Up @@ -79,9 +79,9 @@ install-lib-shared: $(SLIBNAME)
$(LN_S) $(SLIBNAME_WITH_VERSION) $(SLIBNAME)
$(SLIB_INSTALL_EXTRA_CMD)

install-lib-static: $(LIB)
install-lib-static: $(LIBNAME)
install -d "$(LIBDIR)"
install -m 644 $(LIB) "$(LIBDIR)"
install -m 644 $(LIBNAME) "$(LIBDIR)"
$(LIB_INSTALL_EXTRA_CMD)

install-headers:
Expand All @@ -97,7 +97,7 @@ uninstall-libs:
"$(SHLIBDIR)/$(SLIBNAME)" \
"$(SHLIBDIR)/$(SLIBNAME_WITH_VERSION)"
-$(SLIB_UNINSTALL_EXTRA_CMD)
-rm -f "$(LIBDIR)/$(LIB)"
-rm -f "$(LIBDIR)/$(LIBNAME)"

uninstall-headers::
rm -f $(addprefix "$(INCDIR)/",$(HEADERS))
Expand Down
8 changes: 4 additions & 4 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -894,13 +894,13 @@ FFSERVERLDFLAGS=-Wl,-E
LDCONFIG="ldconfig"
LIBPREF="lib"
LIBSUF=".a"
LIB='$(LIBPREF)$(NAME)$(LIBSUF)'
LIBNAME='$(LIBPREF)$(NAME)$(LIBSUF)'
SLIBPREF="lib"
SLIBSUF=".so"
SLIBNAME='$(SLIBPREF)$(NAME)$(SLIBSUF)'
SLIBNAME_WITH_VERSION='$(SLIBNAME).$(LIBVERSION)'
SLIBNAME_WITH_MAJOR='$(SLIBNAME).$(LIBMAJOR)'
LIB_INSTALL_EXTRA_CMD='$(RANLIB) "$(LIBDIR)/$(LIB)"'
LIB_INSTALL_EXTRA_CMD='$(RANLIB) "$(LIBDIR)/$(LIBNAME)"'

# find source path
source_path="`dirname \"$0\"`"
Expand Down Expand Up @@ -1247,7 +1247,7 @@ EOF
fi

if disabled static; then
LIB=""
LIBNAME=""
fi

if ! enabled libogg; then
Expand Down Expand Up @@ -1865,7 +1865,7 @@ echo "BUILD_STATIC=$static" >> config.mak
echo "BUILDSUF=$BUILDSUF" >> config.mak
echo "LIBPREF=$LIBPREF" >> config.mak
echo "LIBSUF=\$(BUILDSUF)$LIBSUF" >> config.mak
echo "LIB=$LIB" >> config.mak
echo "LIBNAME=$LIBNAME" >> config.mak
echo "SLIBPREF=$SLIBPREF" >> config.mak
echo "SLIBSUF=\$(BUILDSUF)$SLIBSUF" >> config.mak
echo "EXESUF=\$(BUILDSUF)$EXESUF" >> config.mak
Expand Down
10 changes: 5 additions & 5 deletions libavcodec/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -465,18 +465,18 @@ endif

tests: apiexample $(TESTS)

apiexample: apiexample.o $(LIB)
apiexample: apiexample.o $(LIBNAME)

cpuid-test: i386/cputest.c
$(CC) $(CFLAGS) -DTEST -o $@ $<

dct-test: dct-test.o fdctref.o $(LIB)
dct-test: dct-test.o fdctref.o $(LIBNAME)

fft-test: fft-test.o $(LIB)
fft-test: fft-test.o $(LIBNAME)

imgresample-test: imgresample.c $(LIB)
imgresample-test: imgresample.c $(LIBNAME)
$(CC) $(CFLAGS) -DTEST -o $@ $^ $(EXTRALIBS)

motion-test: motion-test.o $(LIB)
motion-test: motion-test.o $(LIBNAME)

.PHONY: tests

0 comments on commit 80aa377

Please sign in to comment.