mirror of https://github.com/FFmpeg/FFmpeg.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
747 B
42 lines
747 B
# 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]
|
|
|