comparison Makefile @ 348:ae9e9af0b627 libavcodec

* by Thomas Sailer: otherwise ffmpeg doesn't compile if shared libs are requested and mp3lame is selected...
author kabi
date Wed, 01 May 2002 13:27:40 +0000
parents 9211a0c9466a
children e8ecb4413557
comparison
equal deleted inserted replaced
347:3c5266cda02d 348:ae9e9af0b627
21 liba52/imdct.o liba52/parse.o 21 liba52/imdct.o liba52/parse.o
22 endif 22 endif
23 23
24 ifeq ($(CONFIG_MP3LAME),yes) 24 ifeq ($(CONFIG_MP3LAME),yes)
25 OBJS += mp3lameaudio.o 25 OBJS += mp3lameaudio.o
26 EXTRALIBS += -lmp3lame
26 endif 27 endif
27 28
28 ifeq ($(TARGET_GPROF),yes) 29 ifeq ($(TARGET_GPROF),yes)
29 CFLAGS+=-p 30 CFLAGS+=-p
30 LDFLAGS+=-p 31 LDFLAGS+=-p
72 rm -f $@ 73 rm -f $@
73 $(AR) rcs $@ $(OBJS) $(ASM_OBJS) 74 $(AR) rcs $@ $(OBJS) $(ASM_OBJS)
74 75
75 $(SLIB): $(OBJS) $(ASM_OBJS) 76 $(SLIB): $(OBJS) $(ASM_OBJS)
76 rm -f $@ 77 rm -f $@
77 $(CC) -shared -o $@ $(OBJS) $(ASM_OBJS) 78 $(CC) -shared -o $@ $(OBJS) $(ASM_OBJS) $(EXTRALIBS)
78 ln -sf $@ libffmpeg.so 79 ln -sf $@ libffmpeg.so
79 dsputil.o: dsputil.c dsputil.h 80 dsputil.o: dsputil.c dsputil.h
80 81
81 %.o: %.c 82 %.o: %.c
82 $(CC) $(CFLAGS) -c -o $@ $< 83 $(CC) $(CFLAGS) -c -o $@ $<