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