Makefile.am 937 Bytes
Newer Older
1 2 3
# Building vlc
#
bin_PROGRAMS = vlc
4
noinst_PROGRAMS = vlc-static
5 6
EXTRA_PROGRAMS = vlc-wrapper

7 8 9
AM_CFLAGS = `$(VLC_CONFIG) --cflags vlc`


10 11 12 13 14 15 16 17 18 19 20 21
if !HAVE_WIN32
bin_PROGRAMS += vlc-wrapper
endif

EXTRA_vlc_SOURCES = vlc.c winvlc.c
if !HAVE_WIN32
vlc_SOURCES = vlc.c
else
vlc_SOURCES = winvlc.c
endif
vlc_wrapper_SOURCES = rootwrap.c

22
vlc_DEPENDENCIES = ../src/libvlc.la
23 24 25 26 27 28

vlc_LDFLAGS = `$(VLC_CONFIG) --ldflags vlc`
# vlc needs libvlccore for locale conversion
vlc_LDADD = ../src/libvlc.la ../src/libvlccore.la $(LTLIBINTL) \
	`$(VLC_CONFIG) -libs vlc`

29 30 31 32
vlc_static_SOURCES = $(vlc_SOURCES)
vlc_static_DEPENDENCIES = $(vlc_DEPENDENCIES)
vlc_static_LDADD = $(vlc_LDADD)
vlc_static_LDFLAGS = $(vlc_LDFLAGS) -no-install -static
33 34

if HAVE_WIN32
35 36
vlc_LDADD += vlc_win32_rc.$(OBJEXT)
vlc_DEPENDENCIES += vlc_win32_rc.$(OBJEXT)
37 38 39 40 41
endif

vlc_win32_rc.$(OBJEXT): $(top_builddir)/share/vlc_win32_rc.rc
	$(WINDRES) --include-dir $(top_srcdir)/share -i $< -o $@