decklink access: turn 10 bits off by default
[vlc/gmpfix.git] / bin / Makefile.am
blob4a8e555ce245c1770322b2e4f8b8be7983b087de
1 # Building vlc
3 bin_PROGRAMS = vlc
4 noinst_PROGRAMS = vlc-static
5 noinst_DATA =
6 vlclib_PROGRAMS = vlc-cache-gen
7 EXTRA_PROGRAMS = vlc-wrapper
8 EXTRA_DIST = vlc_win32_rc.rc.in
10 SUFFIXES = .rc.in .rc
12 AM_CPPFLAGS = $(CPPFLAGS_vlc)
13 AM_CFLAGS = $(CFLAGS_vlc)
14 if HAVE_DBUS
15 AM_CPPFLAGS += -DHAVE_DBUS
16 endif
18 if !HAVE_WIN32
19 bin_PROGRAMS += vlc-wrapper
20 vlc_SOURCES = vlc.c override.c
21 endif
23 EXTRA_vlc_SOURCES = vlc.c winvlc.c
24 if HAVE_WIN32
25 vlc_SOURCES = winvlc.c
26 noinst_DATA += vlc_win32_rc.rc
27 endif
29 vlc_wrapper_SOURCES = rootwrap.c
30 vlc_wrapper_LDADD = $(SOCKET_LIBS)
32 vlc_LDFLAGS = $(LDFLAGS_vlc)
33 vlc_LDADD = ../lib/libvlc.la $(LIBPTHREAD)
35 vlc_static_SOURCES = $(vlc_SOURCES)
36 vlc_static_CFLAGS = $(AM_CFLAGS) \
37         -DTOP_BUILDDIR=\"$$(cd "$(top_builddir)"; pwd)\" \
38         -DTOP_SRCDIR=\"$$(cd "$(top_srcdir)"; pwd)\" \
39         $(NULL)
40 vlc_static_DEPENDENCIES = $(vlc_DEPENDENCIES)
41 vlc_static_LDADD = $(vlc_LDADD)
42 vlc_static_LDFLAGS = $(vlc_LDFLAGS)
44 if HAVE_WIN32
45 vlc_LDADD += -lpsapi -lwininet vlc_win32_rc.$(OBJEXT)
46 vlc_DEPENDENCIES = vlc_win32_rc.$(OBJEXT)
47 else
48 vlc_LDADD += $(LIBDL)
49 vlc_static_LDFLAGS += -no-install -static
50 endif
52 vlc_win32_rc.rc: $(top_builddir)/config.status vlc_win32_rc.rc.in
53         cd "$(top_builddir)" && \
54         $(SHELL) ./config.status --file="bin/$@"
56 vlc_win32_rc.$(OBJEXT): vlc_win32_rc.rc
57         $(WINDRES) --include-dir $(top_srcdir)/share/icons --include-dir $(top_srcdir)/extras/package/win32 -i $< -o $@
59 vlc_cache_gen_SOURCES = cachegen.c
60 vlc_cache_gen_LDADD = \
61         $(GNUGETOPT_LIBS) \
62         ../compat/libcompat.la \
63         ../lib/libvlc.la
64 if HAVE_WIN32
65 vlc_cache_gen_LDADD += vlc_win32_rc.$(OBJEXT)
66 vlc_cache_gen_DEPENDENCIES = vlc_win32_rc.$(OBJEXT)
67 endif
70 # Plug-ins cache
72 noinst_DATA += ../modules/plugins.dat
73 MOSTLYCLEANFILES = $(noinst_DATA)
75 .PHONY: ../modules/plugins.dat
77 ../modules/plugins.dat: vlc-cache-gen$(EXEEXT)
78         $(AM_V_at)rm -f ../modules/plugins.dat
79         $(AM_V_GEN)if test "$(build)" = "$(host)"; then \
80                 ./vlc-cache-gen$(EXEEXT) ../modules ; \
81         else \
82                 echo "Cross-compilation: cache generation skipped!" ; \
83         fi