Mercurial > libavformat.hg
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 |
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 | |
31 ifeq ($(CONFIG_AUDIO_OSS),yes) | |
32 OBJS+= audio.o | |
33 endif | |
34 | |
35 ifeq ($(CONFIG_AUDIO_BEOS),yes) | |
36 OBJS+= beosaudio.o | |
37 endif | |
38 | |
39 ifeq ($(CONFIG_NETWORK),yes) | |
40 OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o | |
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 | 43 OBJS+= barpainet.o |
44 endif | |
45 endif | |
46 | |
47 ifeq ($(CONFIG_VORBIS),yes) | |
48 OBJS+= ogg.o | |
49 endif | |
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 | 52 |
26 | 53 SRCS := $(OBJS:.o=.c) |
23
f6aae828c320
AUtomatic dependency generation. Runs on Linux (at least). Probably should
philipjsg
parents:
22
diff
changeset
|
54 |
0 | 55 all: $(LIB) |
56 | |
26 | 57 $(LIB): .depend $(OBJS) |
0 | 58 rm -f $@ |
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 | 61 $(RANLIB) $@ |
22
65433f1b2549
os2 support patch by ("Slavik Gnatenko" <miracle9 at newmail dot ru>)
michaelni
parents:
20
diff
changeset
|
62 endif |
0 | 63 |
26 | 64 .depend: $(SRCS) |
65 $(CC) -MM $(CFLAGS) $^ 1>.depend | |
66 | |
0 | 67 installlib: all |
68 install -m 644 $(LIB) $(prefix)/lib | |
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 | 73 $(prefix)/include/ffmpeg |
74 | |
75 %.o: %.c | |
76 $(CC) $(CFLAGS) -c -o $@ $< | |
77 | |
78 # BeOS: remove -Wall to get rid of all the "multibyte constant" warnings | |
79 %.o: %.cpp | |
80 g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $< | |
81 | |
82 clean: | |
26 | 83 rm -f *.o *.d .depend *~ *.a $(LIB) |
84 | |
85 # | |
86 # include dependency files if they exist | |
87 # | |
88 ifneq ($(wildcard .depend),) | |
89 include .depend | |
90 endif |