opengl: simplify opengl_init_program() call
[vlc.git] / lib / Makefile.am
blobf3fc2321cc743468e463f6444183257161269ec2
1 AUTOMAKE_OPTIONS = subdir-objects
2 pkgconfigdir = $(libdir)/pkgconfig
3 AM_CFLAGS = $(CFLAGS_libvlc)
5 SUFFIXES = .pc.in .pc
7 BUILT_SOURCES = $(nodist_pkginclude_HEADERS)
8 CLEANFILES = $(BUILT_SOURCES) $(pkgconfig_DATA)
10 pkginclude_HEADERS = \
11         ../include/vlc/deprecated.h \
12         ../include/vlc/libvlc.h \
13         ../include/vlc/libvlc_dialog.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_list.h \
18         ../include/vlc/libvlc_media_list_player.h \
19         ../include/vlc/libvlc_media_player.h \
20         ../include/vlc/libvlc_renderer_discoverer.h \
21         ../include/vlc/libvlc_picture.h \
22         ../include/vlc/vlc.h
24 nodist_pkginclude_HEADERS = ../include/vlc/libvlc_version.h
26 ../include/vlc/libvlc_version.h: ../include/vlc/libvlc_version.h.in $(top_builddir)/config.status
27         $(AM_V_GEN)cd "$(top_builddir)" && \
28         $(SHELL) ./config.status --file="src/$@"
30 lib_LTLIBRARIES = libvlc.la
32 libvlc_la_SOURCES = \
33         libvlc_internal.h \
34         media_internal.h \
35         media_list_internal.h \
36         media_player_internal.h \
37         picture_internal.h \
38         renderer_discoverer_internal.h \
39         core.c \
40         dialog.c \
41         renderer_discoverer.c \
42         error.c \
43         log.c \
44         playlist.c \
45         video.c \
46         audio.c \
47         event.c \
48         media.c \
49         media_player.c \
50         media_list.c \
51         media_list_path.h \
52         media_list_player.c \
53         media_discoverer.c \
54         picture.c \
55         ../src/revision.c
56 EXTRA_DIST = libvlc.pc.in libvlc.sym ../include/vlc/libvlc_version.h.in
58 libvlc_la_LIBADD = ../src/libvlccore.la ../compat/libcompat.la $(LIBM)
59 libvlc_la_LDFLAGS = \
60         $(LDFLAGS_libvlc) \
61         -no-undefined \
62         -version-info 12:0:0 \
63         -export-symbols $(srcdir)/libvlc.sym
64 libvlc_la_DEPENDENCIES = libvlc.sym
65 if HAVE_WIN32
66 libvlc_la_DEPENDENCIES += ../src/libvlc_win32_rc.$(OBJEXT)
67 libvlc_la_LDFLAGS += -Wl,../src/libvlc_win32_rc.$(OBJEXT) -avoid-version -Wc,-static
68 endif
69 if HAVE_OS2
70 libvlc_la_LDFLAGS += -avoid-version
71 endif
72 if HAVE_DARWIN
73 libvlc_la_LDFLAGS += -Xlinker -install_name -Xlinker @rpath/libvlc.dylib
74 endif
76 pkgconfig_DATA = libvlc.pc
78 .pc.in.pc: $(top_builddir)/config.status
79         $(AM_V_GEN)cd "$(top_builddir)" && \
80         $(SHELL) ./config.status --file="lib/$@"
82 check-local:
83         $(SHELL) $(top_srcdir)/src/check_headers $(pkginclude_HEADERS)