Statistics
| Branch: | Revision:

ffmpeg / Makefile @ daf8e955

History | View | Annotate | Download (879 Bytes)

1
# Main ffmpeg Makefile
2
# (c) 2000, 2001 Gerard Lantau
3
#
4
include config.mak
5

    
6
CFLAGS= $(OPTFLAGS) -Wall -g -I./libavcodec -I./libav 
7
LDFLAGS= -g 
8
ifeq ($(TARGET_GPROF),yes)
9
CFLAGS+=-p
10
LDFLAGS+=-p
11
endif
12

    
13
ifeq ($(CONFIG_WIN32),yes)
14
EXE=.exe
15
PROG=ffmpeg$(EXE)
16
else
17
EXT=
18
PROG=ffmpeg ffserver
19
endif
20

    
21
all: lib $(PROG)
22

    
23
lib:
24
	$(MAKE) -C libavcodec all
25
	$(MAKE) -C libav all
26

    
27
ffmpeg$(EXE): ffmpeg.o libav/libav.a libavcodec/libavcodec.a
28
	$(CC) $(LDFLAGS) -o $@ $^ -lm
29

    
30
ffserver$(EXE): ffserver.o libav/libav.a libavcodec/libavcodec.a
31
	$(CC) $(LDFLAGS) -o $@ $^ -lm
32

    
33
%.o: %.c
34
	$(CC) $(CFLAGS) -c -o $@ $< 
35

    
36
install: all
37
	install -s -m 755 $(PROG) $(prefix)/bin
38

    
39
clean: 
40
	$(MAKE) -C libavcodec clean
41
	$(MAKE) -C libav clean
42
	rm -f *.o *~ gmon.out TAGS $(PROG) 
43

    
44
distclean: clean
45
	$(MAKE) -C libavcodec distclean
46
	rm -f config.mak config.h
47

    
48
TAGS:
49
	etags *.[ch] libav/*.[ch] libavcodec/*.[ch]