xref: /titanic_50/usr/src/cmd/perl/Makefile.perl (revision 7c1efb826b7b3724b594d5aaf7827bc7ff09867e)
1#
2# This file and its contents are supplied under the terms of the
3# Common Development and Distribution License ("CDDL"), version 1.0.
4# You may only use this file in accordance with the terms of version
5# 1.0 of the CDDL.
6#
7# A full copy of the text of the CDDL should have accompanied this
8# source.  A copy of the CDDL is also available via the Internet at
9# http://www.illumos.org/license/CDDL.
10#
11#
12# Copyright 2015, OmniTI Computer Consulting, Inc. All rights reserved.
13# Copyright 2016 RackTop Systems.
14#
15
16include $(SRC)/lib/Makefile.lib
17
18# PERL_VERSION and PERL_ARCH used to be set here,
19# but as they were also needed in usr/src/pkg/Makefile,
20# the definition was moved to usr/src/Makefile.master
21
22PERLDIR = $(ADJUNCT_PROTO)/usr/perl5/$(PERL_VERSION)
23PERLLIBDIR = $(PERLDIR)/lib/$(PERL_ARCH)
24PERLINCDIR = $(PERLLIBDIR)/CORE
25PERLLIBDIR64 = $(PERLDIR)/lib/$(PERL_ARCH64)
26PERLINCDIR64 = $(PERLLIBDIR64)/CORE
27
28PERLBINDIR = $(PERLDIR)/bin
29PERLBINDIR64 = $(PERLDIR)/bin
30$(BUILDPERL64)PERLBINDIR = $(PERLDIR)/bin/$(MACH)
31$(BUILDPERL32)PERLBINDIR64 = $(PERLDIR)/bin/$(MACH64)
32
33PERLMOD = $(MODULE).pm
34PERLEXT = $(MACH)/$(MODULE).so
35PERLEXT64 = $(MACH64)/$(MODULE).so
36
37ROOTPERLDIR = $(ROOT)/usr/perl5/$(PERL_VERSION)
38ROOTPERLLIBDIR = $(ROOTPERLDIR)/lib/$(PERL_ARCH)
39ROOTPERLMODDIR = $(ROOTPERLLIBDIR)/Sun/Solaris
40ROOTPERLEXTDIR = $(ROOTPERLLIBDIR)/auto/Sun/Solaris/$(MODULE)
41ROOTPERLLIBDIR64 = $(ROOTPERLDIR)/lib/$(PERL_ARCH64)
42ROOTPERLMODDIR64 = $(ROOTPERLLIBDIR64)/Sun/Solaris
43ROOTPERLEXTDIR64 = $(ROOTPERLLIBDIR64)/auto/Sun/Solaris/$(MODULE)
44
45ROOTPERLMOD = $(ROOTPERLMODDIR)/$(MODULE).pm
46ROOTPERLEXT = $(ROOTPERLEXTDIR)/$(MODULE).so
47ROOTPERLMOD64 = $(ROOTPERLMODDIR64)/$(MODULE).pm
48ROOTPERLEXT64 = $(ROOTPERLEXTDIR64)/$(MODULE).so
49
50XSUBPP = $(PERLBINDIR)/perl $(PERLDIR)/lib/ExtUtils/xsubpp \
51	-typemap $(PERLDIR)/lib/ExtUtils/typemap
52XSUBPP64 = $(PERLBINDIR64)/perl $(PERLDIR)/lib/ExtUtils/xsubpp \
53	-typemap $(PERLDIR)/lib/ExtUtils/typemap
54
55C99MODE = $(C99_ENABLE)
56