annotate Makefile @ 27:fcdea3df94fe libavformat

dv patch by Max Krasnyansky (maxk at qualcomm dot com)
author bellard
date Wed, 22 Jan 2003 22:40:52 +0000
parents ec4e7f9b4515
children 721705c1f995
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
1 #
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
2 # libavformat Makefile
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
3 # (c) 2000, 2001, 2002 Fabrice Bellard
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
4 #
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
5 include ../config.mak
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
6
2
06b1347b3c8e fixed multidir compile
bellard
parents: 1
diff changeset
7 VPATH=$(SRC_PATH)/libavformat
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
8
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
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
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
10
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
11 OBJS= utils.o cutils.o allformats.o
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
12
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
13 # mux and demuxes
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
14 OBJS+=mpeg.o mpegts.o ffm.o crc.o img.o raw.o rm.o asf.o \
20
3d52de18ecc3 added still image support
bellard
parents: 16
diff changeset
15 avienc.o avidec.o wav.o swf.o au.o gif.o mov.o jpeg.o dv.o \
3d52de18ecc3 added still image support
bellard
parents: 16
diff changeset
16 yuv4mpeg.o
3d52de18ecc3 added still image support
bellard
parents: 16
diff changeset
17 # image formats
3d52de18ecc3 added still image support
bellard
parents: 16
diff changeset
18 OBJS+= pnm.o yuv.o
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
19 # file I/O
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
20 OBJS+= avio.o aviobuf.o file.o
20
3d52de18ecc3 added still image support
bellard
parents: 16
diff changeset
21 OBJS+= framehook.o
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
22
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
23 ifeq ($(BUILD_STRPTIME),yes)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
24 OBJS+= strptime.o
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
25 endif
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
26
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
27 ifeq ($(CONFIG_VIDEO4LINUX),yes)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
28 OBJS+= grab.o
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
29 endif
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
30
27
fcdea3df94fe dv patch by Max Krasnyansky (maxk at qualcomm dot com)
bellard
parents: 26
diff changeset
31 ifeq ($(CONFIG_DV1394),yes)
fcdea3df94fe dv patch by Max Krasnyansky (maxk at qualcomm dot com)
bellard
parents: 26
diff changeset
32 OBJS+= dv1394.o
fcdea3df94fe dv patch by Max Krasnyansky (maxk at qualcomm dot com)
bellard
parents: 26
diff changeset
33 endif
fcdea3df94fe dv patch by Max Krasnyansky (maxk at qualcomm dot com)
bellard
parents: 26
diff changeset
34
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
35 ifeq ($(CONFIG_AUDIO_OSS),yes)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
36 OBJS+= audio.o
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
37 endif
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
38
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
39 ifeq ($(CONFIG_AUDIO_BEOS),yes)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
40 OBJS+= beosaudio.o
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
41 endif
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
42
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
43 ifeq ($(CONFIG_NETWORK),yes)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
44 OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
45 # BeOS network stuff
1
464f4e8aa417 More changes to make things compile on more platforms
philipjsg
parents: 0
diff changeset
46 ifeq ($(NEED_INET_ATON),yes)
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
47 OBJS+= barpainet.o
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
48 endif
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
49 endif
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
50
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
51 ifeq ($(CONFIG_VORBIS),yes)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
52 OBJS+= ogg.o
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
53 endif
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
54
22
65433f1b2549 os2 support patch by ("Slavik Gnatenko" <miracle9 at newmail dot ru>)
michaelni
parents: 20
diff changeset
55 LIB= $(LIBPREF)avformat$(LIBSUF)
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
56
26
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
57 SRCS := $(OBJS:.o=.c)
23
f6aae828c320 AUtomatic dependency generation. Runs on Linux (at least). Probably should
philipjsg
parents: 22
diff changeset
58
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
59 all: $(LIB)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
60
26
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
61 $(LIB): .depend $(OBJS)
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
62 rm -f $@
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
63 $(AR) rc $@ $(OBJS)
22
65433f1b2549 os2 support patch by ("Slavik Gnatenko" <miracle9 at newmail dot ru>)
michaelni
parents: 20
diff changeset
64 ifneq ($(CONFIG_OS2),yes)
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
65 $(RANLIB) $@
22
65433f1b2549 os2 support patch by ("Slavik Gnatenko" <miracle9 at newmail dot ru>)
michaelni
parents: 20
diff changeset
66 endif
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
67
26
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
68 .depend: $(SRCS)
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
69 $(CC) -MM $(CFLAGS) $^ 1>.depend
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
70
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
71 installlib: all
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
72 install -m 644 $(LIB) $(prefix)/lib
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
73 mkdir -p $(prefix)/include/ffmpeg
16
863c1133ba73 libav -> libavformat in Makefile patch by (Thomas Jarosch <tomj at simonv dot com>)
michaelni
parents: 2
diff changeset
74 install -m 644 $(SRC_PATH)/libavformat/avformat.h $(SRC_PATH)/libavformat/avio.h \
863c1133ba73 libav -> libavformat in Makefile patch by (Thomas Jarosch <tomj at simonv dot com>)
michaelni
parents: 2
diff changeset
75 $(SRC_PATH)/libavformat/rtp.h $(SRC_PATH)/libavformat/rtsp.h \
863c1133ba73 libav -> libavformat in Makefile patch by (Thomas Jarosch <tomj at simonv dot com>)
michaelni
parents: 2
diff changeset
76 $(SRC_PATH)/libavformat/rtspcodes.h \
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
77 $(prefix)/include/ffmpeg
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
78
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
79 %.o: %.c
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
80 $(CC) $(CFLAGS) -c -o $@ $<
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
81
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
82 # BeOS: remove -Wall to get rid of all the "multibyte constant" warnings
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
83 %.o: %.cpp
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
84 g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $<
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
85
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
86 clean:
26
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
87 rm -f *.o *.d .depend *~ *.a $(LIB)
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
88
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
89 #
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
90 # include dependency files if they exist
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
91 #
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
92 ifneq ($(wildcard .depend),)
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
93 include .depend
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
94 endif