1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

added installlib target to install static libraries and includes

Originally committed as revision 683 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Fabrice Bellard 2002-06-11 13:39:47 +00:00
parent 96707bb783
commit 773cefc602

View File

@ -10,7 +10,8 @@ VPATH=$(SRC_PATH)/libavcodec
CFLAGS= $(OPTFLAGS) -Wall -g -DHAVE_AV_CONFIG_H -I..
LDFLAGS= -g
OBJS= common.o utils.o mpegvideo.o h263.o jrevdct.o jfdctfst.o \
OBJS= common.o utils.o mem.o allcodecs.o \
mpegvideo.o h263.o jrevdct.o jfdctfst.o \
mpegaudio.o ac3enc.o mjpeg.o resample.o dsputil.o \
motion_est.o imgconvert.o imgresample.o msmpeg4.o \
mpeg12.o h263dec.o rv10.o mpegaudiodec.o pcm.o simple_idct.o \
@ -131,7 +132,6 @@ motion-test: motion_test.o $(LIB)
$(CC) -o $@ $^
install: all
# install -m 644 $(LIB) $(prefix)/lib
ifeq ($(BUILD_SHARED),yes)
install -s -m 755 $(SLIB) $(prefix)/lib/libavcodec-$(VERSION).so
ln -sf $(prefix)/lib/libavcodec-$(VERSION).so $(prefix)/lib/libavcodec.so
@ -140,6 +140,13 @@ ifeq ($(BUILD_SHARED),yes)
install -m 644 avcodec.h $(prefix)/include/ffmpeg/avcodec.h
install -m 644 common.h $(prefix)/include/ffmpeg/common.h
endif
installlib: all
install -m 644 $(LIB) $(prefix)/lib
mkdir -p $(prefix)/include/ffmpeg
install -m 644 $(SRC_PATH)/libavcodec/avcodec.h $(SRC_PATH)/libavcodec/common.h \
$(prefix)/include/ffmpeg
#
# include dependency files if they exist
#