lib: merge event_internal.h into event.c
[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_events.h \
15         ../include/vlc/libvlc_media.h \
16         ../include/vlc/libvlc_media_discoverer.h \
17         ../include/vlc/libvlc_media_library.h \
18         ../include/vlc/libvlc_media_list.h \
19         ../include/vlc/libvlc_media_list_player.h \
20         ../include/vlc/libvlc_media_player.h \
21         ../include/vlc/libvlc_structures.h \
22         ../include/vlc/libvlc_vlm.h \
23         ../include/vlc/vlc.h
24
25 nodist_pkginclude_HEADERS = ../include/vlc/libvlc_version.h
26
27 ../include/vlc/libvlc_version.h: ../include/vlc/libvlc_version.h.in $(top_builddir)/config.status
28         $(AM_V_GEN)cd "$(top_builddir)" && \
29         $(SHELL) ./config.status --file="src/$@"
30
31 lib_LTLIBRARIES = libvlc.la
32
33 libvlc_la_SOURCES = \
34         libvlc_internal.h \
35         media_internal.h \
36         media_list_internal.h \
37         media_player_internal.h \
38         core.c \
39         error.c \
40         log.c \
41         playlist.c \
42         vlm.c \
43         video.c \
44         audio.c \
45         event.c \
46         media.c \
47         media_player.c \
48         media_list.c \
49         media_list_path.h \
50         media_list_player.c \
51         media_library.c \
52         media_discoverer.c
53 EXTRA_DIST = libvlc.pc.in libvlc.sym ../include/vlc/libvlc_version.h.in
54
55 libvlc_la_LIBADD = \
56         ../src/libvlccore.la ../compat/libcompat.la $(LIBPTHREAD) $(LIBM)
57 libvlc_la_LDFLAGS = \
58         $(LDFLAGS_libvlc) \
59         -no-undefined \
60         -version-info 10:0:5 \
61         -export-symbols $(srcdir)/libvlc.sym
62 libvlc_la_DEPENDENCIES = libvlc.sym
63 if HAVE_WIN32
64 libvlc_la_DEPENDENCIES += ../src/libvlc_win32_rc.$(OBJEXT)
65 libvlc_la_LDFLAGS += -Wl,../src/libvlc_win32_rc.$(OBJEXT) -avoid-version \
66                                          -Wc,--static -Wc,-static-libgcc
67 endif
68 if HAVE_OS2
69 libvlc_la_LDFLAGS += -avoid-version
70 endif
71
72 pkgconfig_DATA = libvlc.pc
73
74 .pc.in.pc: $(top_builddir)/config.status
75         $(AM_V_GEN)cd "$(top_builddir)" && \
76         $(SHELL) ./config.status --file="lib/$@"
77
78 check-local:
79         $(SHELL) $(top_srcdir)/src/check_headers $(pkginclude_HEADERS)