Mercurial > libavformat.hg
annotate Makefile @ 23:f6aae828c320 libavformat
AUtomatic dependency generation. Runs on Linux (at least). Probably should
update .cvsignore (somehere) to exclude .d files
author | philipjsg |
---|---|
date | Tue, 14 Jan 2003 15:30:42 +0000 |
parents | 65433f1b2549 |
children | ec4e7f9b4515 |
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 |
23
f6aae828c320
AUtomatic dependency generation. Runs on Linux (at least). Probably should
philipjsg
parents:
22
diff
changeset
|
53 DEPS= $(OBJS:.o=.d) |
f6aae828c320
AUtomatic dependency generation. Runs on Linux (at least). Probably should
philipjsg
parents:
22
diff
changeset
|
54 |
0 | 55 all: $(LIB) |
56 | |
57 $(LIB): $(OBJS) | |
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 |
64 installlib: all | |
65 install -m 644 $(LIB) $(prefix)/lib | |
66 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
|
67 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
|
68 $(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
|
69 $(SRC_PATH)/libavformat/rtspcodes.h \ |
0 | 70 $(prefix)/include/ffmpeg |
71 | |
72 %.o: %.c | |
73 $(CC) $(CFLAGS) -c -o $@ $< | |
74 | |
23
f6aae828c320
AUtomatic dependency generation. Runs on Linux (at least). Probably should
philipjsg
parents:
22
diff
changeset
|
75 %.d: %.c |
f6aae828c320
AUtomatic dependency generation. Runs on Linux (at least). Probably should
philipjsg
parents:
22
diff
changeset
|
76 @echo $@ \\ > $@ |
f6aae828c320
AUtomatic dependency generation. Runs on Linux (at least). Probably should
philipjsg
parents:
22
diff
changeset
|
77 $(CC) $(CFLAGS) -MM $< >> $@ |
f6aae828c320
AUtomatic dependency generation. Runs on Linux (at least). Probably should
philipjsg
parents:
22
diff
changeset
|
78 |
f6aae828c320
AUtomatic dependency generation. Runs on Linux (at least). Probably should
philipjsg
parents:
22
diff
changeset
|
79 -include $(DEPS) |
f6aae828c320
AUtomatic dependency generation. Runs on Linux (at least). Probably should
philipjsg
parents:
22
diff
changeset
|
80 |
0 | 81 # BeOS: remove -Wall to get rid of all the "multibyte constant" warnings |
82 %.o: %.cpp | |
83 g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $< | |
84 | |
85 clean: | |
23
f6aae828c320
AUtomatic dependency generation. Runs on Linux (at least). Probably should
philipjsg
parents:
22
diff
changeset
|
86 rm -f *.o *.d *~ *.a $(LIB) |