~ubuntu-branches/ubuntu/maverick/openipmi/maverick

« back to all changes in this revision

Viewing changes to swig/perl/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-05-26 14:58:52 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100526145852-q08oehnlfle6j5da
Tags: 2.0.18-0ubuntu1
New upstream version. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
162
162
TCL_PKGCONF = @TCL_PKGCONF@
163
163
TCL_SO = @TCL_SO@
164
164
TCL_TARGET = @TCL_TARGET@
 
165
TERM_LIBS = @TERM_LIBS@
165
166
VERSION = @VERSION@
166
167
ac_ct_CC = @ac_ct_CC@
167
168
ac_ct_CXX = @ac_ct_CXX@
230
231
            -I $(top_srcdir)/swig/perl
231
232
 
232
233
COMPILE = $(CC) $(DEFS) $(AM_CFLAGS) $(CFLAGS)
233
 
OpenIPMI_SRC = OpenIPMI_wrap.c OpenIPMI_perl.c
234
 
OpenIPMI_OBJ = OpenIPMI_wrap.o OpenIPMI_perl.o
 
234
nodist_OpenIPMI_SRC = OpenIPMI_wrap.c
 
235
OpenIPMI_SRC = OpenIPMI_perl.c
 
236
OpenIPMI_OBJ = OpenIPMI_wrap.lo OpenIPMI_perl.lo
235
237
CLEANFILES = $(OpenIPMI_OBJ) OpenIPMI.so OpenIPMI_wrap.c OpenIPMI.pm
236
238
TESTS_ENVIRONMENT = LD_PRELOAD="$(OPENIPMI_SWIG_SO):$(top_builddir)/swig/perl/OpenIPMI.so" LD_LIBRARY_PATH=$(top_builddir)/glib/.libs PERLLIB="$(top_builddir)/swig/perl:$(srcdir)" top_builddir="$(top_builddir)" srcdir="$(srcdir)"
237
239
TESTS = test_fru test_chan test_lanparm test_pet test_pef
478
480
all: OpenIPMI.so
479
481
 
480
482
OpenIPMI.so: $(OpenIPMI_OBJ)
481
 
        $(LIBTOOL) --mode=link $(CC) -shared -o $@ $^ $(OPENIPMI_SWIG_LIBS)
482
 
        rm OpenIPMI.so
 
483
        $(LIBTOOL) --mode=link $(CC) -shared -module -avoid-version -o $(@:.so=.la) $^ $(OPENIPMI_SWIG_LIBS) $(PERL_POSIX_LIB) -rpath $(PERL_INSTALL_DIR)/auto/OpenIPMI
 
484
        rm -f OpenIPMI.so
483
485
        mv .libs/OpenIPMI.so .
484
486
        rm -rf .libs
485
487
 
486
 
OpenIPMI_wrap.o: OpenIPMI_wrap.c OpenIPMI.h
487
 
        $(COMPILE) -c $<
 
488
OpenIPMI_wrap.lo: OpenIPMI_wrap.c OpenIPMI.h
 
489
        $(LIBTOOL) --mode=compile $(COMPILE) -c $<
488
490
 
489
 
OpenIPMI_perl.o: OpenIPMI_perl.c OpenIPMI.h
490
 
        $(COMPILE) -c $<
 
491
OpenIPMI_perl.lo: OpenIPMI_perl.c OpenIPMI.h
 
492
        $(LIBTOOL) --mode=compile $(COMPILE) -c $<
491
493
 
492
494
OpenIPMI_wrap.c OpenIPMI.pm: $(top_srcdir)/swig/OpenIPMI.i OpenIPMI_lang.i
493
 
        $(SWIG) $(DEFS) -perl5 -o $@ -I$(top_srcdir)/swig/perl $<
 
495
        $(SWIG) $(DEFS) -perl5 -o OpenIPMI_wrap.c -I$(top_srcdir)/swig/perl $<
494
496
 
495
497
install-exec-local: OpenIPMI.so OpenIPMI.pm
496
498
        $(INSTALL) -d "$(DESTDIR)$(PERL_INSTALL_DIR)/auto/OpenIPMI"
497
499
        $(INSTALL_PROGRAM) OpenIPMI.so "$(DESTDIR)$(PERL_INSTALL_DIR)/auto/OpenIPMI"
498
 
        $(INSTALL_PROGRAM) OpenIPMI.pm "$(DESTDIR)$(PERL_INSTALL_DIR)"
 
500
        $(INSTALL_DATA) OpenIPMI.pm "$(DESTDIR)$(PERL_INSTALL_DIR)"
499
501
 
500
502
uninstall-local:
501
503
        $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(PERL_INSTALL_DIR)/auto/OpenIPMI/OpenIPMI.so"