fixed -msse stuff
[libav.git] / libavformat / Makefile
CommitLineData
19720f15
FB
1#
2# libavformat Makefile
3# (c) 2000, 2001, 2002 Fabrice Bellard
4#
980fc7b8 5include ../config.mak
f57a4535 6
a382b927 7VPATH=$(SRC_PATH)/libavformat
f57a4535 8
eddbd7e5 9CFLAGS= $(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
85f07f22 10
910fdd21 11OBJS= utils.o cutils.o allformats.o
c9a65ca8
FB
12
13# mux and demuxes
14OBJS+=mpeg.o mpegts.o ffm.o crc.o img.o raw.o rm.o asf.o \
87a0a681
FB
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
18OBJS+= pnm.o yuv.o
c9a65ca8
FB
19# file I/O
20OBJS+= avio.o aviobuf.o file.o
87a0a681 21OBJS+= framehook.o
8be1c656 22
487ec9a0
PG
23ifeq ($(BUILD_STRPTIME),yes)
24OBJS+= strptime.o
25endif
26
19720f15
FB
27ifeq ($(CONFIG_VIDEO4LINUX),yes)
28OBJS+= grab.o
8be1c656 29endif
85f07f22 30
19720f15
FB
31ifeq ($(CONFIG_AUDIO_OSS),yes)
32OBJS+= audio.o
33endif
34
dfdfa47c
FR
35ifeq ($(CONFIG_AUDIO_BEOS),yes)
36OBJS+= beosaudio.o
37endif
38
19720f15 39ifeq ($(CONFIG_NETWORK),yes)
bdd7d518 40OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
9ddd71fc 41# BeOS network stuff
4baca069 42ifeq ($(NEED_INET_ATON),yes)
9ddd71fc
FR
43OBJS+= barpainet.o
44endif
a74127c0
FB
45endif
46
81e0d0b4
MH
47ifeq ($(CONFIG_VORBIS),yes)
48OBJS+= ogg.o
49endif
50
f3ec2d46 51LIB= $(LIBPREF)avformat$(LIBSUF)
85f07f22 52
77b71ddc
PG
53DEPS= $(OBJS:.o=.d)
54
85f07f22
FB
55all: $(LIB)
56
57$(LIB): $(OBJS)
58 rm -f $@
be7109c1 59 $(AR) rc $@ $(OBJS)
f3ec2d46 60ifneq ($(CONFIG_OS2),yes)
be7109c1 61 $(RANLIB) $@
f3ec2d46 62endif
85f07f22 63
910fdd21
FB
64installlib: all
65 install -m 644 $(LIB) $(prefix)/lib
66 mkdir -p $(prefix)/include/ffmpeg
f60f0df1
TJ
67 install -m 644 $(SRC_PATH)/libavformat/avformat.h $(SRC_PATH)/libavformat/avio.h \
68 $(SRC_PATH)/libavformat/rtp.h $(SRC_PATH)/libavformat/rtsp.h \
69 $(SRC_PATH)/libavformat/rtspcodes.h \
910fdd21
FB
70 $(prefix)/include/ffmpeg
71
85f07f22
FB
72%.o: %.c
73 $(CC) $(CFLAGS) -c -o $@ $<
74
77b71ddc
PG
75%.d: %.c
76 @echo $@ \\ > $@
77 $(CC) $(CFLAGS) -MM $< >> $@
78
79-include $(DEPS)
80
dfdfa47c
FR
81# BeOS: remove -Wall to get rid of all the "multibyte constant" warnings
82%.o: %.cpp
83 g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $<
84
85f07f22 85clean:
77b71ddc 86 rm -f *.o *.d *~ *.a $(LIB)