annotate Makefile @ 26:ec4e7f9b4515 libavformat

dependency handling is consistant with libavcodec
author bellard
date Wed, 22 Jan 2003 09:53:25 +0000
parents f6aae828c320
children fcdea3df94fe
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
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
31 ifeq ($(CONFIG_AUDIO_OSS),yes)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
32 OBJS+= audio.o
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
33 endif
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
34
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
35 ifeq ($(CONFIG_AUDIO_BEOS),yes)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
36 OBJS+= beosaudio.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_NETWORK),yes)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
40 OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
41 # BeOS network stuff
1
464f4e8aa417 More changes to make things compile on more platforms
philipjsg
parents: 0
diff changeset
42 ifeq ($(NEED_INET_ATON),yes)
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
43 OBJS+= barpainet.o
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
44 endif
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
45 endif
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
46
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
47 ifeq ($(CONFIG_VORBIS),yes)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
48 OBJS+= ogg.o
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
49 endif
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
50
22
65433f1b2549 os2 support patch by ("Slavik Gnatenko" <miracle9 at newmail dot ru>)
michaelni
parents: 20
diff changeset
51 LIB= $(LIBPREF)avformat$(LIBSUF)
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
52
26
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
53 SRCS := $(OBJS:.o=.c)
23
f6aae828c320 AUtomatic dependency generation. Runs on Linux (at least). Probably should
philipjsg
parents: 22
diff changeset
54
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
55 all: $(LIB)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
56
26
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
57 $(LIB): .depend $(OBJS)
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
58 rm -f $@
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
59 $(AR) rc $@ $(OBJS)
22
65433f1b2549 os2 support patch by ("Slavik Gnatenko" <miracle9 at newmail dot ru>)
michaelni
parents: 20
diff changeset
60 ifneq ($(CONFIG_OS2),yes)
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
61 $(RANLIB) $@
22
65433f1b2549 os2 support patch by ("Slavik Gnatenko" <miracle9 at newmail dot ru>)
michaelni
parents: 20
diff changeset
62 endif
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
63
26
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
64 .depend: $(SRCS)
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
65 $(CC) -MM $(CFLAGS) $^ 1>.depend
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
66
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
67 installlib: all
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
68 install -m 644 $(LIB) $(prefix)/lib
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
69 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
70 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
71 $(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
72 $(SRC_PATH)/libavformat/rtspcodes.h \
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
73 $(prefix)/include/ffmpeg
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
74
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
75 %.o: %.c
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
76 $(CC) $(CFLAGS) -c -o $@ $<
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
77
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
78 # BeOS: remove -Wall to get rid of all the "multibyte constant" warnings
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
79 %.o: %.cpp
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
80 g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $<
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
81
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
82 clean:
26
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
83 rm -f *.o *.d .depend *~ *.a $(LIB)
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
84
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
85 #
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
86 # include dependency files if they exist
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
87 #
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
88 ifneq ($(wildcard .depend),)
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
89 include .depend
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
90 endif