]> git.sesse.net Git - vlc/blob - Makefile
bb05865213b92d89f9581c7b23df98c39638521b
[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                 downmix \
24                 dsp \
25                 dummy \
26                 dvd \
27                 dvdread \
28                 esd \
29                 fb \
30                 filter \
31                 ggi \
32                 glide \
33                 gtk \
34                 idct \
35                 imdct \
36                 kde \
37                 liba52_adec \
38                 lpcm_adec \
39                 macosx \
40                 mad \
41                 memcpy \
42                 mga \
43                 motion \
44                 mpeg_system \
45                 mpeg_adec \
46                 mpeg_vdec \
47                 qt \
48                 sdl \
49                 spudec \
50                 text \
51                 vcd \
52                 win32 \
53                 x11
54
55 PLUGINS_TARGETS := ac3_adec/ac3_adec \
56                 ac3_spdif/ac3_spdif \
57                 alsa/alsa \
58                 arts/arts \
59                 beos/beos \
60                 chroma/chroma_i420_rgb \
61                 chroma/chroma_i420_rgb_mmx \
62                 chroma/chroma_i420_yuy2 \
63                 chroma/chroma_i420_yuy2_mmx \
64                 chroma/chroma_i422_yuy2 \
65                 chroma/chroma_i422_yuy2_mmx \
66                 chroma/chroma_i420_ymga \
67                 chroma/chroma_i420_ymga_mmx \
68                 directx/directx \
69                 downmix/downmix \
70                 downmix/downmixsse \
71                 downmix/downmix3dn \
72                 dsp/dsp \
73                 dummy/dummy \
74                 dummy/null \
75                 dvd/dvd \
76                 dvdread/dvdread \
77                 esd/esd \
78                 fb/fb \
79                 filter/filter_deinterlace \
80                 filter/filter_transform \
81                 filter/filter_invert \
82                 filter/filter_distort \
83                 filter/filter_wall \
84                 ggi/ggi \
85                 glide/glide \
86                 gtk/gnome \
87                 gtk/gtk \
88                 idct/idct \
89                 idct/idctclassic \
90                 idct/idctmmx \
91                 idct/idctmmxext \
92                 idct/idctaltivec \
93                 imdct/imdct \
94                 imdct/imdct3dn \
95                 imdct/imdctsse \
96                 kde/kde \
97                 liba52_adec/liba52_adec \
98                 lpcm_adec/lpcm_adec \
99                 macosx/macosx \
100                 mad/mad \
101                 memcpy/memcpy \
102                 memcpy/memcpymmx \
103                 memcpy/memcpymmxext \
104                 memcpy/memcpy3dn \
105                 mga/mga \
106                 mga/xmga \
107                 motion/motion \
108                 motion/motionmmx \
109                 motion/motionmmxext \
110                 motion/motion3dnow \
111                 motion/motionaltivec \
112                 mpeg_system/mpeg_es \
113                 mpeg_system/mpeg_ps \
114                 mpeg_system/mpeg_ts \
115                 mpeg_adec/mpeg_adec \
116                 mpeg_vdec/mpeg_vdec \
117                 qt/qt \
118                 sdl/sdl \
119                 spudec/spudec \
120                 text/ncurses \
121                 text/rc \
122                 vcd/vcd \
123                 win32/waveout \
124                 win32/win32 \
125                 x11/x11 \
126                 x11/xvideo
127
128 #
129 # C Objects
130
131 INTERFACE := main interface intf_msg intf_playlist intf_eject
132 INPUT := input input_ext-dec input_ext-intf input_dec input_programs input_clock mpeg_system
133 VIDEO_OUTPUT := video_output video_text vout_pictures vout_subpictures
134 AUDIO_OUTPUT := audio_output aout_common aout_ext-dec aout_spdif
135 MISC := mtime modules netutils iso_lang
136
137 C_OBJ :=        $(INTERFACE:%=src/interface/%.o) \
138                 $(INPUT:%=src/input/%.o) \
139                 $(VIDEO_OUTPUT:%=src/video_output/%.o) \
140                 $(AUDIO_OUTPUT:%=src/audio_output/%.o) \
141                 $(MISC:%=src/misc/%.o)
142
143 #
144 # Misc Objects
145
146 ifeq ($(NEED_GETOPT),1)
147 C_OBJ += extras/GNUgetopt/getopt.o extras/GNUgetopt/getopt1.o 
148 endif
149
150 ifeq ($(NEED_SYMBOLS),1)
151 C_OBJ += src/misc/symbols.o
152 endif
153
154 ifeq ($(SYS),beos)
155 CPP_OBJ :=      src/misc/beos_specific.o
156 endif
157
158 ifneq (,$(findstring darwin,$(SYS)))
159 C_OBJ +=        src/misc/darwin_specific.o
160 endif
161
162 ifneq (,$(findstring mingw32,$(SYS)))
163 C_OBJ +=        src/misc/win32_specific.o
164 RESOURCE_OBJ := share/vlc_win32_rc.o
165 endif
166
167 VLC_OBJ := $(C_OBJ) $(CPP_OBJ) $(BUILTIN_OBJ) $(RESOURCE_OBJ)
168
169 #
170 # Generated header
171 #
172 H_OBJ :=        src/misc/modules_builtin.h
173
174 #
175 # Other lists of files
176 #
177 C_DEP := $(C_OBJ:%.o=.dep/%.d)
178 CPP_DEP := $(CPP_OBJ:%.o=.dep/%.dpp)
179
180 #
181 # Translate plugin names
182 #
183 ifneq (,$(PLUGINS))
184 PLUGIN_OBJ := $(shell for i in $(PLUGINS) ; do echo " "$(PLUGINS_TARGETS)" " | sed -e 's@.*/\('$$i'\) .*@plugins/\1.so@' -e 's@^ .*@@' ; done)
185 endif
186 ifneq (,$(BUILTINS))
187 BUILTIN_OBJ := $(shell for i in $(BUILTINS) ; do echo " "$(PLUGINS_TARGETS)" " | sed -e 's@.*/\('$$i'\) .*@plugins/\1.a@' -e 's@^ .*@@' ; done)
188 endif
189
190 #
191 # Misc variables
192 #
193 VLC_QUICKVERSION := $(shell grep '^ *VLC_VERSION=' configure.in | head -1 | sed 's/"//g' | cut -f2 -d=)
194 LIBDVDCSS_QUICKVERSION := $(shell grep '^ *LIBDVDCSS_VERSION=' configure.in | head -1 | sed 's/"//g' | cut -f2 -d=)
195
196
197 # All symbols must be exported
198 export
199
200 ###############################################################################
201 # Targets
202 ###############################################################################
203
204 #
205 # Virtual targets
206 #
207 all: Makefile.opts vlc ${ALIASES} vlc.app plugins po
208
209 Makefile.opts:
210         @echo "**** No configuration found, please run ./configure"
211         @exit 1
212 #       ./configure
213 #       $(MAKE) $(MAKECMDGOALS)
214 #       exit    
215
216 show:
217         @echo CC: $(CC)
218         @echo CFLAGS: $(CFLAGS)
219         @echo DCFLAGS: $(DCFLAGS)
220         @echo LDFLAGS: $(LDFLAGS)
221         @echo PCFLAGS: $(PCFLAGS)
222         @echo PLDFLAGS: $(PLDFLAGS)
223         @echo C_OBJ: $(C_OBJ)
224         @echo CPP_OBJ: $(CPP_OBJ)
225         @echo PLUGIN_OBJ: $(PLUGIN_OBJ)
226         @echo BUILTIN_OBJ: $(BUILTIN_OBJ)
227
228 #
229 # Cleaning rules
230 #
231 clean: libdvdcss-clean libdvdread-clean plugins-clean po-clean vlc-clean
232         rm -f src/*/*.o extras/*/*.o
233         rm -f lib/*.so* lib/*.a
234         rm -f plugins/*.so plugins/*.a
235         rm -rf extras/MacOSX/build
236
237 libdvdcss-clean:
238         -cd extras/libdvdcss && $(MAKE) clean
239
240 po-clean:
241         -cd po && $(MAKE) clean
242
243 libdvdread-clean:
244         -cd extras/libdvdread && $(MAKE) clean
245
246 plugins-clean:
247         for dir in $(PLUGINS_DIR) ; do \
248                 ( cd plugins/$${dir} \
249                         && $(MAKE) -f ../../Makefile.modules clean ) ; done
250         rm -f plugins/*/*.o plugins/*/*.lo plugins/*/*.moc plugins/*/*.bak
251
252 vlc-clean:
253         rm -f $(C_OBJ) $(CPP_OBJ)
254         rm -f vlc gnome-vlc gvlc kvlc qvlc vlc.exe
255         rm -Rf vlc.app
256
257 distclean: clean
258         -cd po && $(MAKE) maintainer-clean
259         rm -f **/*.o **/*~ *.log
260         rm -f Makefile.opts
261         rm -f include/defs.h include/modules_builtin.h
262         rm -f src/misc/modules_builtin.h
263         rm -f config*status config*cache config*log
264         rm -f gmon.out core build-stamp
265         rm -Rf .dep
266         rm -f .gdb_history
267
268 #
269 # Install/uninstall rules
270 #
271 install: libdvdcss-install vlc-install plugins-install po-install
272
273 uninstall: libdvdcss-uninstall vlc-uninstall plugins-uninstall po-uninstall
274
275 vlc-install:
276         mkdir -p $(DESTDIR)$(bindir)
277         $(INSTALL) vlc $(DESTDIR)$(bindir)
278 ifneq (,$(ALIASES))
279         for alias in $(ALIASES) ; do if test $$alias ; then rm -f $(DESTDIR)$(bindir)/$$alias && ln -s vlc $(DESTDIR)$(bindir)/$$alias ; fi ; done
280 endif
281         mkdir -p $(DESTDIR)$(datadir)/videolan
282         $(INSTALL) -m 644 share/*.psf $(DESTDIR)$(datadir)/videolan
283         $(INSTALL) -m 644 share/*.png $(DESTDIR)$(datadir)/videolan
284         $(INSTALL) -m 644 share/*.xpm $(DESTDIR)$(datadir)/videolan
285
286 vlc-uninstall:
287         rm -f $(DESTDIR)$(bindir)/vlc
288 ifneq (,$(ALIASES))
289         for alias in $(ALIASES) ; do if test $$alias ; then rm -f $(DESTDIR)$(bindir)/$$alias ; fi ; done
290 endif
291         rm -f $(DESTDIR)$(datadir)/videolan/*.psf
292         rm -f $(DESTDIR)$(datadir)/videolan/*.png
293         rm -f $(DESTDIR)$(datadir)/videolan/*.xpm
294
295 plugins-install:
296         mkdir -p $(DESTDIR)$(libdir)/videolan/vlc
297 ifneq (,$(PLUGINS))
298         $(INSTALL) -m 644 $(PLUGINS:%=plugins/%.so) $(DESTDIR)$(libdir)/videolan/vlc
299 endif
300
301 plugins-uninstall:
302         rm -f $(DESTDIR)$(libdir)/videolan/vlc/*.so
303
304 libdvdcss-install:
305         -cd extras/libdvdcss && $(MAKE) install
306
307 libdvdcss-uninstall:
308         -cd extras/libdvdcss && $(MAKE) uninstall
309
310 libdvdread-install:
311         -cd extras/libdvdread && $(MAKE) install
312
313 libdvdread-uninstall:
314         -cd extras/libdvdread && $(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 endif
540         @echo "    } while( 0 );" >> $@ ;
541         @echo "" >> $@ ;
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)
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)
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