summaryrefslogtreecommitdiff
path: root/libavformat/Makefile
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-09-04 08:21:27 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-09-04 08:21:27 +0000
commita17236c53cd3ffe1d4eceb3be82b39001c006b3f (patch)
tree0ba3c659d54fbe8edd2f27c791adf59a5fa36df5 /libavformat/Makefile
parentdafc3856d9c34d85a5c172c66d6a6e8ffa201b03 (diff)
MingW patches by (Glenn Maynard <g_sf at zewt dot org>)
Originally committed as revision 2203 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/Makefile')
-rw-r--r--libavformat/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/libavformat/Makefile b/libavformat/Makefile
index 256edeccc7..e064cf613b 100644
--- a/libavformat/Makefile
+++ b/libavformat/Makefile
@@ -80,7 +80,12 @@ $(LIB): $(OBJS) $(PPOBJS)
$(RANLIB) $@
$(SLIB): $(OBJS)
- $(CC) $(SHFLAGS) -o $@ $(OBJS) $(PPOBJS) $(EXTRALIBS) $(AMREXTRALIBS)
+ifeq ($(TARGET_MINGW32),yes)
+ $(CC) $(SHFLAGS) -Wl,--output-def,$(@:.dll=.def) -o $@ $(OBJS) $(PPOBJS) $(EXTRALIBS) $(AMREXTRALIBS) $(VPATH)/../libavcodec/avcodec.dll
+ -lib /machine:i386 /def:$(@:.dll=.def)
+else
+ $(CC) $(SHFLAGS) -o $@ $(OBJS) $(PPOBJS) $(EXTRALIBS) $(AMREXTRALIBS)
+endif
depend: $(SRCS)
$(CC) -MM $(CFLAGS) $^ 1>.depend