4 noinst_PROGRAMS = vlc-static
6 vlclib_PROGRAMS = vlc-cache-gen
7 EXTRA_PROGRAMS = vlc-wrapper
8 EXTRA_DIST = vlc_win32_rc.rc.in
12 AM_CPPFLAGS = $(CPPFLAGS_vlc)
13 AM_CFLAGS = $(CFLAGS_vlc)
15 AM_CPPFLAGS += -DHAVE_DBUS
19 bin_PROGRAMS += vlc-wrapper
20 vlc_SOURCES = vlc.c override.c
23 EXTRA_vlc_SOURCES = vlc.c winvlc.c
25 vlc_SOURCES = winvlc.c
26 noinst_DATA += vlc_win32_rc.rc
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)\" \
40 vlc_static_DEPENDENCIES = $(vlc_DEPENDENCIES)
41 vlc_static_LDADD = $(vlc_LDADD)
42 vlc_static_LDFLAGS = $(vlc_LDFLAGS)
45 vlc_LDADD += -lpsapi -lwininet vlc_win32_rc.$(OBJEXT)
46 vlc_DEPENDENCIES = vlc_win32_rc.$(OBJEXT)
49 vlc_static_LDFLAGS += -no-install -static
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 = \
62 ../compat/libcompat.la \
65 vlc_cache_gen_LDADD += vlc_win32_rc.$(OBJEXT)
66 vlc_cache_gen_DEPENDENCIES = vlc_win32_rc.$(OBJEXT)
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 ; \
82 echo "Cross-compilation: cache generation skipped!" ; \