]> git.sesse.net Git - vlc/blob - Makefile
8a6133e5cc0dbc815abbc60d9166d89460a690ba
[vlc] / Makefile
1 ###############################################################################
2 # vlc (VideoLAN Client) main Makefile - (c)1998 VideoLAN
3 ###############################################################################
4
5 ifeq ($(shell [ ! -r Makefile.opts ] && echo 1),)
6     include Makefile.opts
7 endif
8
9 ###############################################################################
10 # Objects and files
11 ###############################################################################
12
13
14 # All possible plugin directories, needed for make clean
15 #
16 PLUGINS_DIR :=  ac3_adec \
17                 ac3_spdif \
18                 alsa \
19                 arts \
20                 beos \
21                 chroma \
22                 directx \
23                 dsp \
24                 dummy \
25                 dvd \
26                 dvdread \
27                 esd \
28                 fb \
29                 filter \
30                 ggi \
31                 glide \
32                 gtk \
33                 downmix \
34                 idct \
35                 imdct \
36                 kde \
37                 lpcm_adec \
38                 macosx \
39                 mad \
40                 memcpy \
41                 mga \
42                 motion \
43                 mpeg_system \
44                 mpeg_adec \
45                 mpeg_vdec \
46                 qt \
47                 sdl \
48                 spudec \
49                 text \
50                 vcd \
51                 x11
52
53 PLUGINS_TARGETS := ac3_adec/ac3_adec \
54                 ac3_spdif/ac3_spdif \
55                 alsa/alsa \
56                 arts/arts \
57                 beos/beos \
58                 chroma/chroma_yv12_rgb8 \
59                 directx/directx \
60                 dsp/dsp \
61                 dummy/dummy \
62                 dummy/null \
63                 dvd/dvd \
64                 dvdread/dvdread \
65                 esd/esd \
66                 fb/fb \
67                 filter/filter_bob \
68                 filter/filter_transform \
69                 filter/filter_invert \
70                 filter/filter_distort \
71                 filter/filter_wall \
72                 ggi/ggi \
73                 glide/glide \
74                 gtk/gnome \
75                 gtk/gtk \
76                 downmix/downmix \
77                 downmix/downmixsse \
78                 downmix/downmix3dn \
79                 idct/idct \
80                 idct/idctclassic \
81                 idct/idctmmx \
82                 idct/idctmmxext \
83                 idct/idctaltivec \
84                 imdct/imdct \
85                 imdct/imdct3dn \
86                 imdct/imdctsse \
87                 kde/kde \
88                 lpcm_adec/lpcm_adec \
89                 macosx/macosx \
90                 mad/mad \
91                 memcpy/memcpy \
92                 memcpy/memcpymmx \
93                 memcpy/memcpymmxext \
94                 memcpy/memcpy3dn \
95                 mga/mga \
96                 motion/motion \
97                 motion/motionmmx \
98                 motion/motionmmxext \
99                 motion/motion3dnow \
100                 motion/motionaltivec \
101                 mpeg_system/mpeg_es \
102                 mpeg_system/mpeg_ps \
103                 mpeg_system/mpeg_ts \
104                 mpeg_adec/mpeg_adec \
105                 mpeg_vdec/mpeg_vdec \
106                 qt/qt \
107                 sdl/sdl \
108                 spudec/spudec \
109                 text/ncurses \
110                 text/rc \
111                 vcd/vcd \
112                 x11/x11 \
113                 x11/xvideo \
114                 yuv/yuv \
115                 yuv/yuvmmx
116
117 #
118 # C Objects
119
120 INTERFACE := main interface intf_msg intf_playlist
121 INPUT := input input_ext-dec input_ext-intf input_dec input_programs input_netlist input_clock mpeg_system
122 VIDEO_OUTPUT := video_output video_text vout_pictures vout_subpictures
123 AUDIO_OUTPUT := audio_output aout_ext-dec aout_u8 aout_s8 aout_u16 aout_s16 aout_spdif
124 MISC := mtime tests modules netutils iso_lang
125
126 C_OBJ :=        $(INTERFACE:%=src/interface/%.o) \
127                 $(INPUT:%=src/input/%.o) \
128                 $(VIDEO_OUTPUT:%=src/video_output/%.o) \
129                 $(AUDIO_OUTPUT:%=src/audio_output/%.o) \
130                 $(MISC:%=src/misc/%.o)
131
132 #
133 # Misc Objects
134
135 ifeq ($(NEED_GETOPT),1)
136 C_OBJ += extras/GNUgetopt/getopt.o extras/GNUgetopt/getopt1.o 
137 endif
138
139 ifeq ($(SYS),beos)
140 CPP_OBJ :=      src/misc/beos_specific.o
141 endif
142
143 ifneq (,$(findstring darwin,$(SYS)))
144 C_OBJ +=        src/misc/darwin_specific.o
145 endif
146
147 ifneq (,$(findstring mingw32,$(SYS)))
148 C_OBJ +=        src/misc/win32_specific.o
149 RESOURCE_OBJ := share/vlc_win32_rc.o
150 endif
151
152 VLC_OBJ := $(C_OBJ) $(CPP_OBJ) $(BUILTIN_OBJ) $(RESOURCE_OBJ)
153
154 #
155 # Generated header
156 #
157 H_OBJ :=        src/misc/modules_builtin.h
158
159 #
160 # Other lists of files
161 #
162 C_DEP := $(C_OBJ:%.o=.dep/%.d)
163 CPP_DEP := $(CPP_OBJ:%.o=.dep/%.dpp)
164
165 #
166 # Translate plugin names
167 #
168 ifneq (,$(PLUGINS))
169 PLUGIN_OBJ := $(shell for i in $(PLUGINS) ; do echo " "$(PLUGINS_TARGETS)" " | sed -e 's@.*/\('$$i'\) .*@plugins/\1.so@' -e 's@^ .*@@' ; done)
170 endif
171 ifneq (,$(BUILTINS))
172 BUILTIN_OBJ := $(shell for i in $(BUILTINS) ; do echo " "$(PLUGINS_TARGETS)" " | sed -e 's@.*/\('$$i'\) .*@plugins/\1.a@' -e 's@^ .*@@' ; done)
173 endif
174
175 #
176 # Misc variables
177 #
178 VLC_QUICKVERSION := $(shell grep '^ *VLC_VERSION=' configure.in | head -1 | sed 's/"//g' | cut -f2 -d=)
179 LIBDVDCSS_QUICKVERSION := $(shell grep '^ *LIBDVDCSS_VERSION=' configure.in | head -1 | sed 's/"//g' | cut -f2 -d=)
180
181
182 # All symbols must be exported
183 export
184
185 ###############################################################################
186 # Targets
187 ###############################################################################
188
189 #
190 # Virtual targets
191 #
192 all: Makefile.opts vlc ${ALIASES} vlc.app plugins po
193
194 Makefile.opts:
195         @echo "**** No configuration found, running ./configure..."
196         ./configure
197         $(MAKE) $(MAKECMDGOALS)
198         exit
199
200 show:
201         @echo CC: $(CC)
202         @echo CFLAGS: $(CFLAGS)
203         @echo DCFLAGS: $(DCFLAGS)
204         @echo LCFLAGS: $(LCFLAGS)
205         @echo PCFLAGS: $(PCFLAGS)
206         @echo PLCFLAGS: $(PLCFLAGS)
207         @echo C_OBJ: $(C_OBJ)
208         @echo CPP_OBJ: $(CPP_OBJ)
209         @echo PLUGIN_OBJ: $(PLUGIN_OBJ)
210         @echo BUILTIN_OBJ: $(BUILTIN_OBJ)
211
212 #
213 # Cleaning rules
214 #
215 clean: libdvdcss-clean libdvdread-clean plugins-clean po-clean vlc-clean
216         rm -f src/*/*.o extras/*/*.o
217         rm -f lib/*.so* lib/*.a
218         rm -f plugins/*.so plugins/*.a
219         rm -rf extras/MacOSX/build
220
221 libdvdcss-clean:
222         -cd extras/libdvdcss && $(MAKE) clean
223
224 po-clean:
225         -cd po && $(MAKE) clean
226
227 libdvdread-clean:
228         -cd extras/libdvdread && $(MAKE) clean
229
230 plugins-clean:
231         for dir in $(PLUGINS_DIR) ; do \
232                 ( cd plugins/$${dir} && $(MAKE) clean ) ; done
233         rm -f plugins/*/*.o plugins/*/*.moc plugins/*/*.bak
234
235 vlc-clean:
236         rm -f $(C_OBJ) $(CPP_OBJ)
237         rm -f vlc gnome-vlc gvlc kvlc qvlc vlc.exe
238         rm -Rf vlc.app
239
240 distclean: clean
241         -cd po && $(MAKE) maintainer-clean
242         rm -f **/*.o **/*~ *.log
243         rm -f Makefile.opts
244         rm -f include/defs.h include/config.h include/modules_builtin.h
245         rm -f src/misc/modules_builtin.h
246         rm -f config*status config*cache config*log
247         rm -f gmon.out core build-stamp
248         rm -Rf .dep
249         rm -f .gdb_history
250
251 #
252 # Install/uninstall rules
253 #
254 install: libdvdcss-install vlc-install plugins-install po-install
255
256 uninstall: libdvdcss-uninstall vlc-uninstall plugins-uninstall po-uninstall
257
258 vlc-install:
259         mkdir -p $(DESTDIR)$(bindir)
260         $(INSTALL) vlc $(DESTDIR)$(bindir)
261 ifneq (,$(ALIASES))
262         for alias in $(ALIASES) ; do if test $$alias ; then rm -f $(DESTDIR)$(bindir)/$$alias && ln -s vlc $(DESTDIR)$(bindir)/$$alias ; fi ; done
263 endif
264         mkdir -p $(DESTDIR)$(datadir)/videolan
265         $(INSTALL) -m 644 share/*.psf $(DESTDIR)$(datadir)/videolan
266         $(INSTALL) -m 644 share/*.png $(DESTDIR)$(datadir)/videolan
267         $(INSTALL) -m 644 share/*.xpm $(DESTDIR)$(datadir)/videolan
268
269 vlc-uninstall:
270         rm -f $(DESTDIR)$(bindir)/vlc
271 ifneq (,$(ALIASES))
272         for alias in $(ALIASES) ; do if test $$alias ; then rm -f $(DESTDIR)$(bindir)/$$alias ; fi ; done
273 endif
274         rm -f $(DESTDIR)$(datadir)/videolan/*.psf
275         rm -f $(DESTDIR)$(datadir)/videolan/*.png
276         rm -f $(DESTDIR)$(datadir)/videolan/*.xpm
277
278 plugins-install:
279         mkdir -p $(DESTDIR)$(libdir)/videolan/vlc
280 ifneq (,$(PLUGINS))
281         $(INSTALL) -m 644 $(PLUGINS:%=plugins/%.so) $(DESTDIR)$(libdir)/videolan/vlc
282 endif
283
284 plugins-uninstall:
285         rm -f $(DESTDIR)$(libdir)/videolan/vlc/*.so
286
287 libdvdcss-install:
288         -cd extras/libdvdcss && $(MAKE) install
289
290 libdvdcss-uninstall:
291         -cd extras/libdvdcss && $(MAKE) uninstall
292
293 po-install:
294         -cd po && $(MAKE) install
295
296 po-uninstall:
297         -cd po && $(MAKE) uninstall
298
299 #
300 # Package generation rules
301 #
302 snapshot-common:
303         # Check that tmp isn't in the way
304         @if test -e tmp; then \
305                 echo "Error: please remove ./tmp, it is in the way"; false; \
306         else \
307                 echo "OK."; mkdir tmp; \
308         fi
309         # Copy directory structure in tmp
310         find -type d | grep -v '\(\.dep\|snapshot\|CVS\)' | while read i ; \
311                 do mkdir -p tmp/vlc/$$i ; \
312         done
313         rm -Rf tmp/vlc/tmp
314         find debian -mindepth 1 -maxdepth 1 -type d | \
315                 while read i ; do rm -Rf tmp/vlc/$$i ; done
316         # Copy .c .h .in .cpp and .glade files
317         find include src plugins -type f -name '*.[chig]*' | while read i ; \
318                 do cp $$i tmp/vlc/$$i ; done
319         # Copy plugin Makefiles
320         find plugins -type f -name Makefile | while read i ; \
321                 do cp $$i tmp/vlc/$$i ; done
322         # Copy extra programs and documentation
323         cp -a extras/* tmp/vlc/extras
324         cp -a doc/* tmp/vlc/doc
325         find tmp/vlc/extras tmp/vlc/doc \
326                 -type d -name CVS -o -name '.*' -o -name '*.[o]' | \
327                         while read i ; do rm -Rf $$i ; done
328         # Copy gettext stuff
329         cp po/*.po tmp/vlc/po
330         for i in Makefile.in.in POTFILES.in ; do cp po/$$i tmp/vlc/po ; done
331         # Copy misc files
332         cp FAQ AUTHORS COPYING TODO todo.pl ChangeLog* README* INSTALL* \
333                 Makefile Makefile.opts.in Makefile.dep Makefile.modules \
334                 configure configure.in install-sh install-win32 vlc.spec \
335                 config.sub config.guess acconfig.h aclocal.m4 mkinstalldirs \
336                         tmp/vlc/
337         # Copy Debian control files
338         for file in debian/*dirs debian/*docs debian/*menu debian/*desktop \
339                 debian/*copyright ; do cp $$file tmp/vlc/debian ; done
340         for file in control changelog rules ; do \
341                 cp debian/$$file tmp/vlc/debian/ ; done
342         # Copy ipkg control files
343         for file in control rules ; do \
344                 cp ipkg/$$file tmp/vlc/ipkg/ ; done
345         # Copy fonts and icons
346         for file in share/*png share/*xpm share/*psf ; do \
347                 cp $$file tmp/vlc/share ; done
348         for file in vlc_beos.rsrc vlc.icns gvlc_win32.ico vlc_win32_rc.rc ; do \
349                         cp share/$$file tmp/vlc/share/ ; done
350
351 snapshot: snapshot-common
352         # Build archives
353         F=vlc-${VLC_QUICKVERSION}; \
354         mv tmp/vlc tmp/$$F; (cd tmp ; tar cf $$F.tar $$F); \
355         bzip2 -f -9 < tmp/$$F.tar > $$F.tar.bz2; \
356         gzip -f -9 tmp/$$F.tar ; mv tmp/$$F.tar.gz .
357         # Clean up
358         rm -Rf tmp
359
360 snapshot-nocss: snapshot-common
361         # Remove libdvdcss
362         rm -Rf tmp/vlc/extras/libdvdcss
363         rm -f tmp/vlc/*.libdvdcss
364         # Fix debian information
365         rm -f tmp/vlc/debian/libdvdcss*
366         rm -f tmp/vlc/debian/control
367         sed -e 's#^ DVDs# unencrypted DVDs#' < debian/control \
368                 | awk '{if(gsub("Package: libdvdcss",$$0))a=1;if(a==0)print $$0;if(a==1&&$$0=="")a=0}' \
369                 > tmp/vlc/debian/control
370         rm -f tmp/vlc/debian/rules
371         sed -e 's#^\(export LIBDVDCSS_FLAGS=\).*#\1"--without-dvdcss"#' < debian/rules \
372                 | awk '{if($$0=="# libdvdcss start")a=1;if(a==0)print $$0;if($$0=="# libdvdcss stop")a=0}' \
373                 > tmp/vlc/debian/rules
374         chmod +x tmp/vlc/debian/rules
375         # Build css-disabled archives
376         F=vlc-${VLC_QUICKVERSION}; G=vlc-${VLC_QUICKVERSION}-nocss; \
377         mv tmp/vlc tmp/$$F; (cd tmp ; tar cf $$G.tar $$F); \
378         bzip2 -f -9 < tmp/$$G.tar > $$G.tar.bz2; \
379         gzip -f -9 tmp/$$G.tar ; mv tmp/$$G.tar.gz .
380         # Clean up
381         rm -Rf tmp
382
383 package-win32:
384         # XXX: this rule is probably only useful to you if you have exactly
385         # the same setup as me. Contact sam@zoy.org if you need to use it.
386         #
387         # Check that tmp isn't in the way
388         @if test -e tmp; then \
389                 echo "Error: please remove ./tmp, it is in the way"; false; \
390         else \
391                 echo "OK."; mkdir tmp; \
392         fi
393         # Create installation script
394         sed -e 's#@VERSION@#'${VLC_QUICKVERSION}'#' < install-win32 > tmp/nsi
395         # Copy relevant files
396         cp vlc.exe $(PLUGINS:%=plugins/%.so) tmp/ 
397         cp INSTALL-win32.txt AUTHORS COPYING ChangeLog ChangeLog.libdvdcss \
398                 README README.libdvdcss FAQ TODO tmp/
399         for file in gtk-1.3.dll gdk-1.3.dll glib-1.3.dll gmodule-1.3.dll \
400                 gnu-intl.dll SDL.dll README-SDL.txt ; \
401                         do cp ${DLL_PATH}/$$file tmp/ ; done
402         mkdir tmp/share
403         for file in default8x16.psf default8x9.psf ; \
404                 do cp share/$$file tmp/share/ ; done
405         # Create package 
406         wine ~/.wine/fake_windows/Program\ Files/NSIS/makensis.exe /CD tmp/nsi
407         mv tmp/vlc-${VLC_QUICKVERSION}.exe \
408                 vlc-${VLC_QUICKVERSION}-win32-installer.exe
409         # Clean up
410         rm -Rf tmp
411
412 package-beos:
413         # Check that tmp isn't in the way
414         @if test -e tmp; then \
415                 echo "Error: please remove ./tmp, it is in the way"; false; \
416         else \
417                 echo "OK."; mkdir tmp; \
418         fi
419         
420         # Create dir
421         mkdir -p tmp/vlc/share
422         # Copy relevant files
423         cp vlc tmp/vlc/
424         cp AUTHORS COPYING ChangeLog ChangeLog.libdvdcss \
425                 README README.libdvdcss FAQ TODO tmp/vlc/
426         for file in default8x16.psf default8x9.psf ; \
427                 do cp share/$$file tmp/vlc/share/ ; done
428         # Create package 
429         mv tmp/vlc tmp/vlc-${VLC_QUICKVERSION}
430         (cd tmp ; find vlc-${VLC_QUICKVERSION} | \
431         zip -9 -@ vlc-${VLC_QUICKVERSION}-beos.zip )
432         mv tmp/vlc-${VLC_QUICKVERSION}-beos.zip .
433         # Clean up
434         rm -Rf tmp
435
436 libdvdcss-snapshot: snapshot-common
437         # Remove vlc sources and icons, doc, debian directory...
438         rm -Rf tmp/vlc/src tmp/vlc/share tmp/vlc/plugins tmp/vlc/doc
439         rm -Rf tmp/vlc/extras/GNUgetopt tmp/vlc/extras/MacOSX
440         rm -Rf tmp/vlc/debian
441         rm -Rf tmp/vlc/ipkg
442         # Remove useless headers
443         rm -f tmp/vlc/include/*
444         for file in defs.h.in config.h.in common.h int_types.h ; \
445                 do cp include/$$file tmp/vlc/include/ ; done
446         # Remove misc files (??? - maybe not really needed)
447         rm -f tmp/vlc/vlc.spec tmp/vlc/INSTALL-win32.txt
448         mv tmp/vlc/INSTALL.libdvdcss tmp/vlc/INSTALL
449         mv tmp/vlc/README.libdvdcss tmp/vlc/README
450         mv tmp/vlc/ChangeLog.libdvdcss tmp/vlc/ChangeLog
451         # Fix Makefile
452         rm -f tmp/vlc/Makefile
453         sed -e 's#^install:#install-unused:#' \
454                 -e 's#^uninstall:#uninstall-unused:#' \
455                 -e 's#^clean:#clean-unused:#' \
456                 -e 's#^all:.*#all: libdvdcss#' \
457                 -e 's#^libdvdcss-install:#install:#' \
458                 -e 's#^libdvdcss-uninstall:#uninstall:#' \
459                 -e 's#^libdvdcss-clean:#clean:#' \
460                 < Makefile > tmp/vlc/Makefile
461         # Build archives
462         F=libdvdcss-${LIBDVDCSS_QUICKVERSION}; \
463         mv tmp/vlc tmp/$$F; (cd tmp ; tar cf $$F.tar $$F); \
464         bzip2 -f -9 < tmp/$$F.tar > $$F.tar.bz2; \
465         gzip -f -9 tmp/$$F.tar ; mv tmp/$$F.tar.gz .
466         # Clean up
467         rm -Rf tmp
468
469 deb:
470         dpkg-buildpackage -rfakeroot -us -uc
471
472 #
473 # Gtk/Gnome/* aliases and OS X application
474 #
475 gnome-vlc gvlc kvlc qvlc: vlc
476         rm -f $@ && ln -s vlc $@
477
478 .PHONY: vlc.app
479 vlc.app: Makefile.opts
480 ifneq (,$(findstring darwin,$(SYS)))
481         rm -Rf vlc.app
482         cd extras/MacOSX ; pbxbuild | grep -v '^ ' | grep -v '^\t'
483         cp -r extras/MacOSX/build/vlc.bundle ./vlc.app
484         $(INSTALL) -d vlc.app/Contents/MacOS/share
485         $(INSTALL) -d vlc.app/Contents/MacOS/plugins
486         $(INSTALL) vlc vlc.app/Contents/MacOS/
487 ifneq (,$(PLUGINS))
488         $(INSTALL) $(PLUGINS:%=plugins/%.so) vlc.app/Contents/MacOS/plugins
489 endif
490         $(INSTALL) -m 644 share/*.psf vlc.app/Contents/MacOS/share
491 endif
492
493 FORCE:
494
495 #
496 # Generic rules (see below)
497 #
498 $(C_DEP): %.d: FORCE
499         @$(MAKE) -s --no-print-directory -f Makefile.dep $@
500
501 $(CPP_DEP): %.dpp: FORCE
502         @$(MAKE) -s --no-print-directory -f Makefile.dep $@
503
504 $(H_OBJ): Makefile.opts Makefile.dep Makefile
505         rm -f $@ && cp $@.in $@
506 ifneq (,$(BUILTINS))
507         for i in $(BUILTINS) ; do \
508                 echo "int module_"$$i"_InitModule( module_t* );" >> $@ ; \
509                 echo "int module_"$$i"_ActivateModule( module_t* );" >> $@ ; \
510                 echo "int module_"$$i"_DeactivateModule( module_t* );" >> $@ ; \
511         done
512         echo "" >> $@ ;
513         printf "#define ALLOCATE_ALL_BUILTINS() do { " >> $@ ;
514         for i in $(BUILTINS) ; do \
515                 printf "ALLOCATE_BUILTIN("$$i"); " >> $@ ; \
516         done
517         echo "} while( 0 );" >> $@ ;
518         echo "" >> $@ ;
519 endif
520
521 $(C_OBJ): %.o: Makefile.opts Makefile.dep Makefile
522 $(C_OBJ): %.o: .dep/%.d
523 $(C_OBJ): %.o: %.c
524         $(CC) $(CFLAGS) -c -o $@ $<
525
526 $(CPP_OBJ): %.o: Makefile.opts Makefile.dep Makefile
527 $(CPP_OBJ): %.o: .dep/%.dpp
528 $(CPP_OBJ): %.o: %.cpp
529         $(CC) $(CFLAGS) -c -o $@ $<
530
531 $(RESOURCE_OBJ): %.o: Makefile.dep Makefile
532 ifneq (,(findstring mingw32,$(SYS)))
533 $(RESOURCE_OBJ): %.o: %.rc
534         $(WINDRES) -i $< -o $@
535 endif
536
537 #
538 # Main application target
539 #
540 vlc: Makefile.opts Makefile.dep Makefile $(H_OBJ) $(VLC_OBJ) $(BUILTIN_OBJ)
541         $(CC) $(CFLAGS) -o $@ $(VLC_OBJ) $(BUILTIN_OBJ) $(LCFLAGS)
542 ifeq ($(SYS),beos)
543         xres -o $@ ./share/vlc_beos.rsrc
544         mimeset -f $@
545 endif
546
547 #
548 # Plugins target
549 #
550 plugins: Makefile.modules Makefile.opts Makefile.dep Makefile $(PLUGIN_OBJ)
551 $(PLUGIN_OBJ): FORCE
552         @cd $(shell echo " "$(PLUGINS_TARGETS)" " | sed -e 's@.* \([^/]*/\)'$(@:plugins/%.so=%)' .*@plugins/\1@' -e 's@^ .*@@') && $(MAKE) $(@:plugins/%=../%)
553
554 #
555 # Built-in modules target
556 #
557 builtins: Makefile.modules Makefile.opts Makefile.dep Makefile $(BUILTIN_OBJ)
558 $(BUILTIN_OBJ): FORCE
559         @cd $(shell echo " "$(PLUGINS_TARGETS)" " | sed -e 's@.* \([^/]*/\)'$(@:plugins/%.a=%)' .*@plugins/\1@' -e 's@^ .*@@') && $(MAKE) $(@:plugins/%=../%)
560
561 #
562 # libdvdcss target
563 #
564 libdvdcss: Makefile.opts
565         @cd extras/libdvdcss && $(MAKE)
566
567 #
568 # libdvdread target
569 #
570 libdvdread: Makefile.opts
571         @cd extras/libdvdread && $(MAKE)
572
573 #
574 # gettext target
575 #
576 po: FORCE
577         @cd po && $(MAKE)
578