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 18PERLDIR = $(ADJUNCT_PROTO)/usr/perl5/$(PERL_VERSION) 19PERLLIBDIR = $(PERLDIR)/lib/$(PERL_ARCH) 20PERLINCDIR = $(PERLLIBDIR)/CORE 21PERLLIBDIR64 = $(PERLDIR)/lib/$(PERL_ARCH64) 22PERLINCDIR64 = $(PERLLIBDIR64)/CORE 23 24PERLBINDIR = $(PERLDIR)/bin 25PERLBINDIR64 = $(PERLDIR)/bin 26$(BUILDPERL64)PERLBINDIR = $(PERLDIR)/bin/$(MACH) 27$(BUILDPERL32)PERLBINDIR64 = $(PERLDIR)/bin/$(MACH64) 28 29PERLMOD = ../$(MODULE).pm 30PERLEXT = $(MODULE).so 31PERLXS = ../$(MODULE).xs 32 33ROOTPERLDIR = $(ROOT)/usr/perl5/$(PERL_VERSION) 34ROOTPERLLIBDIR = $(ROOTPERLDIR)/lib/$(PERL_ARCH) 35ROOTPERLMODDIR = $(ROOTPERLLIBDIR)/Sun/Solaris 36ROOTPERLEXTDIR = $(ROOTPERLLIBDIR)/auto/Sun/Solaris/$(MODULE) 37ROOTPERLLIBDIR64 = $(ROOTPERLDIR)/lib/$(PERL_ARCH64) 38ROOTPERLMODDIR64 = $(ROOTPERLLIBDIR64)/Sun/Solaris 39ROOTPERLEXTDIR64 = $(ROOTPERLLIBDIR64)/auto/Sun/Solaris/$(MODULE) 40 41ROOTPERLMOD = $(ROOTPERLMODDIR)/$(MODULE).pm 42ROOTPERLEXT = $(ROOTPERLEXTDIR)/$(MODULE).so 43ROOTPERLMOD64 = $(ROOTPERLMODDIR64)/$(MODULE).pm 44ROOTPERLEXT64 = $(ROOTPERLEXTDIR64)/$(MODULE).so 45 46XSUBPP = $(PERLBINDIR)/perl $(PERLDIR)/lib/ExtUtils/xsubpp \ 47 -typemap $(PERLDIR)/lib/ExtUtils/typemap 48XSUBPP64 = $(PERLBINDIR64)/perl $(PERLDIR)/lib/ExtUtils/xsubpp \ 49 -typemap $(PERLDIR)/lib/ExtUtils/typemap 50 51# CFLAGS for perl, specifically. 52# When building for Perl older than 5.38 we need to define PERL_USE_SAFE_PUTENV 53PERL_USE_SAFE_PUTENV:sh = if test ${PERL_VERSION/5.} -lt 38 ; then echo -DPERL_USE_SAFE_PUTENV ; fi 54PCFLAGS= -DPERL_EUPXS_ALWAYS_EXPORT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \ 55 $(PERL_USE_SAFE_PUTENV) -D_TS_ERRNO 56PCFLAGS64= -DPERL_EUPXS_ALWAYS_EXPORT -D_LARGEFILE_SOURCE64 \ 57 $(PERL_USE_SAFE_PUTENV) -D_TS_ERRNO 58 59CSTD = $(CSTD_GNU99) 60ZGUIDANCE = 61SONAME = $(PERLEXT) 62 63CLEANFILES += $(PERLEXT) $(MODULE).o $(MODULE).c 64