blob: ffa1b80a14e58280db6c51ae2bd207f698e92e49 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Main ffmpeg Makefile
# (c) 2000, 2001 Gerard Lantau
#
include config.mak
CFLAGS= $(OPTFLAGS) -Wall -g -I./libavcodec -I./libav
LDFLAGS= -g
ifeq ($(TARGET_GPROF),yes)
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 config.mak config.h
TAGS:
etags *.[ch] libav/*.[ch] libavcodec/*.[ch]
|