added pcm formats
[libav.git] / Makefile
CommitLineData
85f07f22
FB
1# Main ffmpeg Makefile
2# (c) 2000, 2001 Gerard Lantau
3#
980fc7b8 4include config.mak
85f07f22 5
980fc7b8 6CFLAGS= $(OPTFLAGS) -Wall -g -I./libavcodec -I./libav
85f07f22 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=
18PROG=ffmpeg ffserver
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
FB
32
33%.o: %.c
daf8e955 34 $(CC) $(CFLAGS) -c -o $@ $<
85f07f22
FB
35
36install: all
980fc7b8 37 install -s -m 755 $(PROG) $(prefix)/bin
85f07f22
FB
38
39clean:
2cc8ae96
FB
40 $(MAKE) -C libavcodec clean
41 $(MAKE) -C libav clean
85f07f22
FB
42 rm -f *.o *~ gmon.out TAGS $(PROG)
43
44distclean: clean
c72c6d2d 45 $(MAKE) -C libavcodec distclean
980fc7b8 46 rm -f config.mak config.h
85f07f22
FB
47
48TAGS:
49 etags *.[ch] libav/*.[ch] libavcodec/*.[ch]