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