Makefile.am 2.17 KB
Newer Older
1
AUTOMAKE_OPTIONS = subdir-objects
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
2 3 4 5 6 7 8 9 10 11 12
pkgconfigdir = $(libdir)/pkgconfig
AM_CFLAGS = $(CFLAGS_libvlc)

SUFFIXES = .pc.in .pc

BUILT_SOURCES = $(nodist_pkginclude_HEADERS)
CLEANFILES = $(BUILT_SOURCES) $(pkgconfig_DATA)

pkginclude_HEADERS = \
	../include/vlc/deprecated.h \
	../include/vlc/libvlc.h \
Thomas Guillem's avatar
Thomas Guillem committed
13
	../include/vlc/libvlc_dialog.h \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
14 15 16 17 18 19 20 21
	../include/vlc/libvlc_events.h \
	../include/vlc/libvlc_media.h \
	../include/vlc/libvlc_media_discoverer.h \
	../include/vlc/libvlc_media_library.h \
	../include/vlc/libvlc_media_list.h \
	../include/vlc/libvlc_media_list_player.h \
	../include/vlc/libvlc_media_player.h \
	../include/vlc/libvlc_vlm.h \
22
	../include/vlc/libvlc_renderer_discoverer.h \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
	../include/vlc/vlc.h

nodist_pkginclude_HEADERS = ../include/vlc/libvlc_version.h

../include/vlc/libvlc_version.h: ../include/vlc/libvlc_version.h.in $(top_builddir)/config.status
	$(AM_V_GEN)cd "$(top_builddir)" && \
	$(SHELL) ./config.status --file="src/$@"

lib_LTLIBRARIES = libvlc.la

libvlc_la_SOURCES = \
	libvlc_internal.h \
	media_internal.h \
	media_list_internal.h \
	media_player_internal.h \
38
	renderer_discoverer_internal.h \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
39
	core.c \
Thomas Guillem's avatar
Thomas Guillem committed
40
	dialog.c \
41
	renderer_discoverer.c \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
42 43 44 45 46 47 48 49 50 51 52 53 54
	error.c \
	log.c \
	playlist.c \
	vlm.c \
	video.c \
	audio.c \
	event.c \
	media.c \
	media_player.c \
	media_list.c \
	media_list_path.h \
	media_list_player.c \
	media_library.c \
55
	media_discoverer.c
56
EXTRA_DIST = libvlc.pc.in libvlc.sym ../include/vlc/libvlc_version.h.in
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
57

58
libvlc_la_LIBADD = ../src/libvlccore.la ../compat/libcompat.la $(LIBM)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
59 60
libvlc_la_LDFLAGS = \
	$(LDFLAGS_libvlc) \
61
	-no-undefined \
62
	-version-info 12:0:0 \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
63 64 65 66
	-export-symbols $(srcdir)/libvlc.sym
libvlc_la_DEPENDENCIES = libvlc.sym
if HAVE_WIN32
libvlc_la_DEPENDENCIES += ../src/libvlc_win32_rc.$(OBJEXT)
67
libvlc_la_LDFLAGS += -Wl,../src/libvlc_win32_rc.$(OBJEXT) -avoid-version -Wc,-static
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
68
endif
69 70 71
if HAVE_OS2
libvlc_la_LDFLAGS += -avoid-version
endif
72 73 74
if HAVE_DARWIN
libvlc_la_LDFLAGS += -Xlinker -install_name -Xlinker @rpath/libvlc.dylib
endif
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
75 76 77 78 79 80 81 82

pkgconfig_DATA = libvlc.pc

.pc.in.pc: $(top_builddir)/config.status
	$(AM_V_GEN)cd "$(top_builddir)" && \
	$(SHELL) ./config.status --file="lib/$@"

check-local:
83
	$(SHELL) $(top_srcdir)/src/check_headers $(pkginclude_HEADERS)