xref: /titanic_53/usr/src/cmd/perl/Makefile.perl (revision f4b94e8c42dec022f0288b8b6cb134ba2ae908ac)
1c9f77c52SAndy Stormont#
2c9f77c52SAndy Stormont# This file and its contents are supplied under the terms of the
3c9f77c52SAndy Stormont# Common Development and Distribution License ("CDDL"), version 1.0.
4c9f77c52SAndy Stormont# You may only use this file in accordance with the terms of version
5c9f77c52SAndy Stormont# 1.0 of the CDDL.
6c9f77c52SAndy Stormont#
7c9f77c52SAndy Stormont# A full copy of the text of the CDDL should have accompanied this
8c9f77c52SAndy Stormont# source.  A copy of the CDDL is also available via the Internet at
9c9f77c52SAndy Stormont# http://www.illumos.org/license/CDDL.
10c9f77c52SAndy Stormont#
11c9f77c52SAndy Stormont#
121f2ca518SDan McDonald# Copyright 2015, OmniTI Computer Consulting, Inc. All rights reserved.
134c1e9c66SAndrew Stormont# Copyright 2016 RackTop Systems.
14c9f77c52SAndy Stormont#
15c9f77c52SAndy Stormont
16c9f77c52SAndy Stormontinclude $(SRC)/lib/Makefile.lib
17c9f77c52SAndy Stormont
181f2ca518SDan McDonald# PERL_VERSION and PERL_ARCH used to be set here,
191f2ca518SDan McDonald# but as they were also needed in usr/src/pkg/Makefile,
2033392354SAlexander Pyhalov# the definition was moved to usr/src/Makefile.master
21c9f77c52SAndy Stormont
22c9f77c52SAndy StormontPERLDIR = $(ADJUNCT_PROTO)/usr/perl5/$(PERL_VERSION)
23c9f77c52SAndy StormontPERLLIBDIR = $(PERLDIR)/lib/$(PERL_ARCH)
24c9f77c52SAndy StormontPERLINCDIR = $(PERLLIBDIR)/CORE
254c1e9c66SAndrew StormontPERLLIBDIR64 = $(PERLDIR)/lib/$(PERL_ARCH64)
264c1e9c66SAndrew StormontPERLINCDIR64 = $(PERLLIBDIR64)/CORE
27c9f77c52SAndy Stormont
28*f4b94e8cSAndrew StormontPERLBINDIR = $(PERLDIR)/bin
29*f4b94e8cSAndrew StormontPERLBINDIR64 = $(PERLDIR)/bin
30*f4b94e8cSAndrew Stormont$(BUILDPERL64)PERLBINDIR = $(PERLDIR)/bin/$(MACH)
31*f4b94e8cSAndrew Stormont$(BUILDPERL32)PERLBINDIR64 = $(PERLDIR)/bin/$(MACH64)
32*f4b94e8cSAndrew Stormont
33c9f77c52SAndy StormontPERLMOD = $(MODULE).pm
34c9f77c52SAndy StormontPERLEXT = $(MACH)/$(MODULE).so
354c1e9c66SAndrew StormontPERLEXT64 = $(MACH64)/$(MODULE).so
36c9f77c52SAndy Stormont
37c9f77c52SAndy StormontROOTPERLDIR = $(ROOT)/usr/perl5/$(PERL_VERSION)
38c9f77c52SAndy StormontROOTPERLLIBDIR = $(ROOTPERLDIR)/lib/$(PERL_ARCH)
39c9f77c52SAndy StormontROOTPERLMODDIR = $(ROOTPERLLIBDIR)/Sun/Solaris
40c9f77c52SAndy StormontROOTPERLEXTDIR = $(ROOTPERLLIBDIR)/auto/Sun/Solaris/$(MODULE)
414c1e9c66SAndrew StormontROOTPERLLIBDIR64 = $(ROOTPERLDIR)/lib/$(PERL_ARCH64)
424c1e9c66SAndrew StormontROOTPERLMODDIR64 = $(ROOTPERLLIBDIR64)/Sun/Solaris
434c1e9c66SAndrew StormontROOTPERLEXTDIR64 = $(ROOTPERLLIBDIR64)/auto/Sun/Solaris/$(MODULE)
44c9f77c52SAndy Stormont
45c9f77c52SAndy StormontROOTPERLMOD = $(ROOTPERLMODDIR)/$(MODULE).pm
46c9f77c52SAndy StormontROOTPERLEXT = $(ROOTPERLEXTDIR)/$(MODULE).so
474c1e9c66SAndrew StormontROOTPERLMOD64 = $(ROOTPERLMODDIR64)/$(MODULE).pm
484c1e9c66SAndrew StormontROOTPERLEXT64 = $(ROOTPERLEXTDIR64)/$(MODULE).so
494c1e9c66SAndrew Stormont
50*f4b94e8cSAndrew StormontXSUBPP = $(PERLBINDIR)/perl $(PERLDIR)/lib/ExtUtils/xsubpp \
514c1e9c66SAndrew Stormont	-typemap $(PERLDIR)/lib/ExtUtils/typemap
52*f4b94e8cSAndrew StormontXSUBPP64 = $(PERLBINDIR64)/perl $(PERLDIR)/lib/ExtUtils/xsubpp \
534c1e9c66SAndrew Stormont	-typemap $(PERLDIR)/lib/ExtUtils/typemap
54c7893124SRichard Lowe
55c7893124SRichard LoweC99MODE = $(C99_ENABLE)
56