mirror of
https://github.com/videolan/vlc.git
synced 2024-11-23 09:53:43 +08:00
722c0fa260
We should not use names stating with underscore for our internal code. This is almost the same name used in the makefile for more coherence. HAVE_DYNAMIC_PLUGINS already exists in the core. We keep a different name to separate the 2 usages. For now they mean exactly the same thing.
45 lines
1.3 KiB
Plaintext
45 lines
1.3 KiB
Plaintext
# Common code for VLC modules/.../Makefile.am
|
|
#
|
|
# Copyright (C) 2005-2007 the VideoLAN team
|
|
# Copyright (C) 2005-2008 Rémi Denis-Courmont
|
|
#
|
|
# Authors: Sam Hocevar <sam@zoy.org>
|
|
|
|
AUTOMAKE_OPTIONS = subdir-objects
|
|
|
|
NULL =
|
|
pluginsdir = $(pkglibdir)/plugins
|
|
BUILT_SOURCES =
|
|
CLEANFILES = $(BUILT_SOURCES)
|
|
|
|
LTLIBVLCCORE = $(top_builddir)/src/libvlccore.la
|
|
|
|
# Module name from object or executable file name.
|
|
MODULE_STRING = $$(p="$@"; p="$${p\#\#*/}"; p="$${p\#lib}"; p="$${p%_plugin*}"; p=$$(echo "$$p"|sed 's/-/_/g'); p="$${p%.lo}"; echo "$$p")
|
|
MODULE_NAME = $$(p="$@"; p=$$(echo "$$p"|sed 's/lib//g'); p="$${p%_plugin*}"; p=$$(echo "$$p"|sed 's/[-\/]/_/g'); p="$${p%.lo}"; echo "$$p")
|
|
|
|
AM_CPPFLAGS = -DMODULE_STRING=\"$(MODULE_STRING)\"
|
|
if HAVE_DYNAMIC_PLUGINS
|
|
AM_CPPFLAGS += -DVLC_DYNAMIC_PLUGIN
|
|
else
|
|
AM_CPPFLAGS += -DMODULE_NAME=$(MODULE_NAME)
|
|
endif
|
|
AM_CFLAGS =
|
|
AM_CXXFLAGS =
|
|
AM_OBJCFLAGS =
|
|
AM_LDFLAGS = \
|
|
-avoid-version -module \
|
|
-export-symbols-regex ^vlc_entry \
|
|
-shrext $(LIBEXT) \
|
|
-no-undefined \
|
|
$(top_builddir)/compat/libcompat.la $(LTLIBVLCCORE)
|
|
if HAVE_WIN32
|
|
AM_LDFLAGS += $(top_builddir)/modules/module.rc.lo -Wc,-static
|
|
endif
|
|
AM_YFLAGS = -d -Wno-yacc
|
|
|
|
SUFFIXES = .l .y .asm
|
|
|
|
.asm.lo:
|
|
$(LIBTOOL) --mode=compile --tag=ASM $(X86ASM) $(X86ASMFLAGS) $(X86ASMDEFS) -I$(top_srcdir)/extras/include/x86/ $< -o $@
|