changed opendivx to mpeg4
[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
13PROG= ffmpeg ffserver
14
15all: lib $(PROG)
16
17lib:
2cc8ae96
FB
18 $(MAKE) -C libavcodec all
19 $(MAKE) -C libav all
85f07f22
FB
20
21ffmpeg: ffmpeg.o libav/libav.a libavcodec/libavcodec.a
22 gcc $(LDFLAGS) -o $@ $^ -lm
23
24ffserver: ffserver.o libav/libav.a libavcodec/libavcodec.a
25 gcc $(LDFLAGS) -o $@ $^ -lm
26
27%.o: %.c
28 gcc $(CFLAGS) -c -o $@ $<
29
30install: all
980fc7b8 31 install -s -m 755 $(PROG) $(prefix)/bin
85f07f22
FB
32
33clean:
2cc8ae96
FB
34 $(MAKE) -C libavcodec clean
35 $(MAKE) -C libav clean
85f07f22
FB
36 rm -f *.o *~ gmon.out TAGS $(PROG)
37
38distclean: clean
980fc7b8 39 rm -f config.mak config.h
85f07f22
FB
40
41TAGS:
42 etags *.[ch] libav/*.[ch] libavcodec/*.[ch]