1 ################################################################################
2 # vlc (VideoLAN Client) main makefile
4 ################################################################################
5 # This makefile is the main makefile for the VideoLAN client.
6 ################################################################################
8 ################################################################################
10 ################################################################################
12 # Debugging mode on or off (set to 1 to activate)
22 exec_prefix=@exec_prefix@
35 #----------------- do not change anything below this line ----------------------
37 ################################################################################
38 # Configuration pre-processing
39 ################################################################################
41 # PROGRAM_OPTIONS is an identification string of the compilation options
42 PROGRAM_OPTIONS = $(SYS) $(ARCH)
44 PROGRAM_OPTIONS += DEBUG
48 PROGRAM_OPTIONS += DEBUG
52 # PROGRAM_BUILD is a complete identification of the build
53 # (we can't use fancy options with date since OSes like Solaris
54 # or FreeBSD have strange date implementations)
55 PROGRAM_BUILD = `date` $(USER)
56 # XXX: beos does not support hostname (how lame...)
57 #PROGRAM_BUILD = `date` $(USER)@`hostname`
59 # DEFINE will contain some of the constants definitions decided in Makefile,
60 # including SYS_xx. It will be passed to C compiler.
61 DEFINE += -DSYS_$(shell echo $(SYS) | sed 's/-.*//' | tr '[a-z].' '[A-Z]_')
63 # On Linux activate 64-bit off_t (by default under BSD)
64 ifneq (,$(findstring linux,$(SYS)))
65 DEFINE += -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98
68 ################################################################################
69 # Tuning and other variables - do not change anything except if you know
70 # exactly what you are doing
71 ################################################################################
74 # C headers directories
76 INCLUDE += -Iinclude -I/usr/local/include
85 ifneq (,$(findstring bsd,$(SYS)))
86 LIB += -pthread -lgnugetopt
87 LIB += -L/usr/local/lib
90 ifneq (,$(findstring linux,$(SYS)))
94 ifneq (,$(findstring solaris,$(SYS)))
95 LIB += -ldl -lsocket -lnsl -lpthread
98 ifneq (,$(findstring darwin,$(SYS)))
103 LIB += -lbe -lroot -lgame
109 # C compiler flags: mainstream compilation
111 CFLAGS += $(DEFINE) $(INCLUDE)
112 CFLAGS += -Wall -Winline
113 CFLAGS += -D_REENTRANT
114 CFLAGS += -D_GNU_SOURCE
116 # flags needed for clean beos compilation
118 CFLAGS += -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual
121 ifneq (,$(findstring darwin,$(SYS)))
122 CFLAGS += -traditional-cpp
125 # Optimizations : don't compile debug versions with them
128 CFLAGS += -ffast-math -funroll-loops
129 CFLAGS += -fomit-frame-pointer
131 # Optimizations for x86 familiy
132 ifneq (,$(findstring 86,$(ARCH)))
133 # Optional Pentium Pro optimizations
134 ifneq (,$(findstring ppro,$(ARCH)))
135 CFLAGS += -march=pentiumpro -mcpu=pentiumpro
137 CFLAGS += -march=pentium -mcpu=pentium
141 # Optimizations for PowerPC
142 ifneq (,$(findstring powerpc,$(ARCH)))
143 CFLAGS += -mmultiple -mhard-float -mstring
146 # Optimizations for Sparc
147 ifneq (,$(findstring sparc,$(ARCH)))
148 CFLAGS += -mhard-float
151 #end of optimisations
154 # Optional MMX optimizations for x86
155 ifneq (,$(findstring mmx,$(ARCH)))
160 # C compiler flags: plugin compilation
162 ifneq (,$(findstring darwin,$(SYS)))
163 PCFLAGS += -bundle -undefined suppress
170 # C compiler flags: dependancies
172 DCFLAGS += $(INCLUDE)
176 # C compiler flags: linking
183 # Debugging and profiling support (unless optimisations are active)
189 #################################################################################
191 #################################################################################
196 INTERFACE = src/interface/main.o \
197 src/interface/interface.o \
198 src/interface/intf_msg.o \
199 src/interface/intf_cmd.o \
200 src/interface/intf_ctrl.o \
201 src/interface/intf_playlist.o \
202 src/interface/intf_channels.o \
203 src/interface/intf_console.o \
204 src/interface/intf_urldecode.o \
206 INPUT = src/input/input_ext-dec.o \
207 src/input/input_ext-intf.o \
208 src/input/input_dec.o \
209 src/input/input_programs.o \
210 src/input/input_netlist.o \
211 src/input/input_clock.o \
213 src/input/mpeg_system.o
215 AUDIO_OUTPUT = src/audio_output/audio_output.o \
216 src/audio_output/aout_fifo.o \
217 src/audio_output/aout_u8.o \
218 src/audio_output/aout_s8.o \
219 src/audio_output/aout_u16.o \
220 src/audio_output/aout_s16.o
222 VIDEO_OUTPUT = src/video_output/video_output.o \
223 src/video_output/video_text.o \
224 src/video_output/video_spu.o \
225 src/video_output/video_yuv.o
227 AC3_DECODER = src/ac3_decoder/ac3_decoder_thread.o \
228 src/ac3_decoder/ac3_decoder.o \
229 src/ac3_decoder/ac3_parse.o \
230 src/ac3_decoder/ac3_exponent.o \
231 src/ac3_decoder/ac3_bit_allocate.o \
232 src/ac3_decoder/ac3_mantissa.o \
233 src/ac3_decoder/ac3_rematrix.o \
234 src/ac3_decoder/ac3_imdct.o \
235 src/ac3_decoder/ac3_downmix.o \
236 src/ac3_decoder/ac3_downmix_c.o
238 LPCM_DECODER = src/lpcm_decoder/lpcm_decoder_thread.o \
239 src/lpcm_decoder/lpcm_decoder.o
241 AUDIO_DECODER = src/audio_decoder/audio_decoder.o \
242 src/audio_decoder/adec_generic.o \
243 src/audio_decoder/adec_layer1.o \
244 src/audio_decoder/adec_layer2.o \
245 src/audio_decoder/adec_math.o
247 SPU_DECODER = src/spu_decoder/spu_decoder.o
249 #GEN_DECODER = src/generic_decoder/generic_decoder.o
251 VIDEO_PARSER = src/video_parser/video_parser.o \
252 src/video_parser/vpar_headers.o \
253 src/video_parser/vpar_blocks.o \
254 src/video_parser/vpar_synchro.o \
255 src/video_parser/video_fifo.o
257 VIDEO_DECODER = src/video_decoder/video_decoder.o
259 MISC = src/misc/mtime.o \
261 src/misc/rsc_files.o \
266 C_OBJ = $(INTERFACE) \
284 CPP_OBJ = src/misc/beos_specific.o
290 ifneq (,$(findstring 86,$(ARCH)))
291 ifneq (,$(findstring mmx,$(ARCH)))
299 PLUGIN_ALSA = plugins/alsa/alsa.o \
300 plugins/alsa/aout_alsa.o
302 PLUGIN_BEOS = plugins/beos/beos.o \
303 plugins/beos/aout_beos.o \
304 plugins/beos/intf_beos.o \
305 plugins/beos/vout_beos.o \
306 plugins/beos/DrawingTidbits.o \
307 plugins/beos/TransportButton.o
309 PLUGIN_DARWIN = plugins/darwin/darwin.o \
310 plugins/darwin/aout_darwin.o
312 PLUGIN_DSP = plugins/dsp/dsp.o \
313 plugins/dsp/aout_dsp.o
315 PLUGIN_DUMMY = plugins/dummy/dummy.o \
316 plugins/dummy/aout_dummy.o \
317 plugins/dummy/intf_dummy.o \
318 plugins/dummy/vout_dummy.o
320 PLUGIN_DVD = plugins/dvd/dvd.o \
321 plugins/dvd/input_dvd.o \
322 plugins/dvd/dvd_netlist.o \
323 plugins/dvd/dvd_ioctl.o \
324 plugins/dvd/dvd_ifo.o \
325 plugins/dvd/dvd_udf.o \
326 plugins/dvd/dvd_css.o
328 PLUGIN_ESD = plugins/esd/esd.o \
329 plugins/esd/aout_esd.o
331 PLUGIN_FB = plugins/fb/fb.o \
334 PLUGIN_GGI = plugins/ggi/ggi.o \
335 plugins/ggi/vout_ggi.o
337 PLUGIN_GLIDE = plugins/glide/glide.o \
338 plugins/glide/vout_glide.o
340 PLUGIN_GTK = plugins/gtk/gtk.o \
341 plugins/gtk/intf_gtk.o \
342 plugins/gtk/gtk_callbacks.o \
343 plugins/gtk/gtk_interface.o \
344 plugins/gtk/gtk_support.o \
345 plugins/gtk/gtk_playlist.o
347 PLUGIN_GNOME = plugins/gnome/gnome.o \
348 plugins/gnome/intf_gnome.o \
349 plugins/gnome/gnome_callbacks.o \
350 plugins/gnome/gnome_interface.o \
351 plugins/gnome/gnome_support.o
353 PLUGIN_QT = plugins/qt/qt.o \
356 PLUGIN_KDE = plugins/kde/kde.o \
357 plugins/kde/intf_kde.o
359 PLUGIN_IDCT = plugins/idct/idct.o \
360 plugins/idct/idct_common.o
362 PLUGIN_IDCTCLASSIC = plugins/idct/idctclassic.o \
363 plugins/idct/idct_common.o
365 PLUGIN_IDCTMMX = plugins/idct/idctmmx.o \
366 plugins/idct/idct_common.o
368 PLUGIN_IDCTMMXEXT = plugins/idct/idctmmxext.o \
369 plugins/idct/idct_common.o
371 PLUGIN_MACOSX = plugins/macosx/macosx.o \
372 plugins/macosx/intf_macosx.o \
373 plugins/macosx/vout_macosx.o
375 PLUGIN_MGA = plugins/mga/mga.o \
376 plugins/mga/vout_mga.o
378 PLUGIN_MOTION = plugins/motion/motion.o \
379 plugins/motion/vdec_motion_common.o \
380 plugins/motion/vdec_motion_inner.o
382 PLUGIN_MOTIONMMX = plugins/motion/motionmmx.o \
383 plugins/motion/vdec_motion_common.o \
384 plugins/motion/vdec_motion_inner_mmx.o
386 PLUGIN_MOTIONMMXEXT = plugins/motion/motionmmxext.o \
387 plugins/motion/vdec_motion_common.o \
388 plugins/motion/vdec_motion_inner_mmxext.o
390 PLUGIN_NCURSES = plugins/text/ncurses.o \
391 plugins/text/intf_ncurses.o
393 PLUGIN_NULL = plugins/null/null.o
395 PLUGIN_PS = plugins/mpeg/ps.o \
396 plugins/mpeg/input_ps.o
398 PLUGIN_SDL = plugins/sdl/sdl.o \
399 plugins/sdl/vout_sdl.o \
400 plugins/sdl/aout_sdl.o
402 PLUGIN_TS = plugins/mpeg/ts.o \
403 plugins/mpeg/input_ts.o
405 PLUGIN_X11= plugins/x11/x11.o \
406 plugins/x11/vout_x11.o
408 PLUGIN_YUV = plugins/yuv/yuv.o \
409 plugins/yuv/video_yuv.o \
410 plugins/yuv/transforms_yuv.o
412 PLUGIN_YUVMMX = plugins/yuv/yuvmmx.o \
413 plugins/yuv/video_yuvmmx.o \
414 plugins/yuv/transforms_yuvmmx.o
426 $(PLUGIN_IDCTCLASSIC) \
428 $(PLUGIN_IDCTMMXEXT) \
432 $(PLUGIN_MOTIONMMX) \
433 $(PLUGIN_MOTIONMMXEXT) \
443 STD_PLUGIN_COMMON = plugins/idct/idct_common.o \
444 plugins/motion/vdec_motion_common.o
446 # filter out duplicates from the plugin object lists
447 STD_PLUGIN_OBJ := $(filter-out $(STD_PLUGIN_COMMON), \
448 $(STD_PLUGIN_OBJ)) $(STD_PLUGIN_COMMON)
450 NONSTD_PLUGIN_OBJ = \
456 NONSTD_CPP_PLUGIN_OBJ = \
462 # Other lists of files
464 objects := $(C_OBJ) $(ASM_OBJ) $(STD_PLUGIN_OBJ) $(NONSTD_PLUGIN_OBJ)
465 cdependancies := $(objects:%.o=.dep/%.d)
466 cppobjects := $(CPP_OBJ) $(NONSTD_CPP_PLUGIN_OBJ)
467 cppdependancies := $(cppobjects:%.o=.dep/%.dpp)
469 # All symbols must be exported
472 ################################################################################
474 ################################################################################
479 all: vlc @ALIASES@ plugins
482 rm -f $(C_OBJ) $(CPP_OBJ) $(ASM_OBJ) $(STD_PLUGIN_OBJ)
483 rm -f plugins/*/*.o src/*/*.o lib/*.so
484 rm -f vlc gvlc kvlc qvlc
487 rm -f src/*/*.o plugins/*/*.o **/*~ *.log
488 rm -f Makefile include/defs.h include/config.h
489 rm -f config.status config.cache config.log
490 rm -f gmon.out core build-stamp
494 mkdir -p $(DESTDIR)$(bindir)
495 $(INSTALL) vlc $(DESTDIR)$(bindir)
497 for alias in "" @ALIASES@ ; do if test $$alias ; then rm -f $(DESTDIR)$(bindir)/$$alias && ln -s vlc $(DESTDIR)$(bindir)/$$alias ; fi ; done
498 mkdir -p $(DESTDIR)$(libdir)/videolan/vlc
499 $(INSTALL) -m 644 $(PLUGINS:%=lib/%.so) $(DESTDIR)$(libdir)/videolan/vlc
500 mkdir -p $(DESTDIR)$(datadir)/videolan
501 $(INSTALL) -m 644 share/*.psf $(DESTDIR)$(datadir)/videolan
502 $(INSTALL) -m 644 share/*.png $(DESTDIR)$(datadir)/videolan
503 $(INSTALL) -m 644 share/*.xpm $(DESTDIR)$(datadir)/videolan
507 @echo CFLAGS: $(CFLAGS)
508 @echo DCFLAGS: $(DCFLAGS)
509 @echo LCFLAGS: $(LCFLAGS)
510 @echo C_OBJ: $(C_OBJ)
511 @echo CPP_OBJ: $(CPP_OBJ)
512 @echo STD_PLUGIN_OBJ: $(STD_PLUGIN_OBJ)
513 @echo NONSTD_PLUGIN_OBJ: $(NONSTD_PLUGIN_OBJ)
514 @echo NONSTD_CPP_PLUGIN_OBJ: $(NONSTD_CPP_PLUGIN_OBJ)
515 @echo objects: $(objects)
516 @echo cppobjects: $(cppobjects)
518 # ugliest of all, but I have no time to do it -- sam
520 rm -rf /tmp/vlc-@VLC_VERSION@* /tmp/vlc-@VLC_VERSION@nocss*
521 # copy archive in /tmp
522 find -type d | grep -v CVS | grep -v '\.dep' | while read i ; \
523 do mkdir -p /tmp/vlc-@VLC_VERSION@/$$i ; \
525 find debian -mindepth 1 -maxdepth 1 -type d | \
526 while read i ; do rm -rf /tmp/vlc-@VLC_VERSION@/$$i ; done
528 find include src plugins -type f -name '*.[chi]*' | while read i ; \
529 do cp $$i /tmp/vlc-@VLC_VERSION@/$$i ; \
532 cp vlc.spec AUTHORS COPYING ChangeLog INSTALL README TODO \
533 Makefile.in Makefile.dep configure configure.in install-sh \
534 config.sub config.guess todo.pl \
535 /tmp/vlc-@VLC_VERSION@/
536 for file in control control-css vlc-gtk.menu vlc.copyright vlc.docs \
537 changelog changelog-css rules rules-css vlc.1 vlc.dirs \
539 cp debian/$$file /tmp/vlc-@VLC_VERSION@/debian/ ; done
540 for file in default8x16.psf default8x9.psf gvlc.png vlc.png \
541 gvlc.xpm vlc.xpm ; do \
542 cp share/$$file /tmp/vlc-@VLC_VERSION@/share/ ; done
544 # build css-enabled archives
545 (cd /tmp ; tar cf vlc-@VLC_VERSION@.tar vlc-@VLC_VERSION@ ; \
546 bzip2 -f -9 < vlc-@VLC_VERSION@.tar \
547 > vlc-@VLC_VERSION@.tar.bz2 ; \
548 gzip -f -9 vlc-@VLC_VERSION@.tar )
549 mv /tmp/vlc-@VLC_VERSION@.tar.gz /tmp/vlc-@VLC_VERSION@.tar.bz2 ..
552 rm -rf /tmp/vlc-@VLC_VERSION@*
554 plugins: $(PLUGINS:%=lib/%.so)
559 # GTK/Gnome and Framebuffer aliases - don't add new aliases which could bloat
563 rm -f $@ && ln -s vlc $@
567 # Generic rules (see below)
569 $(cdependancies): %.d: FORCE
570 @$(MAKE) -s --no-print-directory -f Makefile.dep $@
572 $(cppdependancies): %.dpp: FORCE
573 @$(MAKE) -s --no-print-directory -f Makefile.dep $@
575 $(C_OBJ): %.o: Makefile.dep
576 $(C_OBJ): %.o: .dep/%.d
578 $(CC) $(CFLAGS) -c -o $@ $<
580 $(CPP_OBJ): %.o: Makefile.dep
581 $(CPP_OBJ): %.o: .dep/%.dpp
582 $(CPP_OBJ): %.o: %.cpp
583 $(CC) $(CFLAGS) -c -o $@ $<
585 $(ASM_OBJ): %.o: Makefile.dep
587 $(CC) $(CFLAGS) -c -o $@ $<
589 $(STD_PLUGIN_OBJ): %.o: Makefile.dep
590 $(STD_PLUGIN_OBJ): %.o: .dep/%.d
591 $(STD_PLUGIN_OBJ): %.o: %.c
592 $(CC) $(CFLAGS) $(PCFLAGS) -c -o $@ $<
594 $(PLUGIN_X11): %.o: Makefile.dep
595 $(PLUGIN_X11): %.o: .dep/%.d
596 $(PLUGIN_X11): %.o: %.c
597 $(CC) $(CFLAGS) $(PCFLAGS) -I/usr/X11R6/include -c -o $@ $<
599 $(PLUGIN_GTK): %.o: Makefile.dep
600 $(PLUGIN_GTK): %.o: .dep/%.d
601 $(PLUGIN_GTK): %.o: %.c
602 $(CC) $(CFLAGS) $(PCFLAGS) `gtk-config --cflags gtk` -c -o $@ $<
604 $(PLUGIN_GNOME): %.o: Makefile.dep
605 $(PLUGIN_GNOME): %.o: .dep/%.d
606 $(PLUGIN_GNOME): %.o: %.c
607 $(CC) $(CFLAGS) $(PCFLAGS) `gnome-config --cflags gtk gnomeui` -c -o $@ $<
609 $(PLUGIN_GLIDE): %.o: Makefile.dep
610 $(PLUGIN_GLIDE): %.o: .dep/%.d
611 $(PLUGIN_GLIDE): %.o: %.c
612 $(CC) $(CFLAGS) $(PCFLAGS) -I/usr/include/glide -c -o $@ $<
614 $(PLUGIN_QT): %.o: Makefile.dep
615 $(PLUGIN_QT): %.o: .dep/%.dpp
616 $(PLUGIN_QT): %.o: %.moc
617 $(CC) $(CFLAGS) $(PCFLAGS) -I/usr/include/qt -c -o $@ $(<:%.moc=%.cpp)
618 $(PLUGIN_QT:%.o=%.moc): %.moc: %.cpp
621 $(PLUGIN_KDE): %.o: Makefile.dep
622 $(PLUGIN_KDE): %.o: .dep/%.dpp
623 $(PLUGIN_KDE): %.o: %.cpp
624 $(CC) $(CFLAGS) $(PCFLAGS) -I/usr/include/kde -I/usr/include/qt -fno-rtti -c -o $@ $<
626 $(PLUGIN_BEOS): %.o: Makefile.dep
627 $(PLUGIN_BEOS): %.o: .dep/%.dpp
628 $(PLUGIN_BEOS): %.o: %.cpp
629 $(CC) $(CFLAGS) $(PCFLAGS) -c -o $@ $<
632 # Main application target
635 vlc: $(C_OBJ) $(CPP_OBJ) $(ASM_OBJ)
637 $(CC) $(CFLAGS) $(LCFLAGS) -Xlinker -soname=_APP_ -o $@ $(C_OBJ) $(CPP_OBJ) $(ASM_OBJ)
638 rm -f ./plugins/_APP_
639 ln -s ../vlc ./plugins/_APP_
641 ifeq ($(SYS),nto-qnx)
642 $(CC) $(CFLAGS) $(LCFLAGS) -Xlinker -export-dynamic -o $@ $(C_OBJ) $(CPP_OBJ) $(ASM_OBJ)
644 $(CC) $(CFLAGS) $(LCFLAGS) --export-dynamic @DYNAMIC_FLAG@ -o $@ $(C_OBJ) $(CPP_OBJ) $(ASM_OBJ)
652 lib/beos.so: $(PLUGIN_BEOS)
653 $(CC) $(PCFLAGS) -nostart -Xlinker -soname=$@ -o $@ $^ plugins/_APP_ -lbe -lgame -lroot -ltracker
655 lib/esd.so: $(PLUGIN_ESD)
656 ifneq (,$(findstring bsd,$(SYS)))
657 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^ -lesd
659 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^ -laudiofile -lesd
662 lib/macosx.so: $(PLUGIN_MACOSX)
663 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^
665 lib/darwin.so: $(PLUGIN_DARWIN)
666 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^
668 lib/dsp.so: $(PLUGIN_DSP)
669 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^
671 lib/qt.so: $(PLUGIN_QT)
672 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^ -lqt
674 lib/kde.so: $(PLUGIN_KDE)
675 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^ -lkdeui -lkdecore -lqt -ldl
677 lib/alsa.so: $(PLUGIN_ALSA)
678 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^ -lasound
680 lib/fb.so: $(PLUGIN_FB)
681 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^
683 ifeq ($(SYS),nto-qnx)
684 lib/x11.so: $(PLUGIN_X11)
685 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^ -L/usr/X11R6/lib -lX11 -lXext -lsocket
687 lib/x11.so: $(PLUGIN_X11)
688 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^ -L/usr/X11R6/lib -lX11 -lXext
691 lib/mga.so: $(PLUGIN_MGA)
692 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^ -L/usr/X11R6/lib -lX11 -lXext
694 lib/gtk.so: $(PLUGIN_GTK)
695 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^ `gtk-config --libs gtk | sed 's,-rdynamic,,'`
697 lib/gnome.so: $(PLUGIN_GNOME)
698 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^ `gnome-config --libs gnomeui | sed 's,-rdynamic,,'`
700 lib/glide.so: $(PLUGIN_GLIDE)
701 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^ $(LIB_GLIDE)
703 lib/ggi.so: $(PLUGIN_GGI)
704 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^ $(LIB_GGI)
706 lib/sdl.so: $(PLUGIN_SDL)
707 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^ $(LIB_SDL)
709 lib/ncurses.so: $(PLUGIN_NCURSES)
710 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^ -lncurses
713 lib/null.so: $(PLUGIN_NULL)
714 $(CC) -nostart -Xlinker -soname=$@ -o $@ $^ plugins/_APP_
716 lib/ps.so: $(PLUGIN_PS)
717 $(CC) -nostart -Xlinker -soname=$@ -o $@ $^ plugins/_APP_
719 lib/ts.so: $(PLUGIN_TS)
720 $(CC) -nostart -Xlinker -soname=$@ -o $@ $^ plugins/_APP_
722 lib/dvd.so: $(PLUGIN_DVD)
723 $(CC) -nostart -Xlinker -soname=$@ -o $@ $^ plugins/_APP_
725 lib/dummy.so: $(PLUGIN_DUMMY)
726 $(CC) -nostart -Xlinker -soname=$@ -o $@ $^ plugins/_APP_
728 lib/yuv.so: $(PLUGIN_YUV)
729 $(CC) -nostart -Xlinker -soname=$@ -o $@ $^ plugins/_APP_
731 lib/yuvmmx.so: $(PLUGIN_YUVMMX)
732 $(CC) -nostart -Xlinker -soname=$@ -o $@ $^ plugins/_APP_
734 lib/motion.so: $(PLUGIN_MOTION)
735 $(CC) -nostart -Xlinker -soname=$@ -o $@ $^ plugins/_APP_
737 lib/motionmmx.so: $(PLUGIN_MOTIONMMX)
738 $(CC) -nostart -Xlinker -soname=$@ -o $@ $^ plugins/_APP_
740 lib/motionmmxext.so: $(PLUGIN_MOTIONMMXEXT)
741 $(CC) -nostart -Xlinker -soname=$@ -o $@ $^ plugins/_APP_
743 lib/idct.so: $(PLUGIN_IDCT)
744 $(CC) -nostart -Xlinker -soname=$@ -o $@ $^ plugins/_APP_
746 lib/idctclassic.so: $(PLUGIN_IDCTCLASSIC)
747 $(CC) -nostart -Xlinker -soname=$@ -o $@ $^ plugins/_APP_
749 lib/idctmmx.so: $(PLUGIN_IDCTMMX)
750 $(CC) -nostart -Xlinker -soname=$@ -o $@ $^ plugins/_APP_
752 lib/idctmmxext.so: $(PLUGIN_IDCTMMXEXT)
753 $(CC) -nostart -Xlinker -soname=$@ -o $@ $^ plugins/_APP_
755 lib/null.so: $(PLUGIN_NULL)
756 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^
758 lib/ps.so: $(PLUGIN_PS)
759 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^
761 lib/ts.so: $(PLUGIN_TS)
762 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^
764 lib/dvd.so: $(PLUGIN_DVD)
765 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^
767 lib/dummy.so: $(PLUGIN_DUMMY)
768 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^
770 lib/yuv.so: $(PLUGIN_YUV)
771 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^
773 lib/yuvmmx.so: $(PLUGIN_YUVMMX)
774 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^
776 lib/motion.so: $(PLUGIN_MOTION)
777 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^
779 lib/motionmmx.so: $(PLUGIN_MOTIONMMX)
780 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^
782 lib/motionmmxext.so: $(PLUGIN_MOTIONMMXEXT)
783 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^
785 lib/idct.so: $(PLUGIN_IDCT)
786 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^
788 lib/idctclassic.so: $(PLUGIN_IDCTCLASSIC)
789 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^
791 lib/idctmmx.so: $(PLUGIN_IDCTMMX)
792 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^
794 lib/idctmmxext.so: $(PLUGIN_IDCTMMXEXT)
795 $(CC) $(PCFLAGS) $(PLCFLAGS) -o $@ $^
798 ################################################################################
799 # Note on generic rules and dependancies
800 ################################################################################
802 # Note on dependancies: each .c file is associated with a .d file, which
803 # depends of it. The .o file associated with a .c file depends of the .d, of the
804 # .c itself, and of Makefile. The .d files are stored in a separate .dep/
806 # The dep directory should be ignored by CVS.
808 # Note on inclusions: depending of the target, the dependancies files must
809 # or must not be included. The problem is that if we ask make to include a file,
810 # and this file does not exist, it is made before it can be included. In a
811 # general way, a .d file should be included if and only if the corresponding .o
812 # needs to be re-made.
814 # Two makefiles are used: the main one (this one) has regular generic rules,
815 # except for .o files, for which it calls the object Makefile. Dependancies
816 # are not included in this file.
817 # The object Makefile known how to make a .o from a .c, and includes
818 # dependancies for the target, but only those required.