changeset 1472:db00afcbd2ac libavcodec

use VC++ lib tool if available
author bellard
date Tue, 16 Sep 2003 20:28:53 +0000
parents dcb784544ec6
children 873100cd2108
files Makefile
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Tue Sep 16 11:25:29 2003 +0000
+++ b/Makefile	Tue Sep 16 20:28:53 2003 +0000
@@ -1,6 +1,6 @@
 #
 # libavcodec Makefile
-# (c) 2000, 2001, 2002 Fabrice Bellard
+# (c) 2000-2003 Fabrice Bellard
 #
 include ../config.mak
 
@@ -158,7 +158,12 @@
 	$(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