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.

77 lines
1.6KB

  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_AUDIO_OSS),yes)
  25. OBJS+= audio.o
  26. endif
  27. ifeq ($(CONFIG_AUDIO_BEOS),yes)
  28. OBJS+= beosaudio.o
  29. endif
  30. ifeq ($(CONFIG_NETWORK),yes)
  31. OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
  32. # BeOS network stuff
  33. ifeq ($(NEED_INET_ATON),yes)
  34. OBJS+= barpainet.o
  35. endif
  36. endif
  37. ifeq ($(CONFIG_VORBIS),yes)
  38. OBJS+= ogg.o
  39. endif
  40. LIB= libavformat.a
  41. all: $(LIB)
  42. $(LIB): $(OBJS)
  43. rm -f $@
  44. $(AR) rc $@ $(OBJS)
  45. $(RANLIB) $@
  46. installlib: all
  47. install -m 644 $(LIB) $(prefix)/lib
  48. mkdir -p $(prefix)/include/ffmpeg
  49. install -m 644 $(SRC_PATH)/libavformat/avformat.h $(SRC_PATH)/libavformat/avio.h \
  50. $(SRC_PATH)/libavformat/rtp.h $(SRC_PATH)/libavformat/rtsp.h \
  51. $(SRC_PATH)/libavformat/rtspcodes.h \
  52. $(prefix)/include/ffmpeg
  53. %.o: %.c
  54. $(CC) $(CFLAGS) -c -o $@ $<
  55. # BeOS: remove -Wall to get rid of all the "multibyte constant" warnings
  56. %.o: %.cpp
  57. g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $<
  58. clean:
  59. rm -f *.o *~ *.a