Mercurial > libavcodec.hg
comparison Makefile @ 1470:dc1aebe51742 libavcodec
correct DLL windows install
author | bellard |
---|---|
date | Mon, 15 Sep 2003 22:27:43 +0000 |
parents | 52254c2f9cae |
children | db00afcbd2ac |
comparison
equal
deleted
inserted
replaced
1469:43ceb6e34b06 | 1470:dc1aebe51742 |
---|---|
217 $(CC) -o $@ $^ -lm | 217 $(CC) -o $@ $^ -lm |
218 | 218 |
219 fft-test: fft-test.o $(LIB) | 219 fft-test: fft-test.o $(LIB) |
220 $(CC) -o $@ $^ -lm | 220 $(CC) -o $@ $^ -lm |
221 | 221 |
222 install: all | |
223 ifeq ($(BUILD_SHARED),yes) | 222 ifeq ($(BUILD_SHARED),yes) |
223 install: all install-headers | |
224 ifeq ($(CONFIG_WIN32),yes) | |
225 install -s -m 755 $(SLIB) "$(prefix)" | |
226 else | |
224 install -d $(prefix)/lib | 227 install -d $(prefix)/lib |
225 install -s -m 755 $(SLIB) $(prefix)/lib/libavcodec-$(VERSION).so | 228 install -s -m 755 $(SLIB) $(prefix)/lib/libavcodec-$(VERSION).so |
226 ln -sf libavcodec-$(VERSION).so $(prefix)/lib/libavcodec.so | 229 ln -sf libavcodec-$(VERSION).so $(prefix)/lib/libavcodec.so |
227 ldconfig || true | 230 ldconfig || true |
228 mkdir -p $(prefix)/include/ffmpeg | 231 endif |
229 install -m 644 $(VPATH)/avcodec.h $(prefix)/include/ffmpeg/avcodec.h | 232 else |
230 install -m 644 $(VPATH)/common.h $(prefix)/include/ffmpeg/common.h | 233 install: |
231 endif | 234 endif |
232 | 235 |
233 installlib: all | 236 installlib: all install-headers |
234 install -m 644 $(LIB) $(prefix)/lib | 237 install -m 644 $(LIB) $(prefix)/lib |
235 mkdir -p $(prefix)/include/ffmpeg | 238 |
239 install-headers: | |
240 mkdir -p "$(prefix)/include/ffmpeg" | |
236 install -m 644 $(SRC_PATH)/libavcodec/avcodec.h $(SRC_PATH)/libavcodec/common.h \ | 241 install -m 644 $(SRC_PATH)/libavcodec/avcodec.h $(SRC_PATH)/libavcodec/common.h \ |
237 $(prefix)/include/ffmpeg | 242 "$(prefix)/include/ffmpeg" |
238 | 243 |
239 # | 244 # |
240 # include dependency files if they exist | 245 # include dependency files if they exist |
241 # | 246 # |
242 ifneq ($(wildcard .depend),) | 247 ifneq ($(wildcard .depend),) |