annotate Makefile @ 16:863c1133ba73 libavformat

libav -> libavformat in Makefile patch by (Thomas Jarosch <tomj at simonv dot com>)
author michaelni
date Mon, 30 Dec 2002 01:07:47 +0000
parents 06b1347b3c8e
children 3d52de18ecc3
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 \
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
15 avienc.o avidec.o wav.o swf.o au.o gif.o mov.o jpeg.o dv.o framehook.o
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
16 # file I/O
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
17 OBJS+= avio.o aviobuf.o file.o
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
18
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
19 ifeq ($(BUILD_STRPTIME),yes)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
20 OBJS+= strptime.o
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
21 endif
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
22
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
23 ifeq ($(CONFIG_VIDEO4LINUX),yes)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
24 OBJS+= grab.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_AUDIO_OSS),yes)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
28 OBJS+= audio.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_BEOS),yes)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
32 OBJS+= beosaudio.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_NETWORK),yes)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
36 OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
37 # BeOS network stuff
1
464f4e8aa417 More changes to make things compile on more platforms
philipjsg
parents: 0
diff changeset
38 ifeq ($(NEED_INET_ATON),yes)
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
39 OBJS+= barpainet.o
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
40 endif
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_VORBIS),yes)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
44 OBJS+= ogg.o
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 LIB= libavformat.a
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
48
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
49 all: $(LIB)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
50
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
51 $(LIB): $(OBJS)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
52 rm -f $@
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
53 $(AR) rc $@ $(OBJS)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
54 $(RANLIB) $@
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
55
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
56 installlib: all
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
57 install -m 644 $(LIB) $(prefix)/lib
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
58 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
59 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
60 $(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
61 $(SRC_PATH)/libavformat/rtspcodes.h \
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
62 $(prefix)/include/ffmpeg
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
63
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
64 %.o: %.c
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
65 $(CC) $(CFLAGS) -c -o $@ $<
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
66
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
67 # BeOS: remove -Wall to get rid of all the "multibyte constant" warnings
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
68 %.o: %.cpp
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
69 g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $<
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
70
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
71 clean:
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
72 rm -f *.o *~ *.a