From cf7412b58d5fb7fe37c15a916057c9b5398eb622 Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Tue, 16 Sep 2003 20:28:53 +0000 Subject: use VC++ lib tool if available Originally committed as revision 2286 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libavcodec') diff --git a/libavcodec/Makefile b/libavcodec/Makefile index ed56420..8af210a 100644 --- a/libavcodec/Makefile +++ b/libavcodec/Makefile @@ -1,6 +1,6 @@ # # libavcodec Makefile -# (c) 2000, 2001, 2002 Fabrice Bellard +# (c) 2000-2003 Fabrice Bellard # include ../config.mak @@ -158,7 +158,12 @@ $(LIB): $(OBJS) $(AMRLIBS) $(RANLIB) $@ $(SLIB): $(OBJS) +ifeq ($(CONFIG_WIN32),yes) + $(CC) $(SHFLAGS) -Wl,--output-def,$(@:.dll=.def) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS) + -lib /machine:i386 /def:$(@:.dll=.def) +else $(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS) +endif dsputil.o: dsputil.c dsputil.h -- cgit v1.1