Revision 4e159595 libavcodec/Makefile

View differences:

libavcodec/Makefile
377 377
CFLAGS+= -mcpu=ultrasparc -mtune=ultrasparc
378 378
endif
379 379

  
380
# Darwin specific stuff
381
ifeq ($(CONFIG_DARWIN),yes)
382
SHFLAGS += -Wl,-install_name,$(libdir)/$(SLIBPREF)avcodec$(SLIBSUF),-current_version,$(SPPVERSION),-compatibility_version,$(SPPVERSION)
383
endif
384

  
380 385
SRCS := $(OBJS:.o=.c) $(ASM_OBJS:.o=.S)
381 386
OBJS := $(OBJS) $(ASM_OBJS)
382 387

  
383 388
LIB= $(LIBPREF)avcodec$(LIBSUF)
384 389
LIBAVUTIL= $(SRC_PATH)/libavutil/$(LIBPREF)avutil$(LIBSUF)
385 390
ifeq ($(BUILD_SHARED),yes)
386
SLIB= $(SLIBPREF)avcodec$(SLIBSUF)
391
SLIBNAME= $(SLIBPREF)avcodec$(SLIBSUF)
387 392
endif
388 393
TESTS= imgresample-test dct-test motion-test fft-test
389 394

  
390
all: $(LIB) $(SLIB)
395
all: $(LIB) $(SLIBNAME)
391 396

  
392 397
amrlibs:
393 398
	$(MAKE) -C amr spclib fipoplib
......
399 404
	$(AR) rc $@ $(OBJS) $(AMREXTRALIBS)
400 405
	$(RANLIB) $@
401 406

  
402
$(SLIB): $(OBJS)
407
$(SLIBNAME): $(OBJS)
403 408
ifeq ($(CONFIG_PP),yes)
404 409
	$(MAKE) -C libpostproc
405 410
endif
......
407 412
	$(CC) $(SHFLAGS) -Wl,--output-def,$(@:.dll=.def) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS)
408 413
	-lib /machine:i386 /def:$(@:.dll=.def)
409 414
else
410
	$(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS) $(LDFLAGS)
415
	$(CC) $(SHFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS)
411 416
endif
412 417

  
413 418
dsputil.o: dsputil.c dsputil.h
......
427 432
dep:	depend
428 433

  
429 434
clean: $(CLEANAMR)
430
	rm -f *.o *.d *~ .depend $(LIB) $(SLIB) *.so i386/*.o i386/*~ \
435
	rm -f *.o *.d *~ .depend $(LIB) $(SLIBNAME) *$(SLIBSUF) i386/*.o i386/*~ \
431 436
	   armv4l/*.o armv4l/*~ \
432 437
	   mlib/*.o mlib/*~ \
433 438
	   alpha/*.o alpha/*~ \
......
476 481
ifeq ($(BUILD_SHARED),yes)
477 482
install: all install-headers
478 483
ifeq ($(CONFIG_WIN32),yes)
479
	install $(INSTALLSTRIP) -m 755 $(SLIB) "$(prefix)"
484
	install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
480 485
else
481 486
	install -d $(libdir)
482
	install $(INSTALLSTRIP) -m 755 $(SLIB) $(libdir)/libavcodec-$(VERSION).so
483
	ln -sf libavcodec-$(VERSION).so $(libdir)/libavcodec.so
487
	install $(INSTALLSTRIP) -m 755 $(SLIBNAME) $(libdir)/libavcodec-$(VERSION)$(SLIBSUF)
488
	ln -sf libavcodec-$(VERSION)$(SLIBSUF) $(libdir)/libavcodec$(SLIBSUF)
484 489
	$(LDCONFIG) || true
485 490
endif
486 491
ifeq ($(CONFIG_PP),yes)

Also available in: Unified diff