2001-07-22 14:37:44 +00:00
|
|
|
# Main ffmpeg Makefile
|
|
|
|
# (c) 2000, 2001 Gerard Lantau
|
|
|
|
#
|
2001-07-23 20:06:54 +00:00
|
|
|
include config.mak
|
2001-07-22 14:37:44 +00:00
|
|
|
|
2001-07-23 20:06:54 +00:00
|
|
|
CFLAGS= $(OPTFLAGS) -Wall -g -I./libavcodec -I./libav
|
2001-07-22 14:37:44 +00:00
|
|
|
LDFLAGS= -g
|
2001-07-23 20:06:54 +00:00
|
|
|
ifeq ($(TARGET_GPROF),yes)
|
2001-07-22 14:37:44 +00:00
|
|
|
CFLAGS+=-p
|
|
|
|
LDFLAGS+=-p
|
|
|
|
endif
|
|
|
|
|
2001-08-15 22:29:44 +00:00
|
|
|
ifeq ($(CONFIG_WIN32),yes)
|
|
|
|
EXE=.exe
|
|
|
|
PROG=ffmpeg$(EXE)
|
|
|
|
else
|
|
|
|
EXT=
|
|
|
|
PROG=ffmpeg ffserver
|
|
|
|
endif
|
2001-07-22 14:37:44 +00:00
|
|
|
|
|
|
|
all: lib $(PROG)
|
|
|
|
|
|
|
|
lib:
|
2001-08-11 18:57:27 +00:00
|
|
|
$(MAKE) -C libavcodec all
|
|
|
|
$(MAKE) -C libav all
|
2001-07-22 14:37:44 +00:00
|
|
|
|
2001-08-15 22:29:44 +00:00
|
|
|
ffmpeg$(EXE): ffmpeg.o libav/libav.a libavcodec/libavcodec.a
|
|
|
|
$(CC) $(LDFLAGS) -o $@ $^ -lm
|
2001-07-22 14:37:44 +00:00
|
|
|
|
2001-08-15 22:29:44 +00:00
|
|
|
ffserver$(EXE): ffserver.o libav/libav.a libavcodec/libavcodec.a
|
|
|
|
$(CC) $(LDFLAGS) -o $@ $^ -lm
|
2001-07-22 14:37:44 +00:00
|
|
|
|
|
|
|
%.o: %.c
|
2001-08-15 22:29:44 +00:00
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
2001-07-22 14:37:44 +00:00
|
|
|
|
|
|
|
install: all
|
2001-07-23 20:06:54 +00:00
|
|
|
install -s -m 755 $(PROG) $(prefix)/bin
|
2001-07-22 14:37:44 +00:00
|
|
|
|
|
|
|
clean:
|
2001-08-11 18:57:27 +00:00
|
|
|
$(MAKE) -C libavcodec clean
|
|
|
|
$(MAKE) -C libav clean
|
2001-07-22 14:37:44 +00:00
|
|
|
rm -f *.o *~ gmon.out TAGS $(PROG)
|
|
|
|
|
|
|
|
distclean: clean
|
2001-08-15 13:16:05 +00:00
|
|
|
$(MAKE) -C libavcodec distclean
|
2001-07-23 20:06:54 +00:00
|
|
|
rm -f config.mak config.h
|
2001-07-22 14:37:44 +00:00
|
|
|
|
|
|
|
TAGS:
|
|
|
|
etags *.[ch] libav/*.[ch] libavcodec/*.[ch]
|