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@
31 #----------------- do not change anything below this line ----------------------
33 ################################################################################
34 # Configuration pre-processing
35 ################################################################################
37 # PROGRAM_OPTIONS is an identification string of the compilation options
38 PROGRAM_OPTIONS = $(SYS) $(ARCH)
40 PROGRAM_OPTIONS += DEBUG
44 PROGRAM_OPTIONS += DEBUG
48 # PROGRAM_BUILD is a complete identification of the build
49 # (we can't use fancy options with date since OSes like Solaris
50 # or FreeBSD have strange date implementations)
52 # XXX: beos does not support hostname (how lame...)
53 PROGRAM_BUILD = `date` $(USER)
55 PROGRAM_BUILD = `date` $(USER)@`hostname`
58 # DEFINE will contain some of the constants definitions decided in Makefile,
59 # including SYS_xx. It will be passed to C compiler.
60 DEFINE += -DSYS_$(shell echo $(SYS) | sed 's/-.*//' | tr '[a-z].' '[A-Z]_')
62 # On Linux activate 64-bit off_t (by default under BSD)
63 ifneq (,$(findstring linux,$(SYS)))
64 DEFINE += -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98
67 ################################################################################
68 # Tuning and other variables - do not change anything except if you know
69 # exactly what you are doing
70 ################################################################################
73 # C headers directories
76 INCLUDE += -Iinclude -Iextras -I/usr/local/include
81 LIB = @LIB@ -L/usr/local/lib
84 LIB += -lbe -lroot -lgame
90 # C compiler flags: mainstream compilation
92 CFLAGS += $(DEFINE) $(INCLUDE)
93 CFLAGS += -Wall -Winline
94 CFLAGS += -D_REENTRANT
95 CFLAGS += -D_GNU_SOURCE
97 # flags needed for clean beos compilation
99 CFLAGS += -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual
102 ifneq (,$(findstring darwin,$(SYS)))
103 CFLAGS += -traditional-cpp
106 # Optimizations : don't compile debug versions with them
109 CFLAGS += -ffast-math -funroll-loops
110 CFLAGS += -fomit-frame-pointer
112 # Optimizations for x86 familiy
113 ifneq (,$(findstring 86,$(ARCH)))
114 # Optional Pentium Pro optimizations
115 ifneq (,$(findstring ppro,$(ARCH)))
116 CFLAGS += -march=pentiumpro -mcpu=pentiumpro
118 CFLAGS += -march=pentium -mcpu=pentium
122 # Optimizations for PowerPC
123 ifneq (,$(findstring powerpc,$(ARCH)))
124 CFLAGS += -mmultiple -mhard-float -mstring
127 # Optimizations for Sparc
128 ifneq (,$(findstring sparc,$(ARCH)))
129 CFLAGS += -mhard-float
132 #end of optimisations
135 # Optional MMX optimizations for x86
136 ifneq (,$(findstring mmx,$(ARCH)))
141 # C compiler flags: plugin compilation
146 # C compiler flags: plugin linking
148 ifneq (,$(findstring darwin,$(SYS)))
149 PLCFLAGS += -bundle -undefined suppress
152 PLCFLAGS += -nostart plugins/_APP_
159 # C compiler flags: dependancies
161 DCFLAGS += $(INCLUDE)
165 # C compiler flags: linking
167 LCFLAGS += @LCFLAGS@ $(LIB)
172 LCFLAGS += -Xlinker -soname=_APP_
174 ifneq (,$(findstring qnx,$(SYS)))
175 LCFLAGS += -Xlinker -export-dynamic
177 ifneq (,$(findstring darwin,$(SYS)))
180 LCFLAGS += --export-dynamic
186 # Debugging and profiling support (unless optimisations are active)
192 #################################################################################
194 #################################################################################
199 INTERFACE = src/interface/main.o \
200 src/interface/interface.o \
201 src/interface/intf_msg.o \
202 src/interface/intf_cmd.o \
203 src/interface/intf_ctrl.o \
204 src/interface/intf_playlist.o \
205 src/interface/intf_channels.o \
206 src/interface/intf_console.o \
207 src/interface/intf_urldecode.o \
209 INPUT = src/input/input_ext-dec.o \
210 src/input/input_ext-intf.o \
211 src/input/input_dec.o \
212 src/input/input_programs.o \
213 src/input/input_netlist.o \
214 src/input/input_clock.o \
216 src/input/mpeg_system.o
218 AUDIO_OUTPUT = src/audio_output/audio_output.o \
219 src/audio_output/aout_fifo.o \
220 src/audio_output/aout_u8.o \
221 src/audio_output/aout_s8.o \
222 src/audio_output/aout_u16.o \
223 src/audio_output/aout_s16.o
225 VIDEO_OUTPUT = src/video_output/video_output.o \
226 src/video_output/video_text.o \
227 src/video_output/video_spu.o \
228 src/video_output/video_yuv.o
230 AC3_DECODER = src/ac3_decoder/ac3_decoder_thread.o \
231 src/ac3_decoder/ac3_decoder.o \
232 src/ac3_decoder/ac3_parse.o \
233 src/ac3_decoder/ac3_exponent.o \
234 src/ac3_decoder/ac3_bit_allocate.o \
235 src/ac3_decoder/ac3_mantissa.o \
236 src/ac3_decoder/ac3_rematrix.o \
237 src/ac3_decoder/ac3_imdct.o \
238 src/ac3_decoder/ac3_downmix.o \
239 src/ac3_decoder/ac3_downmix_c.o
241 LPCM_DECODER = src/lpcm_decoder/lpcm_decoder_thread.o \
242 src/lpcm_decoder/lpcm_decoder.o
244 AUDIO_DECODER = src/audio_decoder/audio_decoder.o \
245 src/audio_decoder/adec_generic.o \
246 src/audio_decoder/adec_layer1.o \
247 src/audio_decoder/adec_layer2.o \
248 src/audio_decoder/adec_math.o
250 SPU_DECODER = src/spu_decoder/spu_decoder.o
252 #GEN_DECODER = src/generic_decoder/generic_decoder.o
254 VIDEO_PARSER = src/video_parser/video_parser.o \
255 src/video_parser/vpar_headers.o \
256 src/video_parser/vpar_blocks.o \
257 src/video_parser/vpar_synchro.o \
258 src/video_parser/video_fifo.o
260 VIDEO_DECODER = src/video_decoder/video_decoder.o
262 MISC = src/misc/mtime.o \
264 src/misc/rsc_files.o \
268 C_OBJ = $(INTERFACE) \
287 CPP_OBJ = src/misc/beos_specific.o
290 ifneq (,$(findstring darwin,$(SYS)))
291 C_OBJ += src/misc/darwin_specific.o
297 ifneq (,$(findstring 86,$(ARCH)))
298 ifneq (,$(findstring mmx,$(ARCH)))
306 PLUGIN_ALSA = plugins/alsa/alsa.o \
307 plugins/alsa/aout_alsa.o
309 PLUGIN_BEOS = plugins/beos/beos.o \
310 plugins/beos/aout_beos.o \
311 plugins/beos/intf_beos.o \
312 plugins/beos/vout_beos.o \
313 plugins/beos/DrawingTidbits.o \
314 plugins/beos/TransportButton.o
316 PLUGIN_DARWIN = plugins/darwin/darwin.o
318 PLUGIN_DSP = plugins/dsp/dsp.o \
319 plugins/dsp/aout_dsp.o
321 PLUGIN_DUMMY = plugins/dummy/dummy.o \
322 plugins/dummy/aout_dummy.o \
323 plugins/dummy/intf_dummy.o \
324 plugins/dummy/vout_dummy.o
326 PLUGIN_DVD = plugins/dvd/dvd.o \
327 plugins/dvd/input_dvd.o \
328 plugins/dvd/dvd_netlist.o \
329 plugins/dvd/dvd_ioctl.o \
330 plugins/dvd/dvd_ifo.o \
331 plugins/dvd/dvd_udf.o \
332 plugins/dvd/dvd_css.o
334 PLUGIN_ESD = plugins/esd/esd.o \
335 plugins/esd/aout_esd.o
337 PLUGIN_FB = plugins/fb/fb.o \
340 PLUGIN_GGI = plugins/ggi/ggi.o \
341 plugins/ggi/vout_ggi.o
343 PLUGIN_GLIDE = plugins/glide/glide.o \
344 plugins/glide/vout_glide.o
346 PLUGIN_GNOME = plugins/gnome/gnome.o \
347 plugins/gnome/intf_gnome.o \
348 plugins/gnome/gnome_callbacks.o \
349 plugins/gnome/gnome_interface.o \
350 plugins/gnome/gnome_support.o
352 PLUGIN_GTK = plugins/gtk/gtk.o \
353 plugins/gtk/intf_gtk.o \
354 plugins/gtk/gtk_callbacks.o \
355 plugins/gtk/gtk_interface.o \
356 plugins/gtk/gtk_support.o \
357 plugins/gtk/gtk_playlist.o
359 PLUGIN_IDCT = plugins/idct/idct.o
361 PLUGIN_IDCTCLASSIC = plugins/idct/idctclassic.o
363 PLUGIN_IDCTMMX = plugins/idct/idctmmx.o
365 PLUGIN_IDCTMMXEXT = plugins/idct/idctmmxext.o
367 PLUGIN_IDCTALTIVEC = plugins/idct/idctaltivec.o
369 PLUGIN_IDCTCOMMON = plugins/idct/idct_common.o
371 PLUGIN_KDE = plugins/kde/kde.o \
372 plugins/kde/intf_kde.o
374 PLUGIN_MACOSX = plugins/macosx/macosx.o \
375 plugins/macosx/intf_macosx.o \
376 plugins/macosx/aout_macosx.o \
377 plugins/macosx/vout_macosx.o
379 PLUGIN_MGA = plugins/mga/mga.o \
380 plugins/mga/vout_mga.o
382 PLUGIN_MOTION = plugins/motion/motion.o \
383 plugins/motion/vdec_motion_inner.o
385 PLUGIN_MOTIONMMX = plugins/motion/motionmmx.o \
386 plugins/motion/vdec_motion_inner_mmx.o
388 PLUGIN_MOTIONMMXEXT = plugins/motion/motionmmxext.o \
389 plugins/motion/vdec_motion_inner_mmxext.o
391 PLUGIN_MOTIONCOMMON = plugins/motion/vdec_motion_common.o
393 PLUGIN_NCURSES = plugins/text/ncurses.o \
394 plugins/text/intf_ncurses.o
396 PLUGIN_NULL = plugins/null/null.o
398 PLUGIN_PS = plugins/mpeg/ps.o \
399 plugins/mpeg/input_ps.o
401 PLUGIN_QT = plugins/qt/qt.o \
404 PLUGIN_SDL = plugins/sdl/sdl.o \
405 plugins/sdl/vout_sdl.o \
406 plugins/sdl/aout_sdl.o
408 PLUGIN_TS = plugins/mpeg/ts.o \
409 plugins/mpeg/input_ts.o
411 PLUGIN_XVIDEO = plugins/x11/xvideo.o \
412 plugins/x11/vout_xvideo.o
414 PLUGIN_X11 = plugins/x11/x11.o \
415 plugins/x11/vout_x11.o
417 PLUGIN_YUV = plugins/yuv/yuv.o \
418 plugins/yuv/video_yuv.o \
419 plugins/yuv/transforms_yuv.o
421 PLUGIN_YUVMMX = plugins/yuv/yuvmmx.o \
422 plugins/yuv/video_yuvmmx.o \
423 plugins/yuv/transforms_yuvmmx.o
435 $(PLUGIN_IDCTCLASSIC) \
437 $(PLUGIN_IDCTMMXEXT) \
438 $(PLUGIN_IDCTCOMMON) \
441 $(PLUGIN_MOTIONMMX) \
442 $(PLUGIN_MOTIONMMXEXT) \
443 $(PLUGIN_MOTIONCOMMON) \
452 NONSTD_PLUGIN_OBJ = \
459 $(PLUGIN_IDCTALTIVEC)
461 NONSTD_CPP_PLUGIN_OBJ = \
467 # Other lists of files
469 objects := $(C_OBJ) $(ASM_OBJ) $(STD_PLUGIN_OBJ) $(NONSTD_PLUGIN_OBJ)
470 cdependancies := $(objects:%.o=.dep/%.d)
471 cppobjects := $(CPP_OBJ) $(NONSTD_CPP_PLUGIN_OBJ)
472 cppdependancies := $(cppobjects:%.o=.dep/%.dpp)
474 # All symbols must be exported
477 ################################################################################
479 ################################################################################
484 all: vlc @ALIASES@ plugins vlc.app
487 rm -f $(C_OBJ) $(CPP_OBJ) $(ASM_OBJ) $(STD_PLUGIN_OBJ)
488 rm -f plugins/*/*.o plugins/*/*.moc plugins/*/*.bak
489 rm -f src/*/*.o extras/*/*.o
490 rm -f lib/*.so vlc gnome-vlc gvlc kvlc qvlc
494 rm -f **/*.o **/*~ *.log
495 rm -f Makefile include/defs.h include/config.h
496 rm -f config.status config.cache config.log
497 rm -f gmon.out core build-stamp
502 mkdir -p $(DESTDIR)$(bindir)
503 $(INSTALL) vlc $(DESTDIR)$(bindir)
505 for alias in "" @ALIASES@ ; do if test $$alias ; then rm -f $(DESTDIR)$(bindir)/$$alias && ln -s vlc $(DESTDIR)$(bindir)/$$alias ; fi ; done
506 mkdir -p $(DESTDIR)$(libdir)/videolan/vlc
507 $(INSTALL) -m 644 $(PLUGINS:%=lib/%.so) $(DESTDIR)$(libdir)/videolan/vlc
508 mkdir -p $(DESTDIR)$(datadir)/videolan
509 $(INSTALL) -m 644 share/*.psf $(DESTDIR)$(datadir)/videolan
510 $(INSTALL) -m 644 share/*.png $(DESTDIR)$(datadir)/videolan
511 $(INSTALL) -m 644 share/*.xpm $(DESTDIR)$(datadir)/videolan
515 @echo CFLAGS: $(CFLAGS)
516 @echo DCFLAGS: $(DCFLAGS)
517 @echo LCFLAGS: $(LCFLAGS)
518 @echo C_OBJ: $(C_OBJ)
519 @echo CPP_OBJ: $(CPP_OBJ)
520 @echo STD_PLUGIN_OBJ: $(STD_PLUGIN_OBJ)
521 @echo NONSTD_PLUGIN_OBJ: $(NONSTD_PLUGIN_OBJ)
522 @echo NONSTD_CPP_PLUGIN_OBJ: $(NONSTD_CPP_PLUGIN_OBJ)
523 @echo objects: $(objects)
524 @echo cppobjects: $(cppobjects)
526 # ugliest of all, but I have no time to do it -- sam
528 rm -Rf /tmp/vlc-@VLC_VERSION@* /tmp/vlc-@VLC_VERSION@nocss*
529 # copy archive in /tmp
530 find -type d | grep -v CVS | grep -v '\.dep' | while read i ; \
531 do mkdir -p /tmp/vlc-@VLC_VERSION@/$$i ; \
533 find debian -mindepth 1 -maxdepth 1 -type d | \
534 while read i ; do rm -Rf /tmp/vlc-@VLC_VERSION@/$$i ; done
536 find include src plugins -type f -name '*.[chi]*' | while read i ; \
537 do cp $$i /tmp/vlc-@VLC_VERSION@/$$i ; \
540 cp -a extras/* /tmp/vlc-@VLC_VERSION@/extras
541 cp -a doc/* /tmp/vlc-@VLC_VERSION@/doc
542 find /tmp/vlc-@VLC_VERSION@/extras /tmp/vlc-@VLC_VERSION@/doc \
543 -type d -name CVS | while read i ; \
547 cp vlc.spec AUTHORS COPYING ChangeLog INSTALL README TODO \
548 Makefile.in Makefile.dep configure configure.in install-sh \
549 config.sub config.guess todo.pl \
550 /tmp/vlc-@VLC_VERSION@/
551 for file in control control-css vlc-gtk.menu vlc.copyright vlc.docs \
552 changelog changelog-css rules rules-css vlc.dirs \
554 cp debian/$$file /tmp/vlc-@VLC_VERSION@/debian/ ; done
555 for file in default8x16.psf default8x9.psf vlc_beos.rsrc ; do \
556 cp share/$$file /tmp/vlc-@VLC_VERSION@/share/ ; done
557 for icon in vlc gvlc qvlc gnome-vlc kvlc ; do \
558 cp share/$$icon.xpm share/$$icon.png \
559 /tmp/vlc-@VLC_VERSION@/share/ ; done
561 # build css-enabled archives
562 (cd /tmp ; tar cf vlc-@VLC_VERSION@.tar vlc-@VLC_VERSION@ ; \
563 bzip2 -f -9 < vlc-@VLC_VERSION@.tar \
564 > vlc-@VLC_VERSION@.tar.bz2 ; \
565 gzip -f -9 vlc-@VLC_VERSION@.tar )
566 mv /tmp/vlc-@VLC_VERSION@.tar.gz /tmp/vlc-@VLC_VERSION@.tar.bz2 ..
569 rm -Rf /tmp/vlc-@VLC_VERSION@*
571 plugins: $(PLUGINS:%=lib/%.so)
575 ifneq (,$(findstring darwin,$(SYS)))
577 mkdir -p vlc.app/Contents/Resources
578 mkdir -p vlc.app/Contents/MacOS/lib
579 mkdir -p vlc.app/Contents/MacOS/share
580 $(INSTALL) -m 644 extras/MacOSX_app/Contents/Info.plist vlc.app/Contents/
581 $(INSTALL) -m 644 extras/MacOSX_app/Contents/PkgInfo vlc.app/Contents/
582 $(INSTALL) vlc vlc.app/Contents/MacOS/
583 $(INSTALL) share/vlc.icns vlc.app/Contents/Resources/
584 $(INSTALL) $(PLUGINS:%=lib/%.so) vlc.app/Contents/MacOS/lib
585 $(INSTALL) -m 644 share/*.psf vlc.app/Contents/MacOS/share
591 # GTK/Gnome and Framebuffer aliases - don't add new aliases which could bloat
594 gnome-vlc gvlc kvlc qvlc: vlc
595 rm -f $@ && ln -s vlc $@
599 # Generic rules (see below)
601 $(cdependancies): %.d: FORCE
602 @$(MAKE) -s --no-print-directory -f Makefile.dep $@
604 $(cppdependancies): %.dpp: FORCE
605 @$(MAKE) -s --no-print-directory -f Makefile.dep $@
607 $(C_OBJ): %.o: Makefile.dep
608 $(C_OBJ): %.o: .dep/%.d
610 ifneq (,$(findstring darwin,$(SYS)))
611 #this is uglier of all
612 @if test "src/ac3_decoder/ac3_imdct.c" = "$<"; then $(CC) `echo $(CFLAGS) | sed -e 's/-O3/-O/'` -c -o $@ $<; echo "(CC) `echo $(CFLAGS) | sed -e 's/-O3/-O/'` -c -o $@ $<"; else $(CC) $(CFLAGS) -c -o $@ $<; echo "$(CC) $(CFLAGS) -c -o $@ $<"; fi
614 $(CC) $(CFLAGS) -c -o $@ $<
617 $(CPP_OBJ): %.o: Makefile.dep
618 $(CPP_OBJ): %.o: .dep/%.dpp
619 $(CPP_OBJ): %.o: %.cpp
620 $(CC) $(CFLAGS) -c -o $@ $<
622 $(ASM_OBJ): %.o: Makefile.dep
624 $(CC) $(CFLAGS) -c -o $@ $<
626 $(STD_PLUGIN_OBJ): %.o: Makefile.dep
627 $(STD_PLUGIN_OBJ): %.o: .dep/%.d
628 $(STD_PLUGIN_OBJ): %.o: %.c
629 $(CC) $(CFLAGS) $(PCFLAGS) -c -o $@ $<
631 $(PLUGIN_XVIDEO): %.o: Makefile.dep
632 $(PLUGIN_XVIDEO): %.o: .dep/%.d
633 $(PLUGIN_XVIDEO): %.o: %.c
634 $(CC) $(CFLAGS) $(PCFLAGS) -I/usr/X11R6/include -c -o $@ $<
636 $(PLUGIN_X11): %.o: Makefile.dep
637 $(PLUGIN_X11): %.o: .dep/%.d
638 $(PLUGIN_X11): %.o: %.c
639 $(CC) $(CFLAGS) $(PCFLAGS) -I/usr/X11R6/include -c -o $@ $<
641 $(PLUGIN_GTK): %.o: Makefile.dep
642 $(PLUGIN_GTK): %.o: .dep/%.d
643 $(PLUGIN_GTK): %.o: %.c
644 $(CC) $(CFLAGS) $(PCFLAGS) `gtk-config --cflags gtk` -c -o $@ $<
646 $(PLUGIN_GNOME): %.o: Makefile.dep
647 $(PLUGIN_GNOME): %.o: .dep/%.d
648 $(PLUGIN_GNOME): %.o: %.c
649 $(CC) $(CFLAGS) $(PCFLAGS) `gnome-config --cflags gtk gnomeui` -c -o $@ $<
651 $(PLUGIN_GLIDE): %.o: Makefile.dep
652 $(PLUGIN_GLIDE): %.o: .dep/%.d
653 $(PLUGIN_GLIDE): %.o: %.c
654 $(CC) $(CFLAGS) $(PCFLAGS) -I/usr/include/glide -c -o $@ $<
656 $(PLUGIN_QT): %.o: Makefile.dep
657 $(PLUGIN_QT): %.o: .dep/%.dpp
658 $(PLUGIN_QT): %.o: %.moc
659 $(CC) $(CFLAGS) $(PCFLAGS) -I/usr/include/qt -I${QTDIR}/include -c -o $@ $(<:%.moc=%.cpp)
660 $(PLUGIN_QT:%.o=%.moc): %.moc: %.cpp
663 $(PLUGIN_KDE): %.o: Makefile.dep
664 $(PLUGIN_KDE): %.o: .dep/%.dpp
665 $(PLUGIN_KDE): %.o: %.cpp
666 $(CC) $(CFLAGS) $(PCFLAGS) -I/usr/include/kde -I/usr/include/qt -fno-rtti -c -o $@ $<
668 $(PLUGIN_BEOS): %.o: Makefile.dep
669 $(PLUGIN_BEOS): %.o: .dep/%.dpp
670 $(PLUGIN_BEOS): %.o: %.cpp
671 $(CC) $(CFLAGS) $(PCFLAGS) -c -o $@ $<
673 $(PLUGIN_IDCTALTIVEC): %.o: Makefile.dep
674 $(PLUGIN_IDCTALTIVEC): %.o: .dep/%.d
675 $(PLUGIN_IDCTALTIVEC): %.o: %.c
676 $(CC) $(CFLAGS) $(PCFLAGS) -faltivec -c -o $@ $<
678 $(PLUGIN_MACOSX): %.o: Makefile.dep
679 $(PLUGIN_MACOSX): %.o: .dep/%.d
680 $(PLUGIN_MACOSX): %.o: %.c
681 $(CC) $(CFLAGS) $(PCFLAGS) -fpascal-strings -c -o $@ $<
684 # Main application target
687 vlc: $(C_OBJ) $(CPP_OBJ) $(ASM_OBJ)
688 $(CC) $(CFLAGS) -o $@ $(C_OBJ) $(CPP_OBJ) $(ASM_OBJ) $(LCFLAGS)
690 rm -f ./plugins/_APP_
691 ln -s ../vlc ./plugins/_APP_
692 xres -o $@ ./share/vlc_beos.rsrc
700 lib/alsa.so: $(PLUGIN_ALSA)
701 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) -lasound
703 lib/beos.so: $(PLUGIN_BEOS)
704 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) -lbe -lgame -lroot -ltracker
706 lib/esd.so: $(PLUGIN_ESD)
707 ifneq (,$(findstring bsd,$(SYS)))
708 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) -lesd
710 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) -laudiofile -lesd
713 lib/darwin.so: $(PLUGIN_DARWIN)
714 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) -framework CoreAudio
716 lib/dsp.so: $(PLUGIN_DSP)
717 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS)
719 lib/dummy.so: $(PLUGIN_DUMMY)
720 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS)
722 lib/dvd.so: $(PLUGIN_DVD)
723 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS)
725 lib/fb.so: $(PLUGIN_FB)
726 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS)
728 lib/ggi.so: $(PLUGIN_GGI)
729 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) @LIB_GGI@
731 lib/glide.so: $(PLUGIN_GLIDE)
732 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) @LIB_GLIDE@
734 lib/gnome.so: $(PLUGIN_GNOME)
735 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) `gnome-config --libs gnomeui | sed 's,-rdynamic,,'`
737 lib/gtk.so: $(PLUGIN_GTK)
738 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) `gtk-config --libs gtk | sed 's,-rdynamic,,'`
740 lib/idct.so: $(PLUGIN_IDCT) $(PLUGIN_IDCTCOMMON)
741 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS)
743 lib/idctclassic.so: $(PLUGIN_IDCTCLASSIC) $(PLUGIN_IDCTCOMMON)
744 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS)
746 lib/idctmmx.so: $(PLUGIN_IDCTMMX) $(PLUGIN_IDCTCOMMON)
747 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS)
749 lib/idctmmxext.so: $(PLUGIN_IDCTMMXEXT) $(PLUGIN_IDCTCOMMON)
750 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS)
752 lib/idctaltivec.so: $(PLUGIN_IDCTALTIVEC) $(PLUGIN_IDCTCOMMON)
753 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) -framework vecLib
755 lib/kde.so: $(PLUGIN_KDE)
756 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) -lkdeui -lkdecore -lqt -ldl
758 lib/macosx.so: $(PLUGIN_MACOSX)
759 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) -framework CoreAudio -framework Carbon -framework AGL
761 lib/mga.so: $(PLUGIN_MGA)
762 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) -L/usr/X11R6/lib -lX11 -lXext
764 lib/motion.so: $(PLUGIN_MOTION) $(PLUGIN_MOTIONCOMMON)
765 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS)
767 lib/motionmmx.so: $(PLUGIN_MOTIONMMX) $(PLUGIN_MOTIONCOMMON)
768 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS)
770 lib/motionmmxext.so: $(PLUGIN_MOTIONMMXEXT) $(PLUGIN_MOTIONCOMMON)
771 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS)
773 lib/ncurses.so: $(PLUGIN_NCURSES)
774 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) -lncurses
776 lib/null.so: $(PLUGIN_NULL)
777 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS)
779 lib/ps.so: $(PLUGIN_PS)
780 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS)
782 lib/qt.so: $(PLUGIN_QT)
783 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) -lqt -L${QTDIR}/lib
785 lib/sdl.so: $(PLUGIN_SDL)
786 ifneq (,$(findstring darwin,$(SYS)))
787 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) @LIB_SDL@ -framework Carbon -framework AGL
789 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) @LIB_SDL@
792 lib/ts.so: $(PLUGIN_TS)
793 ifneq (,$(findstring darwin,$(SYS)))
794 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) -framework AGL -framework Carbon
796 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS)
799 lib/xvideo.so: $(PLUGIN_XVIDEO)
800 ifeq ($(SYS),nto-qnx)
801 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) -L/usr/X11R6/lib -lX11 -lXext -lXv -lsocket
803 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) -L/usr/X11R6/lib -lX11 -lXext -lXv
806 lib/x11.so: $(PLUGIN_X11)
807 ifeq ($(SYS),nto-qnx)
808 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) -L/usr/X11R6/lib -lX11 -lXext -lsocket
810 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS) -L/usr/X11R6/lib -lX11 -lXext
813 lib/yuv.so: $(PLUGIN_YUV)
814 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS)
816 lib/yuvmmx.so: $(PLUGIN_YUVMMX)
817 $(CC) $(PCFLAGS) -o $@ $^ $(PLCFLAGS)
819 ################################################################################
820 # Note on generic rules and dependancies
821 ################################################################################
823 # Note on dependancies: each .c file is associated with a .d file, which
824 # depends of it. The .o file associated with a .c file depends of the .d, of the
825 # .c itself, and of Makefile. The .d files are stored in a separate .dep/
827 # The dep directory should be ignored by CVS.
829 # Note on inclusions: depending of the target, the dependancies files must
830 # or must not be included. The problem is that if we ask make to include a file,
831 # and this file does not exist, it is made before it can be included. In a
832 # general way, a .d file should be included if and only if the corresponding .o
833 # needs to be re-made.
835 # Two makefiles are used: the main one (this one) has regular generic rules,
836 # except for .o files, for which it calls the object Makefile. Dependancies
837 # are not included in this file.
838 # The object Makefile known how to make a .o from a .c, and includes
839 # dependancies for the target, but only those required.