1 # Automake forgets to add a proper tag to libtool with Objective-C files.
2 # Moreover Libtool should default tag to CC when none is specified but
3 # obviously does not. Here is a fix for that.
4 LIBTOOL=@LIBTOOL@ --tag=CC
6 BASE_SUBDIRS = bd mms rtp rtsp screen vcd vcdx zip
8 SUBDIRS = $(BASE_SUBDIRS)
9 DIST_SUBDIRS = $(BASE_SUBDIRS) $(EXTRA_SUBDIRS)
15 libfilesystem_plugin_la_SOURCES = \
20 libfilesystem_plugin_la_CFLAGS = $(AM_CFLAGS)
21 libfilesystem_plugin_la_LIBADD = $(AM_LIBADD)
23 libfilesystem_plugin_la_LIBADD += -lshlwapi
25 libfilesystem_plugin_la_DEPENDENCIES =
27 libidummy_plugin_la_SOURCES = idummy.c
28 libidummy_plugin_la_CFLAGS = $(AM_CFLAGS)
29 libidummy_plugin_la_LIBADD = $(AM_LIBADD)
30 libidummy_plugin_la_DEPENDENCIES =
32 libsdp_plugin_la_SOURCES = sdp.c
33 libsdp_plugin_la_CFLAGS = $(AM_CFLAGS)
34 libsdp_plugin_la_LIBADD = $(AM_LIBADD)
35 libsdp_plugin_la_DEPENDENCIES =
37 libaccess_smb_plugin_la_SOURCES = smb.c
38 libaccess_smb_plugin_la_CFLAGS = $(AM_CFLAGS)
39 libaccess_smb_plugin_la_LIBADD = $(AM_LIBADD) $(LIBS_access_smb)
41 libaccess_smb_plugin_la_LIBADD += -lmpr
43 libaccess_smb_plugin_la_DEPENDENCIES =
44 libvlc_LTLIBRARIES += $(LTLIBaccess_smb)
46 SOURCES_access_directory = directory.c
47 SOURCES_access_dv = dv.c
48 SOURCES_access_udp = udp.c
49 SOURCES_access_tcp = tcp.c
50 SOURCES_access_http = http.c
51 SOURCES_access_ftp = ftp.c
52 SOURCES_access_gnomevfs = gnomevfs.c
53 SOURCES_access_eyetv = eyetv.m
54 SOURCES_dvdnav = dvdnav.c
55 SOURCES_dvdread = dvdread.c
56 SOURCES_dc1394 = dc1394.c
58 SOURCES_linsys_sdi = linsys/linsys_sdi.c linsys/linsys_sdi.h
59 SOURCES_linsys_hdsdi = \
60 linsys/linsys_hdsdi.c \
61 linsys/linsys_sdiaudio.h \
62 linsys/linsys_sdivideo.h \
68 vcd/cdrom_internals.h \
70 SOURCES_access_jack = jack.c
71 SOURCES_access_mtp = mtp.c
72 SOURCES_access_sftp = sftp.c
73 SOURCES_access_imem = imem.c
74 SOURCES_access_avio = avio.c avio.h
75 SOURCES_access_attachment = attachment.c
76 SOURCES_access_vdr = vdr.c
77 SOURCES_libbluray = bluray.c
78 SOURCES_decklink = decklink.cpp
79 SOURCES_htcpcp = htcpcp.c
82 SOURCES_access_rar = rar/rar.c rar/rar.h rar/access.c
83 SOURCES_stream_filter_rar = rar/rar.c rar/rar.h rar/stream.c
86 libqtcapture_plugin_la_SOURCES = qtcapture.m
87 libqtcapture_plugin_la_LIBADDD = $(AM_LIBADD)
88 libqtcapture_plugin_la_LDFLAGS = -Wl,-framework,Cocoa -Wl,-framework,QTKit -Wl,-framework,CoreVideo -Wl,-framework,QuartzCore
89 libqtcapture_plugin_la_DEPENDENCIES =
91 libqtsound_plugin_la_SOURCES = qtsound.m
92 libqtsound_plugin_la_LIBADD = $(AM_LIBADD)
93 libqtsound_plugin_la_LDFLAGS = -Wl,-framework,Cocoa -Wl,-framework,QTKit -Wl,-framework,CoreAudio
94 libqtsound_plugin_la_DEPENDENCIES =
96 libvlc_LTLIBRARIES += \
97 libqtcapture_plugin.la \
98 libqtsound_plugin.la \
102 libaccess_rtmp_plugin_la_SOURCES = \
104 rtmp/rtmp_amf_flv.c \
105 rtmp/rtmp_amf_flv.h \
107 libaccess_rtmp_plugin_la_CFLAGS = $(AM_CFLAGS) \
109 libaccess_rtmp_plugin_la_LIBADD = $(AM_LIBADD)
110 libaccess_rtmp_plugin_la_DEPENDENCIES =
112 libvlc_LTLIBRARIES += \
113 libfilesystem_plugin.la \
114 libidummy_plugin.la \
115 libaccess_udp_plugin.la \
116 libaccess_tcp_plugin.la \
117 libaccess_http_plugin.la \
118 libaccess_ftp_plugin.la \
119 libaccess_imem_plugin.la \
120 libaccess_attachment_plugin.la \
122 libaccess_rar_plugin.la \
123 libstream_filter_rar_plugin.la \
124 libaccess_vdr_plugin.la \
127 libaccess_oss_plugin_la_SOURCES = oss.c
128 libaccess_oss_plugin_la_CFLAGS = $(AM_CFLAGS)
129 libaccess_oss_plugin_la_LIBADD = $(AM_LIBADD) $(OSS_LIBS)
130 libaccess_oss_plugin_la_DEPENDENCIES =
132 libvlc_LTLIBRARIES += libaccess_oss_plugin.la
135 libaccess_alsa_plugin_la_SOURCES = alsa.c
136 libaccess_alsa_plugin_la_CFLAGS = $(AM_CFLAGS) $(ALSA_CFLAGS)
137 libaccess_alsa_plugin_la_LIBADD = $(AM_LIBADD) $(ALSA_LIBS)
138 libaccess_alsa_plugin_la_DEPENDENCIES =
140 libvlc_LTLIBRARIES += libaccess_alsa_plugin.la
143 libpulsesrc_plugin_la_SOURCES = \
144 ../audio_output/vlcpulse.c \
145 ../audio_output/vlcpulse.h \
147 libpulsesrc_plugin_la_CFLAGS= $(AM_CFLAGS) $(PULSE_CFLAGS)
148 libpulsesrc_plugin_la_LIBADD = $(AM_LIBADD) $(PULSE_LIBS)
149 libpulsesrc_plugin_la_DEPENDENCIES =
151 libvlc_LTLIBRARIES += libpulsesrc_plugin.la
154 libaccess_shm_plugin_la_SOURCES = shm.c
155 libaccess_shm_plugin_la_CFLAGS = $(AM_CFLAGS)
156 libaccess_shm_plugin_la_LIBADD = $(AM_LIBADD)
157 libaccess_shm_plugin_la_DEPENDENCIES =
158 libvlc_LTLIBRARIES += $(LTLIBaccess_shm)
160 libv4l2_plugin_la_SOURCES = \
166 libv4l2_plugin_la_CFLAGS = $(AM_CFLAGS) $(LIBV4L2_CFLAGS)
167 libv4l2_plugin_la_LIBADD = $(AM_LIBADD) $(LIBV4L2_LIBS) $(LIBM)
168 libv4l2_plugin_la_DEPENDENCIES =
170 libvlc_LTLIBRARIES += libv4l2_plugin.la
173 libxcb_screen_plugin_la_SOURCES = screen/xcb.c
174 libxcb_screen_plugin_la_CFLAGS = $(AM_CFLAGS) \
175 $(XCB_CFLAGS) $(XCB_COMPOSITE_CFLAGS)
176 libxcb_screen_plugin_la_LIBADD = $(AM_LIBADD) \
177 $(XCB_LIBS) $(XCB_COMPOSITE_LIBS)
178 libxcb_screen_plugin_la_DEPENDENCIES =
180 libvlc_LTLIBRARIES += libxcb_screen_plugin.la
186 libdtv_plugin_la_SOURCES = \
189 libdtv_plugin_la_CFLAGS = $(AM_CFLAGS)
190 libdtv_plugin_la_LIBADD = $(AM_LIBADD)
191 libdtv_plugin_la_DEPENDENCIES =
194 libdtv_plugin_la_SOURCES += dtv/linux.c
196 libdtv_plugin_la_SOURCES += dtv/en50221.c dtv/en50221.h
197 libdtv_plugin_la_CFLAGS += -DHAVE_DVBPSI $(DVBPSI_CFLAGS)
198 libdtv_plugin_la_LIBADD += $(DVBPSI_LIBS)
200 libvlc_LTLIBRARIES += libdtv_plugin.la
204 # Work-around automake bug:
205 # Use an import library for C++ to retain C linker on other platforms.
206 libbda_la_SOURCES = dtv/bdadefs.h dtv/bdagraph.cpp dtv/bdagraph.hpp
207 libbda_la_CXXFLAGS = $(AM_CXXFLAGS)
208 libbda_la_LDFLAGS = -static
209 libbda_la_LIBADD = -lstrmiids -lole32 -loleaut32 -luuid
210 noinst_LTLIBRARIES = libbda.la
212 libdtv_plugin_la_DEPENDENCIES += libbda.la
213 libdtv_plugin_la_LIBADD += libbda.la -lstdc++
214 libvlc_LTLIBRARIES += libdtv_plugin.la
218 EXTRA_LTLIBRARIES += \
219 libaccess_rtmp_plugin.la \
220 libaccess_shm_plugin.la \
221 libaccess_smb_plugin.la \