Mercurial > libavformat.hg
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 |
rev | line source |
---|---|
0 | 1 # |
2 # libavformat Makefile | |
3 # (c) 2000, 2001, 2002 Fabrice Bellard | |
4 # | |
5 include ../config.mak | |
6 | |
2 | 7 VPATH=$(SRC_PATH)/libavformat |
0 | 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 asf.o \ | |
20 | 15 avienc.o avidec.o wav.o swf.o au.o gif.o mov.o jpeg.o dv.o \ |
16 yuv4mpeg.o | |
17 # image formats | |
18 OBJS+= pnm.o yuv.o | |
0 | 19 # file I/O |
20 OBJS+= avio.o aviobuf.o file.o | |
20 | 21 OBJS+= framehook.o |
0 | 22 |
23 ifeq ($(BUILD_STRPTIME),yes) | |
24 OBJS+= strptime.o | |
25 endif | |
26 | |
27 ifeq ($(CONFIG_VIDEO4LINUX),yes) | |
28 OBJS+= grab.o | |
29 endif | |
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 | 35 ifeq ($(CONFIG_AUDIO_OSS),yes) |
36 OBJS+= audio.o | |
37 endif | |
38 | |
39 ifeq ($(CONFIG_AUDIO_BEOS),yes) | |
40 OBJS+= beosaudio.o | |
41 endif | |
42 | |
43 ifeq ($(CONFIG_NETWORK),yes) | |
44 OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o | |
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 | 47 OBJS+= barpainet.o |
48 endif | |
49 endif | |
50 | |
51 ifeq ($(CONFIG_VORBIS),yes) | |
52 OBJS+= ogg.o | |
53 endif | |
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 | 56 |
26 | 57 SRCS := $(OBJS:.o=.c) |
23
f6aae828c320
AUtomatic dependency generation. Runs on Linux (at least). Probably should
philipjsg
parents:
22
diff
changeset
|
58 |
0 | 59 all: $(LIB) |
60 | |
26 | 61 $(LIB): .depend $(OBJS) |
0 | 62 rm -f $@ |
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 | 65 $(RANLIB) $@ |
22
65433f1b2549
os2 support patch by ("Slavik Gnatenko" <miracle9 at newmail dot ru>)
michaelni
parents:
20
diff
changeset
|
66 endif |
0 | 67 |
26 | 68 .depend: $(SRCS) |
69 $(CC) -MM $(CFLAGS) $^ 1>.depend | |
70 | |
0 | 71 installlib: all |
72 install -m 644 $(LIB) $(prefix)/lib | |
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 | 77 $(prefix)/include/ffmpeg |
78 | |
79 %.o: %.c | |
80 $(CC) $(CFLAGS) -c -o $@ $< | |
81 | |
82 # BeOS: remove -Wall to get rid of all the "multibyte constant" warnings | |
83 %.o: %.cpp | |
84 g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $< | |
85 | |
86 clean: | |
26 | 87 rm -f *.o *.d .depend *~ *.a $(LIB) |
88 | |
89 # | |
90 # include dependency files if they exist | |
91 # | |
92 ifneq ($(wildcard .depend),) | |
93 include .depend | |
94 endif |