2 # Makefile.am for perl-bindings/src
5 AM_CXXFLAGS = -DY2LOG=\"Perl\" -DMODULEDIR=\"$(moduledir)\"
7 MY_PERL_VENDORARCH = $(subst /usr,$(prefix),$(PERL_VENDORARCH))
8 perlpmdir = $(MY_PERL_VENDORARCH)/YaST
9 perlsodir = $(MY_PERL_VENDORARCH)/auto/YaST/YCP
13 # plugin, libtool forces 'lib' prefix
14 plugin_LTLIBRARIES = libpy2lang_perl.la
15 noinst_LTLIBRARIES = liby2lang_perl.la
16 perlso_LTLIBRARIES = libYCP.la
18 # binary part of the Perl module
20 $(liby2lang_perl_la_SOURCES) \
22 PerlLogger.cc PerlLogger.h
25 # are there enough yast libraries?
26 # check with y2base, integrate them like y2pm does
27 # Originally, of the py2* there was only py2plugin here
28 # with the assumption that it would bring in the other plugins.
29 # But it does not work.
30 libYCP_la_LDFLAGS = $(PERL_LDFLAGS) \
31 -L$(libdir) -L$(plugindir) \
32 -Xlinker --whole-archive \
37 -Xlinker --no-whole-archive \
38 ${ZYPP_LIBS} -ly2util \
42 libpy2lang_perl_la_LDFLAGS = -version-info 2:0
44 liby2lang_perl_la_LDFLAGS = -version-info 2:0
47 # the yast libraries are apparently necessary when we're loaded by perl.
48 libpy2lang_perl_la_LIBADD = $(PERL_LDFLAGS) \
49 -L$(libdir) -L$(plugindir) \
50 -lycp -ly2 ${ZYPP_LIBS} -ly2util
51 #libpy2lang_perl_la_LIBADD = $(PERL_LDFLAGS)
53 liby2lang_perl_la_LIBADD = $(PERL_LDFLAGS)
56 liby2lang_perl_la_SOURCES = \
60 # Auto-generated stub for dynamic loading of Perl modules.
61 # And also register the interface to the YCP module
62 ## which is linked in already and won't be in the standard Perl location.
64 # This results in a linker warning:
65 # *** Warning: Linking the shared library libpy2lang_perl.la against the
66 # *** static library /usr/lib/perl5/.../DynaLoader.a is not portable!
68 # According to mls@suse.de this warning can safely be disregarded:
69 # The SuSE DynaLoader is compiled with -fPIC for just this situation.
71 # -- sh@suse.de 2003-07-24
73 perl -MExtUtils::Embed -e xsinit -- -o perlxsi.c -std
77 # the plugin adds the liby2 component interface
79 libpy2lang_perl_la_SOURCES = \
80 $(liby2lang_perl_la_SOURCES) \
81 Y2CCPerl.cc Y2CCPerl.h \
82 YPerlNamespace.cc YPerlNamespace.h \
83 Y2PerlComponent.cc Y2PerlComponent.h
88 INCLUDES = -I$(srcdir)/include -I$(includedir) ${ZYPP_CFLAGS}
90 # generated from YaPI.pm.in by configure
91 nodist_module_DATA = YaPI.pm
93 EXTRA_DIST = $(perlpm_DATA) $(module_DATA)