ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/modules/misc/Makefile.in
Revision: 1.6
Committed: Sat Sep 22 14:27:27 2007 UTC (16 years, 8 months ago) by pippijn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +7 -3 lines
Log Message:
split up ermyth into ermyth-modules, libermyth (currently just ermyth-util) and ermyth-core

File Contents

# Content
1 # Makefile.in: This file contains build instructions.
2 #
3 # Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team
4 # Rights to this code are as documented in COPYING.
5 #
6 #
7 # Portions of this file were derived from sources bearing the following license:
8 # Copyright © 2003-2004 E. Will et al.
9 # Rights to this code are documented in doc/pod/license.pod.
10 #
11 # $Id: Makefile.in,v 1.3 2007-08-28 17:08:07 pippijn Exp $
12 #
13
14 MODULE = misc
15
16 include ../Makefile.defs
17
18 BASE_SRCS = \
19 $(SRCDIR)/svsperl.C
20
21 include ../Makefile.common
22
23 $(SRCDIR)/svsperl.C: $(SRCDIR)/svsperl.xs $(SRCDIR)/svsperl/typemap
24
25 $(SRCDIR)/svsperl.o: $(SRCDIR)/svsperl.C
26 @if [ "${HAVE_PERL}" = "yes" ]; then \
27 echo " LD $@"; \
28 ${CXX} -c ${PICFLAGS} ${CXXFLAGS} ${CPPFLAGS} ${PERLFLAGS} $< -o $@; \
29 else \
30 echo "Not compiling perl module"; \
31 fi
32
33 $(SRCDIR)/svsperl.C: $(SRCDIR)/svsperl.xs $(SRCDIR)/svsperl/typemap $(SRCDIR)/perlxsi.c $(SRCDIR)/svsperl/genacc
34 @if [ "${HAVE_PERL}" = "yes" ]; then \
35 echo "Generating $@"; \
36 PERL="${PERL}" SRCDIR="${SRCDIR}" \
37 ${PERL} ${PERLPRIVLIBEXP}/ExtUtils/xsubpp -C++ -csuffix .C \
38 -typemap ${PERLPRIVLIBEXP}/ExtUtils/typemap -typemap $(SRCDIR)/svsperl/typemap \
39 -prototypes $< > $@; \
40 else \
41 echo "Not generating $@"; \
42 echo -n > $@; \
43 fi
44
45 $(SRCDIR)/perlxsi.c:
46 @${PERL} -MExtUtils::Embed -e xsinit -- -std svs
47
48 extra-clean:
49 @${RM} -f svsperl.C perlxsi.c
50
51 install:
52 @$(INSTALL) -m 755 -d $(DESTDIR)$(sysconfdir)
53 @$(INSTALL) -m 640 -c $(SRCDIR)/svsperl/svs.pm ${sysconfdir}
54
55 depend: ${SRCDIR}/svsperl.C