Build a separate non-installable VLC for easier debugging

This commit is contained in:
Rémi Denis-Courmont 2008-08-31 13:06:04 +03:00
parent 138c463bc9
commit fae0cf510d
2 changed files with 9 additions and 4 deletions

View File

@ -392,7 +392,7 @@ endif
vlc$(EXEEXT): Makefile.am
rm -f -- vlc vlc.tmp
echo '#! /bin/sh' > vlc.tmp
echo 'exec "$$(dirname "$$0")/bin/vlc$(EXEEXT)" "--plugin-path=$$(dirname "$$0")/modules" "$$@"' >> vlc.tmp
echo 'exec "$$(dirname "$$0")/bin/vlc-static$(EXEEXT)" "--plugin-path=$$(dirname "$$0")/modules" "$$@"' >> vlc.tmp
chmod +x vlc.tmp
mv -f -- vlc.tmp vlc

View File

@ -1,8 +1,12 @@
# Building vlc
#
bin_PROGRAMS = vlc
noinst_PROGRAMS = vlc-static
EXTRA_PROGRAMS = vlc-wrapper
AM_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
if !HAVE_WIN32
bin_PROGRAMS += vlc-wrapper
endif
@ -17,14 +21,15 @@ vlc_wrapper_SOURCES = rootwrap.c
vlc_DEPENDENCIES = ../src/libvlc.la
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)
vlc_static_SOURCES = $(vlc_SOURCES)
vlc_static_DEPENDENCIES = $(vlc_DEPENDENCIES)
vlc_static_LDADD = $(vlc_LDADD)
vlc_static_LDFLAGS = $(vlc_LDFLAGS) -no-install -static
if HAVE_WIN32
vlc_LDADD += vlc_win32_rc.$(OBJEXT)