fixed: Linux build error. Silly me...
[xbmc:xbmc-antiquated.git] / xbmc / cores / dvdplayer / Codecs / Makefile.in
1
2 CC=@CC@
3 CXX=@CXX@
4 SHELL=/bin/bash
5 LDFLAGS=-shared -fPIC -rdynamic
6 ARCH=@ARCH@
7 SYSDIR=../../../../system/players/dvdplayer
8 WRAPPER=../../DllLoader/exports/wrapper.o
9 DIRS=   ffmpeg \
10         libDVDCSS \
11         libdts \
12         libdvdnav \
13         libfaad2 \
14         libmad \
15         liba52 \
16         libmpeg2 \
17
18 LIBS=   avutil-49-$(ARCH).so \
19         avcodec-52-$(ARCH).so \
20         avformat-52-$(ARCH).so \
21         postproc-51-$(ARCH).so \
22         swscale-0.6.1-$(ARCH).so \
23         libDVDCSS-$(ARCH).so \
24         libdts-$(ARCH).so \
25         libdvdnav-$(ARCH).so \
26         libfaad-$(ARCH).so \
27         libmad-$(ARCH).so \
28         liba52-$(ARCH).so \
29         libao-$(ARCH).so \
30         libmpeg2-$(ARCH).so \
31
32 .PHONY: $(DIRS) codecs
33
34 codecs: $(addprefix $(SYSDIR)/, $(LIBS));
35
36 $(SYSDIR)/avutil-49-$(ARCH).so: ffmpeg/libavutil/libavutil.so
37         $(CC) -o $@ $(LDFLAGS) --soname,$@ ffmpeg/libavutil/*.o \
38                 `cat $(WRAPPER:.o=.def)` $(WRAPPER)
39
40 $(SYSDIR)/avcodec-52-$(ARCH).so: $(WRAPPER) ffmpeg/libavcodec/libavcodec.so
41         $(CC) -o $@ $(LDFLAGS) --soname,$@ ffmpeg/libavcodec/*.o \
42                 ffmpeg/libavcodec/i386/*.o `cat $(WRAPPER:.o=.def)` $(WRAPPER)
43
44 $(SYSDIR)/avformat-52-$(ARCH).so: $(WRAPPER) ffmpeg/libavformat/libavformat.so
45         $(CC) -o $@ $(LDFLAGS) --soname,$@ ffmpeg/libavformat/*.o \
46                 `cat $(WRAPPER:.o=.def)` $(WRAPPER)
47
48 $(SYSDIR)/swscale-0.6.1-$(ARCH).so: $(WRAPPER) ffmpeg/libswscale/libswscale.so
49         $(CC) -o $@ $(LDFLAGS) --soname,$@ ffmpeg/libswscale/*.o \
50                 `cat $(WRAPPER:.o=.def)` $(WRAPPER)
51
52 $(SYSDIR)/postproc-51-$(ARCH).so: $(WRAPPER) ffmpeg/libpostproc/libpostproc.so
53         $(CC) -o $@ $(LDFLAGS) --soname,$@ ffmpeg/libpostproc/*.o \
54                 `cat $(WRAPPER:.o=.def)` $(WRAPPER)
55
56 $(SYSDIR)/libdts-$(ARCH).so: $(WRAPPER) libdts/libdts/libdts.a
57         $(CC) -o $@ $(LDFLAGS) --soname,$@ libdts/libdts/bitstream.o \
58                 libdts/libdts/downmix.o libdts/libdts/parse.o \
59                 `cat $(WRAPPER:.o=.def)` $(WRAPPER)
60
61 $(SYSDIR)/libDVDCSS-$(ARCH).so: $(WRAPPER) libDVDCSS/src/libdvdcss.la
62         $(CC) -o $@ $(LDFLAGS) --soname,$@ libDVDCSS/src/*.o \
63                 `cat $(WRAPPER:.o=.def)` $(WRAPPER)
64
65 $(SYSDIR)/libdvdnav-$(ARCH).so: $(WRAPPER) libDVDCSS/src/libdvdcss.la libdvdnav/src/libdvdnav.la libdvdnav/src/vm/libdvdvm.la libdvdnav/src/dvdread/libdvdread.la
66         $(CC) -o $@ $(LDFLAGS) --soname,$@ libDVDCSS/src/*.o libdvdnav/src/*.o libdvdnav/src/vm/*.o libdvdnav/src/dvdread/*.o \
67                 `cat $(WRAPPER:.o=.def)` $(WRAPPER)
68
69 $(SYSDIR)/libfaad-$(ARCH).so: $(WRAPPER) libfaad2/libfaad/libfaad.la
70         $(CC) -o $@ $(LDFLAGS) --soname,$@ libfaad2/libfaad/*.o \
71                 `cat $(WRAPPER:.o=.def)` $(WRAPPER)
72
73 $(SYSDIR)/libmad-$(ARCH).so: libmad/libmad.la
74         cp libmad/.libs/libmad.so $@
75
76 $(SYSDIR)/liba52-$(ARCH).so: $(WRAPPER) liba52/liba52/liba52.la
77         $(CC) -o $@ $(LDFLAGS) --soname,$@ liba52/liba52/*.o \
78                 -Wl`cat $(WRAPPER:.o=.def)` $(WRAPPER)
79
80 $(SYSDIR)/libao-$(ARCH).so: $(WRAPPER) liba52/libao/libao.a
81         $(CC) -o $@ $(LDFLAGS) --soname,$@ liba52/libao/*.o \
82                 -Wl`cat $(WRAPPER:.o=.def)` $(WRAPPER)
83
84 $(SYSDIR)/libmpeg2-$(ARCH).so: $(WRAPPER) libmpeg2/libmpeg2/libmpeg2.la
85         $(CC) -o $@ $(LDFLAGS) --soname,$@ libmpeg2/libmpeg2/.libs/*.o \
86                 -Wl`cat $(WRAPPER:.o=.def)` $(WRAPPER)
87
88 ffmpeg/libavutil/libavutil.so     : ffmpeg;
89 ffmpeg/libavformat/libavformat.so : ffmpeg;
90 ffmpeg/libavcodec/libavcodec.so   : ffmpeg;
91 ffmpeg/libswscale/libswscale.so   : ffmpeg;
92 ffmpeg/libpostproc/libpostproc.so : ffmpeg;
93 ffmpeg:
94         $(MAKE) -C $@
95
96 libdts/libdts/libdts.a : libdts;
97 libdts:
98         $(MAKE) -C $@
99
100 libDVDCSS/src/libdvdcss.la: libDVDCSS;
101 libDVDCSS:
102         $(MAKE) -C $@
103
104 libdvdnav/src/libdvdnav.la          : libdvdnav;
105 libdvdnav/src/vm/libdvdvm.la        : libdvdnav;
106 libdvdnav/src/dvdread/libdvdread.la : libdvdnav;
107 libdvdnav: libDVDCSS
108         $(MAKE) -C $@
109
110 libfaad2/libfaad/libfaad.la: libfaad2;
111 libfaad2:
112         $(MAKE) -C $@
113
114 libmad/libmad.la: libmad;
115 libmad:
116         $(MAKE) -C $@
117
118 liba52/liba52/liba52.la: liba52
119 liba52/libao/libao.a: liba52
120 liba52:
121         $(MAKE) -C $@
122
123 libmpeg2/libmpeg2/libmpeg2.la: libmpeg2
124 libmpeg2:
125         $(MAKE) -C $@
126
127 clean:
128         rm -f $(addprefix $(SYSDIR)/, $(LIBS))
129         for i in $(DIRS); do $(MAKE) -C "$$i" clean; done
130
131 distclean:
132         rm -f $(addprefix $(SYSDIR)/, $(LIBS))
133         for i in $(DIRS); do $(MAKE) -C "$$i" distclean; done
134