changeset 919:7ac21a82ac29 libavformat

On MinGW it is not possible to build shared and static libraries at once. Add means to disable building the static libraries and fix a few issues with the MinGW build. All the hard work done by Alexander Strasser, minor changes by myself.
author diego
date Mon, 30 Jan 2006 00:22:41 +0000
parents e50e8bfb90ed
children 12bc7d91ee8b
files Makefile
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sun Jan 29 18:32:55 2006 +0000
+++ b/Makefile	Mon Jan 30 00:22:41 2006 +0000
@@ -10,7 +10,7 @@
 
 #FIXME: This should be in configure/config.mak
 ifeq ($(CONFIG_WIN32),yes)
-    LDFLAGS=-Wl,--output-def,$(@:.dll=.def)
+    LDFLAGS=-Wl,--output-def,$(@:.dll=.def),--out-implib,lib$(SLIBNAME:$(SLIBSUF)=.dll.a)
 endif
 
 OBJS= utils.o cutils.o os_support.o allformats.o
@@ -157,7 +157,8 @@
 	g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $<
 
 clean:
-	rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll
+	rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll \
+	      *.lib *.def *.dll.a *.exp
 
 distclean: clean
 	rm -f .depend