Rename .sub files back to .inc.
[dragonfly.git] / gnu / usr.bin / perl / library / Makefile.inc
1 # $FreeBSD: src/gnu/usr.bin/perl/library/Makefile.inc,v 1.5.2.4 2002/07/16 14:05:30 ru Exp $
2 # $DragonFly: src/gnu/usr.bin/perl/library/Attic/Makefile.inc,v 1.4 2004/01/28 21:26:52 dillon Exp $
3
4 PERL5SRC?=      ${.CURDIR}/../../../../../contrib/perl5
5 PERL5LIBSRC?=   ${.CURDIR}/../../libperl
6
7 MODULEDIR?=     ${MODULE}
8
9 MAKEMAKER_ARGS= INSTALLDIRS=perl PERL_SRC=${.OBJDIR} \
10                 INSTALLMAN3DIR=${DESTDIR}/usr/share/perl/man3 \
11                 PERL=${MINIPERL} FULLPERL=perl DEFINE=-I${DESTDIR}/usr/include \
12                 DEFINE=-DPERL_CORE
13
14 CFLAGS+=        -L${.OBJDIR}/../../libperl
15
16 all:    lib/auto/${MODULE}.so
17
18 .include "../Makefile.inc"
19
20 CLEANFILES+= ext.libs
21
22 lib/auto/${MODULE}.so: ext/${MODULEDIR}/Makefile ${DYNALOADER}
23         @cd ext/${MODULEDIR}; \
24         make -B all PERL_SRC=${.OBJDIR}
25
26 ext/${MODULEDIR}/Makefile: scripts
27         @cd ext/${MODULEDIR}; \
28         ${MINIPERL} -I${.OBJDIR}/lib Makefile.PL ${MAKEMAKER_ARGS} \
29                 LINKTYPE=dynamic LIBS="-lperl -lm" \
30                 INST_LIB=${.OBJDIR}/build/${MODULEDIR} \
31                 INST_ARCHLIB=${.OBJDIR}/build/${MODULEDIR}; \
32         make -B config PERL_SRC=${.OBJDIR}
33
34 realinstall:
35         @cd ${.OBJDIR}/ext/${MODULEDIR} ;\
36         make -B install \
37                 INSTALLPRIVLIB=${DESTDIR}/usr/libdata/perl/${VERSION} \
38                 INSTALLARCHLIB=${DESTDIR}/usr/libdata/perl/${VERSION}/mach
39
40 .PATH:  ${PERL5SRC}