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.

73 lines
1.5KB

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