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