]> git.sesse.net Git - vlc/blob - Makefile
* ./FAQ: new entry for RTP
[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 ifeq ($(shell [ ! -r Makefile.config ] && echo 1),)
9     include Makefile.config
10 endif
11
12 ###############################################################################
13 # Objects and files
14 ###############################################################################
15
16
17 # All possible plugin directories, needed for make clean
18 #
19 PLUGINS_DIR :=  a52 \
20                 a52_system \
21                 aa \
22                 ac3_adec \
23                 ac3_spdif \
24                 access \
25                 alsa \
26                 arts \
27                 avi \
28                 beos \
29                 chroma \
30                 directx \
31                 downmix \
32                 dsp \
33                 dummy \
34                 dvd \
35                 dvdread \
36                 esd \
37                 fb \
38                 ffmpeg \
39                 filter \
40                 fx \
41                 ggi \
42                 glide \
43                 gtk \
44                 idct \
45                 imdct \
46                 kde \
47                 lirc \
48                 lpcm_adec \
49                 macosx \
50                 mad \
51                 memcpy \
52                 mga \
53                 motion \
54                 mpeg_system \
55                 mpeg_adec \
56                 mpeg_vdec \
57                 network \
58                 ogg \
59                 qnx \
60                 qt \
61                 satellite \
62                 sdl \
63                 spudec \
64                 text \
65                 vcd \
66                 win32 \
67                 x11 \
68                 xosd
69
70 PLUGINS_TARGETS := a52/a52 \
71                 aa/aa \
72                 a52_system/a52_system \
73                 ac3_adec/ac3_adec \
74                 ac3_spdif/ac3_spdif \
75                 access/file \
76                 access/udp \
77                 access/http \
78                 alsa/alsa \
79                 arts/arts \
80                 avi/avi \
81                 beos/beos \
82                 chroma/chroma_i420_rgb \
83                 chroma/chroma_i420_rgb_mmx \
84                 chroma/chroma_i420_yuy2 \
85                 chroma/chroma_i420_yuy2_mmx \
86                 chroma/chroma_i422_yuy2 \
87                 chroma/chroma_i422_yuy2_mmx \
88                 chroma/chroma_i420_ymga \
89                 chroma/chroma_i420_ymga_mmx \
90                 directx/directx \
91                 downmix/downmix \
92                 downmix/downmixsse \
93                 downmix/downmix3dn \
94                 dsp/dsp \
95                 dummy/dummy \
96                 dummy/null \
97                 dvd/dvd \
98                 dvdread/dvdread \
99                 esd/esd \
100                 fb/fb \
101                 ffmpeg/ffmpeg \
102                 filter/filter_clone \
103                 filter/filter_crop \
104                 filter/filter_deinterlace \
105                 filter/filter_distort \
106                 filter/filter_invert \
107                 filter/filter_transform \
108                 filter/filter_wall \
109                 filter/filter_clone \
110                 fx/fx_scope \
111                 ggi/ggi \
112                 glide/glide \
113                 gtk/gnome \
114                 gtk/gtk \
115                 idct/idct \
116                 idct/idctclassic \
117                 idct/idctmmx \
118                 idct/idctmmxext \
119                 idct/idctaltivec \
120                 imdct/imdct \
121                 imdct/imdct3dn \
122                 imdct/imdctsse \
123                 kde/kde \
124                 lirc/lirc \
125                 lpcm_adec/lpcm_adec \
126                 macosx/macosx \
127                 mad/mad \
128                 memcpy/memcpy \
129                 memcpy/memcpymmx \
130                 memcpy/memcpymmxext \
131                 memcpy/memcpy3dn \
132                 memcpy/memcpyaltivec \
133                 mga/mga \
134                 mga/xmga \
135                 motion/motion \
136                 motion/motionmmx \
137                 motion/motionmmxext \
138                 motion/motion3dnow \
139                 motion/motionaltivec \
140                 mpeg_system/mpeg_audio \
141                 mpeg_system/mpeg_es \
142                 mpeg_system/mpeg_ps \
143                 mpeg_system/mpeg_ts \
144                 mpeg_system/mpeg_ts_dvbpsi \
145                 mpeg_adec/mpeg_adec \
146                 mpeg_vdec/mpeg_vdec \
147                 network/ipv4 \
148                 network/ipv6 \
149                 ogg/vorbis \
150                 qnx/qnx \
151                 qt/qt \
152                 satellite/satellite \
153                 sdl/sdl \
154                 spudec/spudec \
155                 text/logger \
156                 text/ncurses \
157                 text/rc \
158                 vcd/vcd \
159                 win32/waveout \
160                 win32/intfwin \
161                 x11/x11 \
162                 x11/xvideo \
163                 xosd/xosd
164
165 #
166 # C Objects
167
168 VLC := vlc
169 LIBVLC := libvlc
170 INTERFACE := interface intf_eject
171 PLAYLIST := playlist
172 INPUT := input input_ext-plugins input_ext-dec input_ext-intf input_dec input_programs input_clock mpeg_system
173 VIDEO_OUTPUT := video_output video_text vout_pictures vout_subpictures
174 AUDIO_OUTPUT := audio_output aout_ext-dec aout_pcm aout_spdif
175 MISC := mtime modules threads cpu configuration netutils iso_lang messages objects extras
176
177 LIBVLC_OBJ :=   $(LIBVLC:%=src/%.o) \
178                 $(INTERFACE:%=src/interface/%.o) \
179                 $(PLAYLIST:%=src/playlist/%.o) \
180                 $(INPUT:%=src/input/%.o) \
181                 $(VIDEO_OUTPUT:%=src/video_output/%.o) \
182                 $(AUDIO_OUTPUT:%=src/audio_output/%.o) \
183                 $(MISC:%=src/misc/%.o)
184
185 VLC_OBJ := $(VLC:%=src/%.o)
186
187 C_OBJ := $(VLC_OBJ) $(LIBVLC_OBJ)
188
189 #
190 # Misc Objects
191
192 ifeq ($(NEED_GETOPT),1)
193 LIBVLC_OBJ += extras/GNUgetopt/getopt.o extras/GNUgetopt/getopt1.o 
194 endif
195
196 ifeq ($(NEED_SYMBOLS),1)
197 LIBVLC_OBJ += src/misc/symbols.o
198 endif
199
200 ifeq ($(SYS),beos)
201 CPP_OBJ :=      src/misc/beos_specific.o
202 endif
203
204 ifneq (,$(findstring darwin,$(SYS)))
205 LIBVLC_OBJ +=   src/misc/darwin_specific.o
206 endif
207
208 ifneq (,$(findstring mingw32,$(SYS)))
209 LIBVLC_OBJ +=   src/misc/win32_specific.o
210 RESOURCE_OBJ := share/vlc_win32_rc.o
211 endif
212
213 LIBVLC_OBJ += $(CPP_OBJ) $(M_OBJ) $(BUILTIN_OBJ)
214 VLC_OBJ += $(RESOURCE_OBJ)
215
216 #
217 # Generated header
218 #
219 H_OBJ :=        src/misc/modules_builtin.h
220
221 #
222 # Other lists of files
223 #
224 C_DEP := $(C_OBJ:%.o=.dep/%.d)
225 CPP_DEP := $(CPP_OBJ:%.o=.dep/%.dpp)
226
227 #
228 # Translate plugin names
229 #
230 ifneq (,$(PLUGINS))
231 PLUGIN_OBJ := $(shell for i in $(PLUGINS) ; do echo " "$(PLUGINS_TARGETS)" " | sed -e 's@.*/\('$$i'\) .*@plugins/\1.so@' -e 's@^ .*@@' ; done)
232 endif
233 ifneq (,$(BUILTINS))
234 BUILTIN_OBJ := $(shell for i in $(BUILTINS) ; do echo " "$(PLUGINS_TARGETS)" " | sed -e 's@.*/\('$$i'\) .*@plugins/\1.a@' -e 's@^ .*@@' ; done)
235 endif
236
237 #
238 # Misc variables
239 #
240 VERSION := $(shell grep '^ *VERSION=' configure.in | head -1 | sed 's/"//g' | cut -f2 -d=)
241
242 # All symbols must be exported
243 export
244
245 ###############################################################################
246 # Targets
247 ###############################################################################
248
249 #
250 # Virtual targets
251 #
252 all: Makefile.opts vlc ${ALIASES} vlc.app plugins po mozilla/libvlcplugin.so
253
254 Makefile.opts:
255         @echo "**** No configuration found, please run ./configure"
256         @exit 1
257 #       ./configure
258 #       $(MAKE) $(MAKECMDGOALS)
259 #       exit    
260
261 show:
262         @echo CC: $(CC)
263         @echo CFLAGS: $(CFLAGS)
264         @echo LDFLAGS: $(LDFLAGS)
265         @echo plugins_CFLAGS: $(plugins_CFLAGS)
266         @echo plugins_LDFLAGS: $(plugins_LDFLAGS)
267         @echo builtins_CFLAGS: $(builtins_CFLAGS)
268         @echo builtins_LDFLAGS: $(builtins_LDFLAGS)
269         @echo C_OBJ: $(C_OBJ)
270         @echo CPP_OBJ: $(CPP_OBJ)
271         @echo PLUGIN_OBJ: $(PLUGIN_OBJ)
272         @echo BUILTIN_OBJ: $(BUILTIN_OBJ)
273
274 #
275 # Cleaning rules
276 #
277 clean: plugins-clean po-clean vlc-clean mozilla-clean
278         rm -f src/*/*.o extras/*/*.o
279         rm -f lib/*.so* lib/*.a
280         rm -f plugins/*.so plugins/*.a plugins/*.lib plugins/*.tds
281         rm -Rf extras/MacOSX/build
282
283 po-clean:
284         -cd po && $(MAKE) clean
285
286 plugins-clean:
287         for dir in $(PLUGINS_DIR) ; do \
288                 ( cd plugins/$${dir} \
289                         && $(MAKE) -f ../../Makefile.modules clean ) ; done
290         rm -f plugins/*/*.o plugins/*/*.lo plugins/*/*.moc plugins/*/*.bak
291
292 vlc-clean:
293         rm -f $(C_OBJ) $(CPP_OBJ)
294         rm -f vlc gnome-vlc gvlc kvlc qvlc vlc.exe
295         rm -Rf vlc.app
296
297 mozilla-clean:
298         -cd mozilla && $(MAKE) clean
299
300 distclean: clean
301         -cd po && $(MAKE) maintainer-clean
302         rm -f **/*.o **/*~ *.log
303         rm -f Makefile.opts Makefile.config
304         rm -f include/defs.h include/modules_builtin.h
305         rm -f src/misc/modules_builtin.h
306         rm -f config*status config*cache config*log conftest*
307         rm -f gmon.out core build-stamp
308         rm -Rf .dep
309         rm -f .gdb_history
310
311 #
312 # Install/uninstall rules
313 #
314 install: vlc-install plugins-install po-install mozilla-install
315
316 uninstall: vlc-uninstall plugins-uninstall po-uninstall mozilla-uninstall
317
318 vlc-install:
319         mkdir -p $(DESTDIR)$(bindir)
320         $(INSTALL) vlc $(DESTDIR)$(bindir)
321 ifneq (,$(ALIASES))
322         for alias in $(ALIASES) ; do if test $$alias ; then rm -f $(DESTDIR)$(bindir)/$$alias && ln -s vlc $(DESTDIR)$(bindir)/$$alias ; fi ; done
323 endif
324         mkdir -p $(DESTDIR)$(datadir)/vlc
325         $(INSTALL) -m 644 share/*.psf $(DESTDIR)$(datadir)/vlc
326         $(INSTALL) -m 644 share/*.png $(DESTDIR)$(datadir)/vlc
327         $(INSTALL) -m 644 share/*.xpm $(DESTDIR)$(datadir)/vlc
328
329 vlc-uninstall:
330         rm -f $(DESTDIR)$(bindir)/vlc
331 ifneq (,$(ALIASES))
332         for alias in $(ALIASES) ; do if test $$alias ; then rm -f $(DESTDIR)$(bindir)/$$alias ; fi ; done
333 endif
334         rm -f $(DESTDIR)$(datadir)/vlc/*.psf
335         rm -f $(DESTDIR)$(datadir)/vlc/*.png
336         rm -f $(DESTDIR)$(datadir)/vlc/*.xpm
337
338 plugins-install:
339         mkdir -p $(DESTDIR)$(libdir)/vlc
340 ifneq (,$(PLUGINS))
341         $(INSTALL) -m 644 $(PLUGINS:%=plugins/%.so) $(DESTDIR)$(libdir)/vlc
342 endif
343
344 plugins-uninstall:
345         rm -f $(DESTDIR)$(libdir)/vlc/*.so
346
347 mozilla-install:
348 ifeq ($(MOZILLA),1)
349         -cd mozilla && $(MAKE) install
350 endif
351
352 mozilla-uninstall:
353 ifeq ($(MOZILLA),1)
354         -cd mozilla && $(MAKE) uninstall
355 endif
356
357 po-install:
358         -cd po && $(MAKE) install
359
360 po-uninstall:
361         -cd po && $(MAKE) uninstall
362
363 #
364 # Package generation rules
365 #
366 dist:
367         # Check that tmp isn't in the way
368         @if test -e tmp; then \
369                 echo "Error: please remove ./tmp, it is in the way"; false; \
370         else \
371                 echo "OK."; mkdir tmp; \
372         fi
373         # Copy directory structure in tmp
374         find -type d | grep -v '\(\.dep\|snapshot\|CVS\)' | while read i ; \
375                 do mkdir -p tmp/vlc/$$i ; \
376         done
377         rm -Rf tmp/vlc/tmp
378         find debian -mindepth 1 -maxdepth 1 -type d | \
379                 while read i ; do rm -Rf tmp/vlc/$$i ; done
380         # Copy .c .h .in .cpp .m and .glade files
381         find include src plugins -type f -name '*.[bcdhigmrst]*' | while read i ; \
382                 do cp $$i tmp/vlc/$$i ; done
383         # Grmbl... special case...
384         for i in API BUGS DESIGN TODO ; \
385                 do cp plugins/mad/$$i tmp/vlc/plugins/mad ; done
386         # Copy plugin Makefiles
387         find plugins -type f -name Makefile | while read i ; \
388                 do cp $$i tmp/vlc/$$i ; done
389         # Copy extra programs and documentation
390         cp -a extras/* tmp/vlc/extras
391         cp -a doc/* tmp/vlc/doc
392         find tmp/vlc/extras tmp/vlc/doc \
393                 -type d -name CVS -o -name '.*' -o -name '*.[o]' | \
394                         while read i ; do rm -Rf $$i ; done
395         # Copy gettext stuff
396         cp po/ChangeLog po/vlc.pot po/*.po tmp/vlc/po
397         for i in Makefile.in.in POTFILES.in ; do cp po/$$i tmp/vlc/po ; done
398         # Copy misc files
399         cp FAQ AUTHORS COPYING TODO todo.pl ChangeLog* README* INSTALL* \
400                 ABOUT-NLS BUGS MODULES vlc.spec \
401                 Makefile Makefile.*.in Makefile.dep Makefile.modules \
402                 configure configure.in install-sh install-win32 macosx-dmg \
403                 config.sub config.guess aclocal.m4 mkinstalldirs \
404                         tmp/vlc/
405         # Copy Debian control files
406         for file in debian/*dirs debian/*docs debian/*menu debian/*desktop \
407                 debian/*copyright ; do cp $$file tmp/vlc/debian ; done
408         for file in control changelog rules ; do \
409                 cp debian/$$file tmp/vlc/debian/ ; done
410         # Copy ipkg control files
411         for file in control rules patch ; do \
412                 cp ipkg/$$file tmp/vlc/ipkg/ ; done
413         # Copy fonts and icons
414         for file in share/*vlc* share/*psf; do \
415                 cp $$file tmp/vlc/share ; done
416         # Build archives
417         F=vlc-${VERSION}; \
418         mv tmp/vlc tmp/$$F; (cd tmp ; \
419                 cd $$F && $(MAKE) distclean && cd .. ; \
420                 tar czf ../$$F.tar.gz $$F);
421         # Clean up
422         rm -Rf tmp
423
424 package-win32:
425         # XXX: this rule is probably only useful to you if you have exactly
426         # the same setup as me. Contact sam@zoy.org if you need to use it.
427         #
428         # Check that tmp isn't in the way
429         @if test -e tmp; then \
430                 echo "Error: please remove ./tmp, it is in the way"; false; \
431         else \
432                 echo "OK."; mkdir tmp; \
433         fi
434         # Create installation script
435         cp install-win32 tmp/nsi
436         # Copy relevant files
437         cp vlc.exe tmp/ 
438         $(STRIP) tmp/vlc.exe
439         cp INSTALL.win32 tmp/INSTALL.txt ; unix2dos tmp/INSTALL.txt
440         for file in AUTHORS COPYING ChangeLog README FAQ TODO ; \
441                         do cp $$file tmp/$${file}.txt ; \
442                         unix2dos tmp/$${file}.txt ; done
443         mkdir tmp/plugins
444         cp $(PLUGINS:%=plugins/%.so) tmp/plugins/ 
445         # don't include these two
446         #rm -f tmp/plugins/gtk.so tmp/plugins/sdl.so
447 ifneq (,$(PLUGINS))
448         for i in $(PLUGINS) ; do if test $$i != intfwin ; then $(STRIP) tmp/plugins/$$i.so ; fi ; done
449 endif
450         mkdir tmp/share
451         for file in default8x16.psf default8x9.psf ; \
452                 do cp share/$$file tmp/share/ ; done
453         # Create package 
454         wine ~/.wine/fake_windows/Program\ Files/NSIS/makensis.exe -- /DVERSION=${VERSION} /CD tmp/nsi
455         # Clean up
456         rm -Rf tmp
457
458 package-beos:
459         # Check that tmp isn't in the way
460         @if test -e tmp; then \
461                 echo "Error: please remove ./tmp, it is in the way"; false; \
462         else \
463                 echo "OK."; mkdir tmp; \
464         fi
465         
466         # Create dir
467         mkdir -p tmp/vlc/share
468         # Copy relevant files
469         cp vlc tmp/vlc/
470         strip tmp/vlc/vlc
471         xres -o tmp/vlc/vlc ./share/vlc_beos.rsrc
472         cp AUTHORS COPYING ChangeLog README FAQ TODO tmp/vlc/
473         for file in default8x16.psf default8x9.psf ; \
474                 do cp share/$$file tmp/vlc/share/ ; done
475         mkdir tmp/vlc/plugins
476         cp $(PLUGINS:%=plugins/%.so) tmp/vlc/plugins/ 
477         strip $(PLUGINS:%=tmp/vlc/plugins/%.so)
478         # Create package 
479         mv tmp/vlc tmp/vlc-${VERSION}
480         (cd tmp ; find vlc-${VERSION} | \
481         zip -9 -@ vlc-${VERSION}-BeOS-x86.zip )
482         mv tmp/vlc-${VERSION}-BeOS-x86.zip .
483         # Clean up
484         rm -Rf tmp
485
486 package-macosx:
487         # Check that tmp isn't in the way
488         @if test -e tmp; then \
489                 echo "Error: please remove ./tmp, it is in the way"; false; \
490         else \
491                 echo "OK."; mkdir tmp; \
492         fi
493
494         # Copy relevant files 
495         cp -R vlc.app tmp/
496         cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf FAQ TODO tmp/
497
498         # Create disk image 
499         ./macosx-dmg 0 "vlc-${VERSION}" tmp/* 
500
501         # Clean up
502         rm -Rf tmp
503
504 #
505 # Gtk/Gnome/* aliases and OS X application
506 #
507 gnome-vlc gvlc kvlc qvlc: vlc
508         rm -f $@ && ln -s vlc $@
509
510 .PHONY: vlc.app
511 vlc.app: vlc plugins
512 ifneq (,$(findstring darwin,$(SYS)))
513         rm -Rf vlc.app
514         cd extras/MacOSX ; pbxbuild | grep -v '^ ' | grep -v '^\t' | grep -v "^$$"
515         cp -r extras/MacOSX/build/vlc.bundle ./vlc.app
516         $(INSTALL) -d vlc.app/Contents/MacOS/share
517         $(INSTALL) -d vlc.app/Contents/MacOS/plugins
518         $(INSTALL) vlc vlc.app/Contents/MacOS/
519 ifneq (,$(PLUGINS))
520         $(INSTALL) $(PLUGINS:%=plugins/%.so) vlc.app/Contents/MacOS/plugins
521 endif
522         $(INSTALL) -m 644 share/*.psf vlc.app/Contents/MacOS/share
523 endif
524
525 FORCE:
526
527 #
528 # Generic rules (see below)
529 #
530 src/misc/modules_builtin.h: Makefile.opts Makefile
531         @echo "make[$(MAKELEVEL)]: Creating \`$@'"
532         @rm -f $@ && cp $@.in $@
533 ifneq (,$(BUILTINS))
534         @for i in $(BUILTINS) ; do \
535                 echo "int InitModule__MODULE_"$$i"( module_t* );" >>$@; \
536                 echo "int ActivateModule__MODULE_"$$i"( module_t* );" >>$@; \
537                 echo "int DeactivateModule__MODULE_"$$i"( module_t* );" >>$@; \
538         done
539         @echo "" >> $@ ;
540 endif
541         @echo "#define ALLOCATE_ALL_BUILTINS() \\" >> $@ ;
542         @echo "    do \\" >> $@ ;
543         @echo "    { \\" >> $@ ;
544 ifneq (,$(BUILTINS))
545         @for i in $(BUILTINS) ; do \
546                 echo "        ALLOCATE_BUILTIN("$$i"); \\" >> $@ ; \
547         done
548 endif
549         @echo "    } while( 0 );" >> $@ ;
550         @echo "" >> $@ ;
551
552 $(C_DEP): %.d: FORCE
553         @$(MAKE) -s --no-print-directory -f Makefile.dep $@
554
555 $(CPP_DEP): %.dpp: FORCE
556         @$(MAKE) -s --no-print-directory -f Makefile.dep $@
557
558 $(C_OBJ): %.o: Makefile.opts Makefile.dep Makefile
559 $(C_OBJ): %.o: $(H_OBJ)
560 $(C_OBJ): %.o: .dep/%.d
561 $(C_OBJ): %.o: %.c
562         $(CC) $(CFLAGS) $(vlc_CFLAGS) -c -o $@ $<
563
564 $(CPP_OBJ): %.o: Makefile.opts Makefile.dep Makefile
565 $(CPP_OBJ): %.o: $(H_OBJ)
566 $(CPP_OBJ): %.o: .dep/%.dpp
567 $(CPP_OBJ): %.o: %.cpp
568         $(CC) $(CFLAGS) $(vlc_CFLAGS) -c -o $@ $<
569
570 $(M_OBJ): %.o: Makefile.opts Makefile.dep Makefile
571 $(M_OBJ): %.o: $(H_OBJ)
572 $(M_OBJ): %.o: .dep/%.dm
573 $(M_OBJ): %.o: %.m
574         $(CC) $(CFLAGS) $(vlc_CFLAGS) -c -o $@ $<
575
576 $(RESOURCE_OBJ): %.o: Makefile.dep Makefile
577 ifneq (,(findstring mingw32,$(SYS)))
578 $(RESOURCE_OBJ): %.o: %.rc
579         $(WINDRES) -i $< -o $@
580 endif
581
582 #
583 # Main application target
584 #
585 vlc: Makefile.config Makefile.opts Makefile.dep Makefile $(VLC_OBJ) lib/libvlc.a $(BUILTIN_OBJ)
586         $(CC) $(CFLAGS) -o $@ $(VLC_OBJ) lib/libvlc.a $(BUILTIN_OBJ) $(LDFLAGS) $(vlc_LDFLAGS) $(builtins_LDFLAGS)
587 ifeq ($(SYS),beos)
588         xres -o $@ ./share/vlc_beos.rsrc
589         mimeset -f $@
590 endif
591
592 # here are the rules for a dynamic link of libvlc:
593 #vlc: Makefile.opts Makefile.dep Makefile $(VLC_OBJ) lib/libvlc.so $(BUILTIN_OBJ)
594 #       $(CC) $(CFLAGS) -o $@ $(VLC_OBJ) $(BUILTIN_OBJ) $(LDFLAGS) $(builtins_LDFLAGS) -L./lib -lvlc
595
596 #
597 # Main library target
598 #
599 lib/libvlc.a: Makefile.opts Makefile.dep Makefile $(LIBVLC_OBJ)
600         rm -f $@
601         ar rc $@ $(LIBVLC_OBJ)
602         $(RANLIB) $@
603
604 #lib/libvlc.so: Makefile.opts Makefile.dep Makefile $(LIBVLC_OBJ)
605 #       $(CC) -shared $(LIBVLC_OBJ) $(LDFLAGS) $(vlc_LDFLAGS) -o $@
606 #       chmod a-x $@
607
608 #
609 # Plugins target
610 #
611 plugins: Makefile.modules Makefile.opts Makefile.dep Makefile $(PLUGIN_OBJ)
612 $(PLUGIN_OBJ): $(H_OBJ) FORCE
613         @cd $(shell echo " "$(PLUGINS_TARGETS)" " | sed -e 's@.* \([^/]*/\)'$(@:plugins/%.so=%)' .*@plugins/\1@' -e 's@^ .*@@') && $(MAKE) -f ../../Makefile.modules $(@:plugins/%=../%)
614
615 #
616 # Built-in modules target
617 #
618 builtins: Makefile.modules Makefile.opts Makefile.dep Makefile $(BUILTIN_OBJ)
619 $(BUILTIN_OBJ): $(H_OBJ) FORCE
620         @cd $(shell echo " "$(PLUGINS_TARGETS)" " | sed -e 's@.* \([^/]*/\)'$(@:plugins/%.a=%)' .*@plugins/\1@' -e 's@^ .*@@') && $(MAKE) -f ../../Makefile.modules $(@:plugins/%=../%)
621
622 #
623 # Mozilla plugin target
624 #
625 mozilla/libvlcplugin.so: FORCE
626 ifeq ($(MOZILLA),1)
627         @cd mozilla && $(MAKE) builtins_LDFLAGS="$(builtins_LDFLAGS)"
628 endif
629
630 #
631 # gettext target
632 #
633 po: FORCE
634         @cd po && $(MAKE)
635