]> icculus.org git repositories - duncan/yast2-ruby-bindings.git/blob - src/ruby/Makefile.am
- Lot of fixes and support for the UI!!!
[duncan/yast2-ruby-bindings.git] / src / ruby / Makefile.am
1 #
2 # Makefile.am for perl-bindings/src
3 #
4
5 AM_CXXFLAGS = -DY2LOG=\"Perl\" -DMODULEDIR=\"$(moduledir)\"
6
7 MY_PERL_VENDORARCH = $(subst /usr,$(prefix),$(PERL_VENDORARCH))
8 perlpmdir = $(MY_PERL_VENDORARCH)/YaST
9 perlsodir = $(MY_PERL_VENDORARCH)/auto/YaST/YCP
10
11 perlpm_DATA = YCP.pm
12
13 # plugin, libtool forces 'lib' prefix
14 plugin_LTLIBRARIES = libpy2lang_perl.la
15 noinst_LTLIBRARIES = liby2lang_perl.la
16 perlso_LTLIBRARIES = libYCP.la
17
18 # binary part of the Perl module
19 libYCP_la_SOURCES =                             \
20         $(liby2lang_perl_la_SOURCES)            \
21         YCP.cc                                  \
22         PerlLogger.cc PerlLogger.h
23
24
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        \
33                 -lpy2scr                        \
34                 -lpy2wfm                        \
35                 -lscr -lyui                     \
36                 -lycp -ly2                      \
37                 -Xlinker --no-whole-archive     \
38                 ${ZYPP_LIBS} -ly2util           \
39                 -version-info 2:0
40
41
42 libpy2lang_perl_la_LDFLAGS = -version-info 2:0
43
44 liby2lang_perl_la_LDFLAGS = -version-info 2:0
45
46
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)
52
53 liby2lang_perl_la_LIBADD  = $(PERL_LDFLAGS)
54
55
56 liby2lang_perl_la_SOURCES =                             \
57         YPerl.cc YPerl.h                        \
58         perlxsi.c
59
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.
63 #
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!
67 #
68 # According to mls@suse.de this warning can safely be disregarded:
69 # The SuSE DynaLoader is compiled with -fPIC for just this situation.
70 #
71 # -- sh@suse.de 2003-07-24
72 perlxsi.c:
73         perl -MExtUtils::Embed -e xsinit -- -o perlxsi.c -std
74 # See "man perlembed"
75
76
77 # the plugin adds the liby2 component interface
78
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    
84
85 CLEANFILES = \
86         perlxsi.c
87
88 INCLUDES = -I$(srcdir)/include -I$(includedir) ${ZYPP_CFLAGS}
89
90 # generated from YaPI.pm.in by configure
91 nodist_module_DATA = YaPI.pm
92
93 EXTRA_DIST = $(perlpm_DATA) $(module_DATA)