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.

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