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.

95 lines
1.9KB

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