Skip to content

Commit

Permalink
Update libvlc.la path and factorize test Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémi Denis-Courmont committed Aug 30, 2011
1 parent e33be97 commit ee1e329
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 35 deletions.
4 changes: 2 additions & 2 deletions bin/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ vlc_wrapper_SOURCES = rootwrap.c
vlc_wrapper_LDADD = $(SOCKET_LIBS)

vlc_LDFLAGS = $(LDFLAGS_vlc)
vlc_LDADD = ../src/libvlc.la ../src/libvlccore.la $(LIBS_vlc)
vlc_LDADD = ../lib/libvlc.la ../src/libvlccore.la $(LIBS_vlc)

vlc_static_SOURCES = $(vlc_SOURCES)
vlc_static_CFLAGS = $(AM_CFLAGS) \
Expand Down Expand Up @@ -63,7 +63,7 @@ vlc_cache_gen_SOURCES = cachegen.c
vlc_cache_gen_LDADD = \
$(GNUGETOPT_LIBS) \
../compat/libcompat.la \
../src/libvlc.la ../src/libvlccore.la
../lib/libvlc.la ../src/libvlccore.la
if HAVE_WIN32
vlc_cache_gen_LDADD += vlc_win32_rc.$(OBJEXT)
vlc_cache_gen_DEPENDENCIES = vlc_win32_rc.$(OBJEXT)
Expand Down
45 changes: 12 additions & 33 deletions test/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -51,48 +51,27 @@ samples/meta.sample:
mkdir -p `dirname $@`
curl $(SAMPLES_SERVER)/metadata/id3tag/Wesh-Bonneville.mp3 > $@

CFLAGS_tests = $(LIBS_libvlc) -DSRCDIR=\"$(srcdir)\"
LDFLAGS_tests = -no-install -static
AM_CFLAGS = -DSRCDIR=\"$(srcdir)\"
AM_LDFLAGS = -no-install -static
LIBVLCCORE = ../src/libvlccore.la
LIBVLC = ../lib/libvlc.la

test_libvlc_core_SOURCES = libvlc/core.c
test_libvlc_core_LDADD = $(top_builddir)/src/libvlc.la
test_libvlc_core_CFLAGS = $(CFLAGS_tests)
test_libvlc_core_LDFLAGS = $(LDFLAGS_tests)

test_libvlc_core_LDADD = $(LIBVLC)
test_libvlc_media_SOURCES = libvlc/media.c
test_libvlc_media_LDADD = $(top_builddir)/src/libvlc.la
test_libvlc_media_CFLAGS = $(CFLAGS_tests)
test_libvlc_media_LDFLAGS = $(LDFLAGS_tests)

test_libvlc_media_LDADD = $(LIBVLC)
test_libvlc_media_list_player_SOURCES = libvlc/media_list_player.c
test_libvlc_media_list_player_LDADD = $(top_builddir)/src/libvlc.la
test_libvlc_media_list_player_CFLAGS = $(CFLAGS_tests)
test_libvlc_media_list_player_LDFLAGS = $(LDFLAGS_tests)

test_libvlc_media_list_player_LDADD = $(LIBVLC)
test_libvlc_media_list_SOURCES = libvlc/media_list.c
test_libvlc_media_list_LDADD = $(top_builddir)/src/libvlc.la
test_libvlc_media_list_CFLAGS = $(CFLAGS_tests)
test_libvlc_media_list_LDFLAGS = $(LDFLAGS_tests)

test_libvlc_media_list_LDADD = $(LIBVLC)
test_libvlc_media_player_SOURCES = libvlc/media_player.c
test_libvlc_media_player_LDADD = $(top_builddir)/src/libvlc.la
test_libvlc_media_player_CFLAGS = $(CFLAGS_tests)
test_libvlc_media_player_LDFLAGS = $(LDFLAGS_tests)

test_libvlc_media_player_LDADD = $(LIBVLC)
test_libvlc_meta_SOURCES = libvlc/meta.c
test_libvlc_meta_LDADD = $(top_builddir)/src/libvlc.la
test_libvlc_meta_CFLAGS = $(CFLAGS_tests)
test_libvlc_meta_LDFLAGS = $(LDFLAGS_tests)

test_libvlc_meta_LDADD = $(LIBVLC)
test_src_misc_variables_SOURCES = src/misc/variables.c
test_src_misc_variables_LDADD = $(top_builddir)/src/libvlc.la
test_src_misc_variables_CFLAGS = $(CFLAGS_tests)
test_src_misc_variables_LDFLAGS = $(LDFLAGS_tests)

test_src_misc_variables_LDADD = $(LIBVLCCORE) $(LIBVLC)
test_src_config_chain_SOURCES = src/config/chain.c
test_src_config_chain_LDADD = $(top_builddir)/src/libvlc.la
test_src_config_chain_CFLAGS = $(CFLAGS_tests)
test_src_config_chain_LDFLAGS = $(LDFLAGS_tests)
test_src_config_chain_LDADD = $(LIBVLCCORE)

checkall:
$(MAKE) check_PROGRAMS="$(check_PROGRAMS) $(EXTRA_PROGRAMS)" check
Expand Down

0 comments on commit ee1e329

Please sign in to comment.