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.

66 lines
1.3KB

  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_NETWORK),yes)
  25. OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
  26. # BeOS network stuff
  27. ifeq ($(CONFIG_BEOS_NETSERVER),yes)
  28. OBJS+= barpainet.o
  29. endif
  30. endif
  31. ifeq ($(CONFIG_VORBIS),yes)
  32. OBJS+= ogg.o
  33. endif
  34. LIB= libavformat.a
  35. all: $(LIB)
  36. $(LIB): $(OBJS)
  37. rm -f $@
  38. $(AR) rc $@ $(OBJS)
  39. $(RANLIB) $@
  40. installlib: all
  41. install -m 644 $(LIB) $(prefix)/lib
  42. mkdir -p $(prefix)/include/ffmpeg
  43. install -m 644 $(SRC_PATH)/libav/avformat.h $(SRC_PATH)/libav/avio.h \
  44. $(SRC_PATH)/libav/rtp.h $(SRC_PATH)/libav/rtsp.h \
  45. $(SRC_PATH)/libav/rtspcodes.h \
  46. $(prefix)/include/ffmpeg
  47. %.o: %.c
  48. $(CC) $(CFLAGS) -c -o $@ $<
  49. clean:
  50. rm -f *.o *~ *.a