From daf8e9557d55d13d45b83329db59f711fb9c7251 Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Wed, 15 Aug 2001 22:29:44 +0000 Subject: added win32 cross compile support Originally committed as revision 107 to svn://svn.ffmpeg.org/ffmpeg/trunk --- Makefile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d810a2c72a..e93365bf7d 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,13 @@ CFLAGS+=-p LDFLAGS+=-p endif -PROG= ffmpeg ffserver +ifeq ($(CONFIG_WIN32),yes) +EXE=.exe +PROG=ffmpeg$(EXE) +else +EXT= +PROG=ffmpeg ffserver +endif all: lib $(PROG) @@ -18,14 +24,14 @@ lib: $(MAKE) -C libavcodec all $(MAKE) -C libav all -ffmpeg: ffmpeg.o libav/libav.a libavcodec/libavcodec.a - gcc $(LDFLAGS) -o $@ $^ -lm +ffmpeg$(EXE): ffmpeg.o libav/libav.a libavcodec/libavcodec.a + $(CC) $(LDFLAGS) -o $@ $^ -lm -ffserver: ffserver.o libav/libav.a libavcodec/libavcodec.a - gcc $(LDFLAGS) -o $@ $^ -lm +ffserver$(EXE): ffserver.o libav/libav.a libavcodec/libavcodec.a + $(CC) $(LDFLAGS) -o $@ $^ -lm %.o: %.c - gcc $(CFLAGS) -c -o $@ $< + $(CC) $(CFLAGS) -c -o $@ $< install: all install -s -m 755 $(PROG) $(prefix)/bin -- cgit v1.2.3