2 # (c) 2000, 2001 Gerard Lantau
6 CFLAGS= $(OPTFLAGS) -Wall -g -I./libavcodec -I./libav
8 ifeq ($(TARGET_GPROF),yes)
13 ifeq ($(CONFIG_WIN32),yes)
18 PROG=ffmpeg ffplay ffserver
21 ifeq ($(BUILD_SHARED),yes)
22 FFMPEG_LIB=-Llibavcodec -lffmpeg
25 FFMPEG_LIB=libavcodec/libavcodec.a
26 DEP_FFMPEG_LIB=libavcodec/libavcodec.a
27 ifeq ($(CONFIG_MP3LAME),yes)
35 $(MAKE) -C libavcodec all
38 ffmpeg$(EXE): ffmpeg.o libav/libav.a $(DEP_FFMPEG_LIB)
39 $(CC) $(LDFLAGS) $(EXTRALIBS) -o $@ $^ $(FFMPEG_LIB)
41 ffserver$(EXE): ffserver.o libav/libav.a $(DEP_FFMPEG_LIB)
42 $(CC) $(LDFLAGS) $(EXTRALIBS) -o $@ $^ $(FFMPEG_LIB)
48 $(CC) $(CFLAGS) -c -o $@ $<
51 $(MAKE) -C libavcodec install
52 install -s -m 755 $(PROG) $(prefix)/bin
53 ln -sf ffmpeg $(prefix)/bin/ffplay
56 $(MAKE) -C libavcodec clean
57 $(MAKE) -C libav clean
58 rm -f *.o *~ gmon.out TAGS $(PROG)
61 $(MAKE) -C libavcodec distclean
62 rm -f config.mak config.h
65 etags *.[ch] libav/*.[ch] libavcodec/*.[ch]