annotate Makefile @ 54:ac743522245b libavformat

removing unused stuff
author bellard
date Tue, 04 Feb 2003 23:43:14 +0000
parents 45308962220f
children bde449e6b743
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
40
721705c1f995 --disable-risky support
michaelni
parents: 27
diff changeset
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
3d52de18ecc3 added still image support
bellard
parents: 16
diff changeset
16 yuv4mpeg.o
40
721705c1f995 --disable-risky support
michaelni
parents: 27
diff changeset
17
721705c1f995 --disable-risky support
michaelni
parents: 27
diff changeset
18 ifeq ($(CONFIG_RISKY),yes)
721705c1f995 --disable-risky support
michaelni
parents: 27
diff changeset
19 OBJS+= asf.o
721705c1f995 --disable-risky support
michaelni
parents: 27
diff changeset
20 endif
721705c1f995 --disable-risky support
michaelni
parents: 27
diff changeset
21
20
3d52de18ecc3 added still image support
bellard
parents: 16
diff changeset
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
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
24 # file I/O
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
25 OBJS+= avio.o aviobuf.o file.o
20
3d52de18ecc3 added still image support
bellard
parents: 16
diff changeset
26 OBJS+= framehook.o
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
27
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
28 ifeq ($(BUILD_STRPTIME),yes)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
29 OBJS+= strptime.o
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
30 endif
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
31
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
32 ifeq ($(CONFIG_VIDEO4LINUX),yes)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
33 OBJS+= grab.o
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
34 endif
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
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
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
40 ifeq ($(CONFIG_AUDIO_OSS),yes)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
41 OBJS+= audio.o
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
42 endif
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
43
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
44 ifeq ($(CONFIG_AUDIO_BEOS),yes)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
45 OBJS+= beosaudio.o
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
46 endif
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
47
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
48 ifeq ($(CONFIG_NETWORK),yes)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
49 OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
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
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
52 OBJS+= barpainet.o
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
53 endif
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
54 endif
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
55
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
56 ifeq ($(CONFIG_VORBIS),yes)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
57 OBJS+= ogg.o
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
58 endif
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
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
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
61
26
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
62 SRCS := $(OBJS:.o=.c)
23
f6aae828c320 AUtomatic dependency generation. Runs on Linux (at least). Probably should
philipjsg
parents: 22
diff changeset
63
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
64 all: $(LIB)
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
65
43
a23fb606308a added basic png handling - do not remake dependencies automatically
bellard
parents: 40
diff changeset
66 $(LIB): $(OBJS)
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
67 rm -f $@
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
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
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
70 $(RANLIB) $@
22
65433f1b2549 os2 support patch by ("Slavik Gnatenko" <miracle9 at newmail dot ru>)
michaelni
parents: 20
diff changeset
71 endif
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
72
43
a23fb606308a added basic png handling - do not remake dependencies automatically
bellard
parents: 40
diff changeset
73 depend: $(SRCS)
26
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
74 $(CC) -MM $(CFLAGS) $^ 1>.depend
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
75
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
76 installlib: all
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
77 install -m 644 $(LIB) $(prefix)/lib
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
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
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
82 $(prefix)/include/ffmpeg
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
83
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
84 %.o: %.c
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
85 $(CC) $(CFLAGS) -c -o $@ $<
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
86
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
87 # BeOS: remove -Wall to get rid of all the "multibyte constant" warnings
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
88 %.o: %.cpp
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
89 g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $<
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
90
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
91 clean:
26
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
92 rm -f *.o *.d .depend *~ *.a $(LIB)
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
93
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
94 #
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
95 # include dependency files if they exist
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
96 #
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
97 ifneq ($(wildcard .depend),)
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
98 include .depend
ec4e7f9b4515 dependency handling is consistant with libavcodec
bellard
parents: 23
diff changeset
99 endif