]> git.sesse.net Git - ffmpeg/blob - libavformat/Makefile
added jpeg image encoder and decoder (new YUV handling routines and mjpeg codec fixes...
[ffmpeg] / libavformat / Makefile
1 #
2 # libavformat Makefile
3 # (c) 2000, 2001, 2002 Fabrice Bellard
4 #
5 include ../config.mak
6
7 VPATH=$(SRC_PATH)/libavformat
8
9 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
10
11 OBJS= utils.o cutils.o allformats.o
12
13 # mux and demuxes
14 OBJS+=mpeg.o mpegts.o ffm.o crc.o img.o raw.o rm.o \
15       avienc.o avidec.o wav.o swf.o au.o gif.o mov.o mpjpeg.o dv.o \
16       yuv4mpeg.o
17
18 ifeq ($(CONFIG_RISKY),yes)
19 OBJS+= asf.o
20 endif
21
22 # image formats
23 OBJS+= pnm.o yuv.o png.o libpng/png.o libpng/pngread.o libpng/pngrutil.o libpng/pngwrite.o libpng/pngwutil.o jpeg.o gifdec.o
24 # file I/O
25 OBJS+= avio.o aviobuf.o file.o 
26 OBJS+= framehook.o 
27
28 ifeq ($(BUILD_STRPTIME),yes)
29 OBJS+= strptime.o
30 endif
31
32 ifeq ($(CONFIG_VIDEO4LINUX),yes)
33 OBJS+= grab.o
34 endif
35
36 ifeq ($(CONFIG_DV1394),yes)
37 OBJS+= dv1394.o
38 endif
39
40 ifeq ($(CONFIG_AUDIO_OSS),yes)
41 OBJS+= audio.o 
42 endif
43
44 ifeq ($(CONFIG_AUDIO_BEOS),yes)
45 OBJS+= beosaudio.o
46 endif
47
48 ifeq ($(CONFIG_NETWORK),yes)
49 OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
50 # BeOS network stuff
51 ifeq ($(NEED_INET_ATON),yes)
52 OBJS+= barpainet.o
53 endif
54 endif
55
56 ifeq ($(CONFIG_VORBIS),yes)
57 OBJS+= ogg.o
58 endif
59
60 LIB= $(LIBPREF)avformat$(LIBSUF)
61
62 SRCS := $(OBJS:.o=.c)
63
64 all: $(LIB)
65
66 $(LIB): $(OBJS)
67         rm -f $@
68         $(AR) rc $@ $(OBJS)
69 ifneq ($(CONFIG_OS2),yes)
70         $(RANLIB) $@
71 endif
72
73 depend: $(SRCS)
74         $(CC) -MM $(CFLAGS) $^ 1>.depend
75
76 installlib: all
77         install -m 644 $(LIB) $(prefix)/lib
78         mkdir -p $(prefix)/include/ffmpeg
79         install -m 644 $(SRC_PATH)/libavformat/avformat.h $(SRC_PATH)/libavformat/avio.h \
80                 $(SRC_PATH)/libavformat/rtp.h $(SRC_PATH)/libavformat/rtsp.h \
81                 $(SRC_PATH)/libavformat/rtspcodes.h \
82                 $(prefix)/include/ffmpeg
83
84 %.o: %.c
85         $(CC) $(CFLAGS) -c -o $@ $< 
86
87 # BeOS: remove -Wall to get rid of all the "multibyte constant" warnings
88 %.o: %.cpp
89         g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $< 
90
91 clean: 
92         rm -f *.o *.d .depend *~ *.a $(LIB)
93
94 #
95 # include dependency files if they exist
96 #
97 ifneq ($(wildcard .depend),)
98 include .depend
99 endif