| 1 |
pippijn |
1.1 |
# Copyright © 2003-2004 E. Will et al. |
| 2 |
pippijn |
1.2 |
# Rights to this code are documented in doc/pod/license.pod. |
| 3 |
pippijn |
1.1 |
# |
| 4 |
|
|
# This file contains build instructions. |
| 5 |
|
|
# |
| 6 |
pippijn |
1.2 |
# $Id: Makefile.in,v 1.1 2007-07-19 08:24:54 pippijn Exp $ |
| 7 |
pippijn |
1.1 |
# |
| 8 |
|
|
|
| 9 |
|
|
HAVE_PERL = @HAVE_PERL@ |
| 10 |
|
|
|
| 11 |
|
|
MODULE = misc |
| 12 |
|
|
|
| 13 |
|
|
include ../Makefile.defs |
| 14 |
|
|
|
| 15 |
|
|
BASE_SRCS = \ |
| 16 |
|
|
$(SRCDIR)/svsperl.C |
| 17 |
|
|
|
| 18 |
|
|
include ../Makefile.common |
| 19 |
|
|
|
| 20 |
|
|
$(SRCDIR)/svsperl.C: $(SRCDIR)/svsperl.xs $(SRCDIR)/svsperl/typemap |
| 21 |
|
|
|
| 22 |
|
|
$(SRCDIR)/svsperl.so: $(SRCDIR)/svsperl.C |
| 23 |
|
|
@if [ "${HAVE_PERL}" = "yes" ]; then \ |
| 24 |
|
|
echo " LD $@"; \ |
| 25 |
|
|
${CXX} ${PERLFLAGS} ${PICFLAGS} ${CPPFLAGS} ${LDFLAGS} `echo ${CXXFLAGS} | sed -e 's/-pedantic//g;s/-Wall//g'` $< ${PERLLIB} -o $@; \ |
| 26 |
|
|
else \ |
| 27 |
|
|
echo " Not compiling perl module"; \ |
| 28 |
|
|
fi |
| 29 |
|
|
|
| 30 |
|
|
$(SRCDIR)/svsperl.C: $(SRCDIR)/svsperl.xs $(SRCDIR)/svsperl/typemap $(SRCDIR)/perlxsi.c $(SRCDIR)/svsperl/genacc |
| 31 |
|
|
@if [ "${HAVE_PERL}" = "yes" ]; then \ |
| 32 |
|
|
PERL="${PERL}" SRCDIR="${SRCDIR}" \ |
| 33 |
|
|
${PERL} /usr/share/perl/5.8/ExtUtils/xsubpp -C++ -csuffix .C \ |
| 34 |
|
|
-typemap /usr/share/perl/5.8/ExtUtils/typemap -typemap $(SRCDIR)/svsperl/typemap \ |
| 35 |
|
|
-prototypes $< > $@; \ |
| 36 |
|
|
else \ |
| 37 |
|
|
echo -n > $@; \ |
| 38 |
|
|
fi |
| 39 |
|
|
|
| 40 |
|
|
$(SRCDIR)/perlxsi.c: |
| 41 |
|
|
@${PERL} -MExtUtils::Embed -e xsinit -- -std svs |
| 42 |
|
|
|
| 43 |
|
|
extra-clean: |
| 44 |
|
|
@${RM} -f svsperl.C perlxsi.c |
| 45 |
|
|
|
| 46 |
|
|
extra-install: |
| 47 |
|
|
@$(INSTALL) -m 755 -d $(DESTDIR)$(sysconfdir) |
| 48 |
|
|
@$(INSTALL) -m 640 -c $(SRCDIR)/svsperl/svs.pm ${sysconfdir} |
| 49 |
|
|
|
| 50 |
|
|
depend: ${SRCDIR}/svsperl.C |