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.

52 lines
1.1KB

  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
  12. # file I/O
  13. OBJS+= avio.o aviobuf.o file.o
  14. ifeq ($(CONFIG_VIDEO4LINUX),yes)
  15. OBJS+= grab.o
  16. endif
  17. ifeq ($(CONFIG_AUDIO_OSS),yes)
  18. OBJS+= audio.o
  19. endif
  20. ifeq ($(CONFIG_NETWORK),yes)
  21. OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
  22. endif
  23. LIB= libavformat.a
  24. all: $(LIB)
  25. $(LIB): $(OBJS)
  26. rm -f $@
  27. $(AR) rcs $@ $(OBJS)
  28. installlib: all
  29. install -m 644 $(LIB) $(prefix)/lib
  30. mkdir -p $(prefix)/include/ffmpeg
  31. install -m 644 $(SRC_PATH)/libav/avformat.h $(SRC_PATH)/libav/avio.h \
  32. $(SRC_PATH)/libav/rtp.h $(SRC_PATH)/libav/rtsp.h \
  33. $(SRC_PATH)/libav/rtspcodes.h \
  34. $(prefix)/include/ffmpeg
  35. %.o: %.c
  36. $(CC) $(CFLAGS) -c -o $@ $<
  37. clean:
  38. rm -f *.o *~ *.a