faster dering
[libav.git] / Makefile
CommitLineData
85f07f22
FB
1# Main ffmpeg Makefile
2# (c) 2000, 2001 Gerard Lantau
3#
980fc7b8 4include config.mak
85f07f22 5
8d75673b
J
6CFLAGS= $(OPTFLAGS) -Wall -g -I./libavcodec -I./libav
7LDFLAGS= -g
980fc7b8 8ifeq ($(TARGET_GPROF),yes)
85f07f22
FB
9CFLAGS+=-p
10LDFLAGS+=-p
11endif
12
daf8e955
FB
13ifeq ($(CONFIG_WIN32),yes)
14EXE=.exe
15PROG=ffmpeg$(EXE)
16else
17EXT=
2744a37f 18PROG=ffmpeg ffplay ffserver
daf8e955 19endif
85f07f22
FB
20
21all: lib $(PROG)
22
23lib:
2cc8ae96
FB
24 $(MAKE) -C libavcodec all
25 $(MAKE) -C libav all
85f07f22 26
daf8e955
FB
27ffmpeg$(EXE): ffmpeg.o libav/libav.a libavcodec/libavcodec.a
28 $(CC) $(LDFLAGS) -o $@ $^ -lm
85f07f22 29
daf8e955
FB
30ffserver$(EXE): ffserver.o libav/libav.a libavcodec/libavcodec.a
31 $(CC) $(LDFLAGS) -o $@ $^ -lm
85f07f22 32
2744a37f
FB
33ffplay: ffmpeg$(EXE)
34 ln -sf $< $@
35
85f07f22 36%.o: %.c
daf8e955 37 $(CC) $(CFLAGS) -c -o $@ $<
85f07f22
FB
38
39install: all
980fc7b8 40 install -s -m 755 $(PROG) $(prefix)/bin
2744a37f 41 ln -sf ffmpeg $(prefix)/bin/ffplay
85f07f22
FB
42
43clean:
2cc8ae96
FB
44 $(MAKE) -C libavcodec clean
45 $(MAKE) -C libav clean
85f07f22
FB
46 rm -f *.o *~ gmon.out TAGS $(PROG)
47
48distclean: clean
c72c6d2d 49 $(MAKE) -C libavcodec distclean
980fc7b8 50 rm -f config.mak config.h
85f07f22
FB
51
52TAGS:
53 etags *.[ch] libav/*.[ch] libavcodec/*.[ch]