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.

62 lines
1.2KB

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