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.

100 lines
2.0KB

  1. #
  2. # libavformat Makefile
  3. # (c) 2000, 2001, 2002 Fabrice Bellard
  4. #
  5. include ../config.mak
  6. VPATH=$(SRC_PATH)/libavformat
  7. CFLAGS= $(OPTFLAGS) -Wall -g -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavcodec -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
  8. OBJS= utils.o cutils.o allformats.o
  9. # mux and demuxes
  10. OBJS+=mpeg.o mpegts.o ffm.o crc.o img.o raw.o rm.o \
  11. avienc.o avidec.o wav.o swf.o au.o gif.o mov.o mpjpeg.o dv.o \
  12. yuv4mpeg.o
  13. ifeq ($(CONFIG_RISKY),yes)
  14. OBJS+= asf.o
  15. endif
  16. # image formats
  17. OBJS+= pnm.o yuv.o png.o libpng/png.o libpng/pngread.o libpng/pngrutil.o libpng/pngwrite.o libpng/pngwutil.o jpeg.o gifdec.o
  18. # file I/O
  19. OBJS+= avio.o aviobuf.o file.o
  20. OBJS+= framehook.o
  21. ifeq ($(BUILD_STRPTIME),yes)
  22. OBJS+= strptime.o
  23. endif
  24. ifeq ($(CONFIG_VIDEO4LINUX),yes)
  25. OBJS+= grab.o
  26. endif
  27. ifeq ($(CONFIG_DV1394),yes)
  28. OBJS+= dv1394.o
  29. endif
  30. ifeq ($(CONFIG_AUDIO_OSS),yes)
  31. OBJS+= audio.o
  32. endif
  33. ifeq ($(CONFIG_AUDIO_BEOS),yes)
  34. OBJS+= beosaudio.o
  35. endif
  36. ifeq ($(CONFIG_NETWORK),yes)
  37. OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
  38. # BeOS network stuff
  39. ifeq ($(NEED_INET_ATON),yes)
  40. OBJS+= barpainet.o
  41. endif
  42. endif
  43. ifeq ($(CONFIG_VORBIS),yes)
  44. OBJS+= ogg.o
  45. endif
  46. LIB= $(LIBPREF)avformat$(LIBSUF)
  47. SRCS := $(OBJS:.o=.c)
  48. all: $(LIB)
  49. $(LIB): $(OBJS)
  50. rm -f $@
  51. $(AR) rc $@ $(OBJS)
  52. ifneq ($(CONFIG_OS2),yes)
  53. $(RANLIB) $@
  54. endif
  55. depend: $(SRCS)
  56. $(CC) -MM $(CFLAGS) $^ 1>.depend
  57. installlib: all
  58. install -m 644 $(LIB) $(prefix)/lib
  59. mkdir -p $(prefix)/include/ffmpeg
  60. install -m 644 $(SRC_PATH)/libavformat/avformat.h $(SRC_PATH)/libavformat/avio.h \
  61. $(SRC_PATH)/libavformat/rtp.h $(SRC_PATH)/libavformat/rtsp.h \
  62. $(SRC_PATH)/libavformat/rtspcodes.h \
  63. $(prefix)/include/ffmpeg
  64. %.o: %.c
  65. $(CC) $(CFLAGS) -c -o $@ $<
  66. # BeOS: remove -Wall to get rid of all the "multibyte constant" warnings
  67. %.o: %.cpp
  68. g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $<
  69. clean:
  70. rm -f *.o *.d .depend *~ *.a $(LIB)
  71. #
  72. # include dependency files if they exist
  73. #
  74. ifneq ($(wildcard .depend),)
  75. include .depend
  76. endif