Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2001-07-22 18:37:44 +0400
committerFabrice Bellard <fabrice@bellard.org>2001-07-22 18:37:44 +0400
commit85f07f223de9fbeb2b9d66db11f89091ac717926 (patch)
tree07c79a0ac6c7829c2ce248f2747bdfcd547262a9 /Makefile
parentde6d9b6404bfd1c589799142da5a95428f146edd (diff)
merge
Originally committed as revision 6 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000000..1650c89612
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,42 @@
+# Main ffmpeg Makefile
+# (c) 2000, 2001 Gerard Lantau
+#
+include config.mk
+
+CFLAGS= -O2 -Wall -g -I./libavcodec -I./libav
+LDFLAGS= -g
+ifdef CONFIG_GPROF
+CFLAGS+=-p
+LDFLAGS+=-p
+endif
+
+PROG= ffmpeg ffserver
+
+all: lib $(PROG)
+
+lib:
+ make -C libavcodec all
+ make -C libav all
+
+ffmpeg: ffmpeg.o libav/libav.a libavcodec/libavcodec.a
+ gcc $(LDFLAGS) -o $@ $^ -lm
+
+ffserver: ffserver.o libav/libav.a libavcodec/libavcodec.a
+ gcc $(LDFLAGS) -o $@ $^ -lm
+
+%.o: %.c
+ gcc $(CFLAGS) -c -o $@ $<
+
+install: all
+ install -s -m 755 $(PROG) $(PREFIX)/bin
+
+clean:
+ make -C libavcodec clean
+ make -C libav clean
+ rm -f *.o *~ gmon.out TAGS $(PROG)
+
+distclean: clean
+ rm -f Rules.mk config.h
+
+TAGS:
+ etags *.[ch] libav/*.[ch] libavcodec/*.[ch]