2001-07-22 17:37:44 +03:00
|
|
|
# Main ffmpeg Makefile
|
|
|
|
# (c) 2000, 2001 Gerard Lantau
|
|
|
|
#
|
2001-07-23 23:06:54 +03:00
|
|
|
include config.mak
|
2001-07-22 17:37:44 +03:00
|
|
|
|
2001-07-23 23:06:54 +03:00
|
|
|
CFLAGS= $(OPTFLAGS) -Wall -g -I./libavcodec -I./libav
|
2001-07-22 17:37:44 +03:00
|
|
|
LDFLAGS= -g
|
2001-07-23 23:06:54 +03:00
|
|
|
ifeq ($(TARGET_GPROF),yes)
|
2001-07-22 17:37:44 +03:00
|
|
|
CFLAGS+=-p
|
|
|
|
LDFLAGS+=-p
|
|
|
|
endif
|
|
|
|
|
|
|
|
PROG= ffmpeg ffserver
|
|
|
|
|
|
|
|
all: lib $(PROG)
|
|
|
|
|
|
|
|
lib:
|
2001-08-11 21:57:27 +03:00
|
|
|
$(MAKE) -C libavcodec all
|
|
|
|
$(MAKE) -C libav all
|
2001-07-22 17:37:44 +03:00
|
|
|
|
|
|
|
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
|
2001-07-23 23:06:54 +03:00
|
|
|
install -s -m 755 $(PROG) $(prefix)/bin
|
2001-07-22 17:37:44 +03:00
|
|
|
|
|
|
|
clean:
|
2001-08-11 21:57:27 +03:00
|
|
|
$(MAKE) -C libavcodec clean
|
|
|
|
$(MAKE) -C libav clean
|
2001-07-22 17:37:44 +03:00
|
|
|
rm -f *.o *~ gmon.out TAGS $(PROG)
|
|
|
|
|
|
|
|
distclean: clean
|
2001-07-23 23:06:54 +03:00
|
|
|
rm -f config.mak config.h
|
2001-07-22 17:37:44 +03:00
|
|
|
|
|
|
|
TAGS:
|
|
|
|
etags *.[ch] libav/*.[ch] libavcodec/*.[ch]
|