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.

74 lines
1.5KB

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