Mercurial > libavcodec.hg
comparison Makefile @ 489:b9fcdf9f4420 libavcodec
added installlib target to install static libraries and includes
author | bellard |
---|---|
date | Tue, 11 Jun 2002 13:39:47 +0000 |
parents | f8bbc8976247 |
children | cab79946302f |
comparison
equal
deleted
inserted
replaced
488:90227eb98bf9 | 489:b9fcdf9f4420 |
---|---|
8 | 8 |
9 # NOTE: -I.. is needed to include config.h | 9 # NOTE: -I.. is needed to include config.h |
10 CFLAGS= $(OPTFLAGS) -Wall -g -DHAVE_AV_CONFIG_H -I.. | 10 CFLAGS= $(OPTFLAGS) -Wall -g -DHAVE_AV_CONFIG_H -I.. |
11 LDFLAGS= -g | 11 LDFLAGS= -g |
12 | 12 |
13 OBJS= common.o utils.o mpegvideo.o h263.o jrevdct.o jfdctfst.o \ | 13 OBJS= common.o utils.o mem.o allcodecs.o \ |
14 mpegvideo.o h263.o jrevdct.o jfdctfst.o \ | |
14 mpegaudio.o ac3enc.o mjpeg.o resample.o dsputil.o \ | 15 mpegaudio.o ac3enc.o mjpeg.o resample.o dsputil.o \ |
15 motion_est.o imgconvert.o imgresample.o msmpeg4.o \ | 16 motion_est.o imgconvert.o imgresample.o msmpeg4.o \ |
16 mpeg12.o h263dec.o rv10.o mpegaudiodec.o pcm.o simple_idct.o \ | 17 mpeg12.o h263dec.o rv10.o mpegaudiodec.o pcm.o simple_idct.o \ |
17 ratecontrol.o | 18 ratecontrol.o |
18 ASM_OBJS= | 19 ASM_OBJS= |
129 | 130 |
130 motion-test: motion_test.o $(LIB) | 131 motion-test: motion_test.o $(LIB) |
131 $(CC) -o $@ $^ | 132 $(CC) -o $@ $^ |
132 | 133 |
133 install: all | 134 install: all |
134 # install -m 644 $(LIB) $(prefix)/lib | |
135 ifeq ($(BUILD_SHARED),yes) | 135 ifeq ($(BUILD_SHARED),yes) |
136 install -s -m 755 $(SLIB) $(prefix)/lib/libavcodec-$(VERSION).so | 136 install -s -m 755 $(SLIB) $(prefix)/lib/libavcodec-$(VERSION).so |
137 ln -sf $(prefix)/lib/libavcodec-$(VERSION).so $(prefix)/lib/libavcodec.so | 137 ln -sf $(prefix)/lib/libavcodec-$(VERSION).so $(prefix)/lib/libavcodec.so |
138 ldconfig | 138 ldconfig |
139 mkdir -p $(prefix)/include/ffmpeg | 139 mkdir -p $(prefix)/include/ffmpeg |
140 install -m 644 avcodec.h $(prefix)/include/ffmpeg/avcodec.h | 140 install -m 644 avcodec.h $(prefix)/include/ffmpeg/avcodec.h |
141 install -m 644 common.h $(prefix)/include/ffmpeg/common.h | 141 install -m 644 common.h $(prefix)/include/ffmpeg/common.h |
142 endif | 142 endif |
143 | |
144 installlib: all | |
145 install -m 644 $(LIB) $(prefix)/lib | |
146 mkdir -p $(prefix)/include/ffmpeg | |
147 install -m 644 $(SRC_PATH)/libavcodec/avcodec.h $(SRC_PATH)/libavcodec/common.h \ | |
148 $(prefix)/include/ffmpeg | |
149 | |
143 # | 150 # |
144 # include dependency files if they exist | 151 # include dependency files if they exist |
145 # | 152 # |
146 ifneq ($(wildcard .depend),) | 153 ifneq ($(wildcard .depend),) |
147 include .depend | 154 include .depend |