# Makefile.in: This file contains build instructions. # # Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team # Rights to this code are as documented in COPYING. # # # Portions of this file were derived from sources bearing the following license: # Copyright © 2003-2004 E. Will et al. # Rights to this code are documented in doc/pod/license.pod. # # $Id: Makefile.in,v 1.6 2007/09/22 14:27:27 pippijn Exp $ # MODULE = misc include ../Makefile.defs BASE_SRCS = \ $(SRCDIR)/svsperl.C include ../Makefile.common $(SRCDIR)/svsperl.C: $(SRCDIR)/svsperl.xs $(SRCDIR)/svsperl/typemap $(SRCDIR)/svsperl.o: $(SRCDIR)/svsperl.C @if [ "${HAVE_PERL}" = "yes" ]; then \ echo " LD $@"; \ ${CXX} -c ${PICFLAGS} ${CXXFLAGS} ${CPPFLAGS} ${PERLFLAGS} $< -o $@; \ else \ echo "Not compiling perl module"; \ fi $(SRCDIR)/svsperl.C: $(SRCDIR)/svsperl.xs $(SRCDIR)/svsperl/typemap $(SRCDIR)/perlxsi.c $(SRCDIR)/svsperl/genacc @if [ "${HAVE_PERL}" = "yes" ]; then \ echo "Generating $@"; \ PERL="${PERL}" SRCDIR="${SRCDIR}" \ ${PERL} ${PERLPRIVLIBEXP}/ExtUtils/xsubpp -C++ -csuffix .C \ -typemap ${PERLPRIVLIBEXP}/ExtUtils/typemap -typemap $(SRCDIR)/svsperl/typemap \ -prototypes $< > $@; \ else \ echo "Not generating $@"; \ echo -n > $@; \ fi $(SRCDIR)/perlxsi.c: @${PERL} -MExtUtils::Embed -e xsinit -- -std svs extra-clean: @${RM} -f svsperl.C perlxsi.c install: @$(INSTALL) -m 755 -d $(DESTDIR)$(sysconfdir) @$(INSTALL) -m 640 -c $(SRCDIR)/svsperl/svs.pm ${sysconfdir} depend: ${SRCDIR}/svsperl.C