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