Makefile.am 840 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
# Building vlc
#
bin_PROGRAMS = vlc
EXTRA_PROGRAMS = vlc-wrapper

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

18
vlc_DEPENDENCIES = ../src/libvlc.la
19 20 21 22 23 24 25 26 27 28 29

vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
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`

#vlc$(EXEEXT): $(vlc_OBJECTS) $(vlc_DEPENDENCIES)
#	$(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS)

if HAVE_WIN32
30 31
vlc_LDADD += vlc_win32_rc.$(OBJEXT)
vlc_DEPENDENCIES += vlc_win32_rc.$(OBJEXT)
32 33 34 35 36
endif

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