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.

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