lib/media_list: fix sign warnings
[vlc.git] / lib / Makefile.am
1 AUTOMAKE_OPTIONS = subdir-objects
2 pkgconfigdir = $(libdir)/pkgconfig
3 AM_CPPFLAGS = -DMODULE_STRING=\"libvlc\"
4 AM_CFLAGS = $(CFLAGS_libvlc)
5
6 SUFFIXES = .pc.in .pc
7
8 BUILT_SOURCES = $(nodist_pkginclude_HEADERS)
9 CLEANFILES = $(BUILT_SOURCES) $(pkgconfig_DATA)
10
11 pkginclude_HEADERS = \
12         ../include/vlc/deprecated.h \
13         ../include/vlc/libvlc.h \
14         ../include/vlc/libvlc_dialog.h \
15         ../include/vlc/libvlc_events.h \
16         ../include/vlc/libvlc_media.h \
17         ../include/vlc/libvlc_media_discoverer.h \
18         ../include/vlc/libvlc_media_library.h \
19         ../include/vlc/libvlc_media_list.h \
20         ../include/vlc/libvlc_media_list_player.h \
21         ../include/vlc/libvlc_media_player.h \
22         ../include/vlc/libvlc_vlm.h \
23         ../include/vlc/libvlc_renderer_discoverer.h \
24         ../include/vlc/vlc.h
25
26 nodist_pkginclude_HEADERS = ../include/vlc/libvlc_version.h
27
28 ../include/vlc/libvlc_version.h: ../include/vlc/libvlc_version.h.in $(top_builddir)/config.status
29         $(AM_V_GEN)cd "$(top_builddir)" && \
30         $(SHELL) ./config.status --file="src/$@"
31
32 lib_LTLIBRARIES = libvlc.la
33
34 libvlc_la_SOURCES = \
35         libvlc_internal.h \
36         media_internal.h \
37         media_list_internal.h \
38         media_player_internal.h \
39         renderer_discoverer_internal.h \
40         core.c \
41         dialog.c \
42         renderer_discoverer.c \
43         error.c \
44         log.c \
45         playlist.c \
46         vlm.c \
47         video.c \
48         audio.c \
49         event.c \
50         media.c \
51         media_player.c \
52         media_list.c \
53         media_list_path.h \
54         media_list_player.c \
55         media_library.c \
56         media_discoverer.c
57 EXTRA_DIST = libvlc.pc.in libvlc.sym ../include/vlc/libvlc_version.h.in
58
59 libvlc_la_LIBADD = \
60         ../src/libvlccore.la ../compat/libcompat.la $(LIBPTHREAD) $(LIBM)
61 libvlc_la_LDFLAGS = \
62         $(LDFLAGS_libvlc) \
63         -no-undefined \
64         -version-info 10:0:5 \
65         -export-symbols $(srcdir)/libvlc.sym
66 libvlc_la_DEPENDENCIES = libvlc.sym
67 if HAVE_WIN32
68 libvlc_la_DEPENDENCIES += ../src/libvlc_win32_rc.$(OBJEXT)
69 libvlc_la_LDFLAGS += -Wl,../src/libvlc_win32_rc.$(OBJEXT) -avoid-version -Wc,-static
70 endif
71 if HAVE_OS2
72 libvlc_la_LDFLAGS += -avoid-version
73 endif
74
75 pkgconfig_DATA = libvlc.pc
76
77 .pc.in.pc: $(top_builddir)/config.status
78         $(AM_V_GEN)cd "$(top_builddir)" && \
79         $(SHELL) ./config.status --file="lib/$@"
80
81 check-local:
82         $(SHELL) $(top_srcdir)/src/check_headers $(pkginclude_HEADERS)