mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-16 16:02:54 +02:00
417b6eb0f0
This should avoid the issues of packaging libgcc_s_sjlj-1.dll, libwinpthread-1.dll and the like.
44 lines
1.1 KiB
Plaintext
44 lines
1.1 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 = $(vlclibdir)/plugins
|
|
BUILT_SOURCES =
|
|
CLEANFILES = $(BUILT_SOURCES)
|
|
|
|
LTLIBVLCCORE = $(top_builddir)/src/libvlccore.la
|
|
|
|
# Module name from object or executable file name.
|
|
MODULE_NAME = $$(p="$@"; p="$${p\#\#*/}"; p="$${p\#lib}"; p="$${p%_plugin*}"; p="$${p%.lo}"; echo "$$p")
|
|
|
|
AM_CPPFLAGS = -DMODULE_STRING=\"$(MODULE_NAME)\"
|
|
if HAVE_DYNAMIC_PLUGINS
|
|
AM_CPPFLAGS += -D__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 -Wc,-static-libgcc
|
|
endif
|
|
|
|
SUFFIXES = .asm
|
|
|
|
.asm.lo:
|
|
$(LIBTOOL) --mode=compile --tag=ASM $(YASM) $(YASMFLAGS) $< -o $@
|