Mercurial > libavformat.hg
annotate Makefile @ 54:ac743522245b libavformat
removing unused stuff
author | bellard |
---|---|
date | Tue, 04 Feb 2003 23:43:14 +0000 |
parents | 45308962220f |
children | bde449e6b743 |
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 | |
40 | 14 OBJS+=mpeg.o mpegts.o ffm.o crc.o img.o raw.o rm.o \ |
47
45308962220f
added jpeg image encoder and decoder (new YUV handling routines and mjpeg codec fixes are necessary to go further)
bellard
parents:
43
diff
changeset
|
15 avienc.o avidec.o wav.o swf.o au.o gif.o mov.o mpjpeg.o dv.o \ |
20 | 16 yuv4mpeg.o |
40 | 17 |
18 ifeq ($(CONFIG_RISKY),yes) | |
19 OBJS+= asf.o | |
20 endif | |
21 | |
20 | 22 # image formats |
47
45308962220f
added jpeg image encoder and decoder (new YUV handling routines and mjpeg codec fixes are necessary to go further)
bellard
parents:
43
diff
changeset
|
23 OBJS+= pnm.o yuv.o png.o libpng/png.o libpng/pngread.o libpng/pngrutil.o libpng/pngwrite.o libpng/pngwutil.o jpeg.o gifdec.o |
0 | 24 # file I/O |
25 OBJS+= avio.o aviobuf.o file.o | |
20 | 26 OBJS+= framehook.o |
0 | 27 |
28 ifeq ($(BUILD_STRPTIME),yes) | |
29 OBJS+= strptime.o | |
30 endif | |
31 | |
32 ifeq ($(CONFIG_VIDEO4LINUX),yes) | |
33 OBJS+= grab.o | |
34 endif | |
35 | |
27
fcdea3df94fe
dv patch by Max Krasnyansky (maxk at qualcomm dot com)
bellard
parents:
26
diff
changeset
|
36 ifeq ($(CONFIG_DV1394),yes) |
fcdea3df94fe
dv patch by Max Krasnyansky (maxk at qualcomm dot com)
bellard
parents:
26
diff
changeset
|
37 OBJS+= dv1394.o |
fcdea3df94fe
dv patch by Max Krasnyansky (maxk at qualcomm dot com)
bellard
parents:
26
diff
changeset
|
38 endif |
fcdea3df94fe
dv patch by Max Krasnyansky (maxk at qualcomm dot com)
bellard
parents:
26
diff
changeset
|
39 |
0 | 40 ifeq ($(CONFIG_AUDIO_OSS),yes) |
41 OBJS+= audio.o | |
42 endif | |
43 | |
44 ifeq ($(CONFIG_AUDIO_BEOS),yes) | |
45 OBJS+= beosaudio.o | |
46 endif | |
47 | |
48 ifeq ($(CONFIG_NETWORK),yes) | |
49 OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o | |
50 # BeOS network stuff | |
1
464f4e8aa417
More changes to make things compile on more platforms
philipjsg
parents:
0
diff
changeset
|
51 ifeq ($(NEED_INET_ATON),yes) |
0 | 52 OBJS+= barpainet.o |
53 endif | |
54 endif | |
55 | |
56 ifeq ($(CONFIG_VORBIS),yes) | |
57 OBJS+= ogg.o | |
58 endif | |
59 | |
22
65433f1b2549
os2 support patch by ("Slavik Gnatenko" <miracle9 at newmail dot ru>)
michaelni
parents:
20
diff
changeset
|
60 LIB= $(LIBPREF)avformat$(LIBSUF) |
0 | 61 |
26 | 62 SRCS := $(OBJS:.o=.c) |
23
f6aae828c320
AUtomatic dependency generation. Runs on Linux (at least). Probably should
philipjsg
parents:
22
diff
changeset
|
63 |
0 | 64 all: $(LIB) |
65 | |
43
a23fb606308a
added basic png handling - do not remake dependencies automatically
bellard
parents:
40
diff
changeset
|
66 $(LIB): $(OBJS) |
0 | 67 rm -f $@ |
68 $(AR) rc $@ $(OBJS) | |
22
65433f1b2549
os2 support patch by ("Slavik Gnatenko" <miracle9 at newmail dot ru>)
michaelni
parents:
20
diff
changeset
|
69 ifneq ($(CONFIG_OS2),yes) |
0 | 70 $(RANLIB) $@ |
22
65433f1b2549
os2 support patch by ("Slavik Gnatenko" <miracle9 at newmail dot ru>)
michaelni
parents:
20
diff
changeset
|
71 endif |
0 | 72 |
43
a23fb606308a
added basic png handling - do not remake dependencies automatically
bellard
parents:
40
diff
changeset
|
73 depend: $(SRCS) |
26 | 74 $(CC) -MM $(CFLAGS) $^ 1>.depend |
75 | |
0 | 76 installlib: all |
77 install -m 644 $(LIB) $(prefix)/lib | |
78 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
|
79 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
|
80 $(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
|
81 $(SRC_PATH)/libavformat/rtspcodes.h \ |
0 | 82 $(prefix)/include/ffmpeg |
83 | |
84 %.o: %.c | |
85 $(CC) $(CFLAGS) -c -o $@ $< | |
86 | |
87 # BeOS: remove -Wall to get rid of all the "multibyte constant" warnings | |
88 %.o: %.cpp | |
89 g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $< | |
90 | |
91 clean: | |
26 | 92 rm -f *.o *.d .depend *~ *.a $(LIB) |
93 | |
94 # | |
95 # include dependency files if they exist | |
96 # | |
97 ifneq ($(wildcard .depend),) | |
98 include .depend | |
99 endif |