Print this page
7661 illumos should provide 64bit perl modules


   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 # Copyright 2015 Gary Mills
  22 # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
  23 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.

  24 #
  25 #
  26 # Definitions common to libraries.
  27 #
  28 # include global definitions; SRC should be defined in the shell.
  29 # SRC is needed until RFE 1026993 is implemented.
  30 
  31 include         $(SRC)/Makefile.master
  32 
  33 LORDER=         lorder
  34 TSORT=          tsort
  35 
  36 #
  37 # By default, we define the source directory for libraries to be
  38 # one level up from the ISA-specific directory, where the code is
  39 # actually built.  Many libraries define a 'common' directory to
  40 # contain the source.  These libraries must redefine SRCDIR as:
  41 #       SRCDIR = ../common
  42 # Other variations are possible (../port, ../src, etc).
  43 #


 141                 $(MAPFILES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%)
 142 
 143 LDLIBS=         $(LDLIBS.lib)
 144 
 145 OBJS=           $(OBJECTS:%=objs/%)
 146 PICS=           $(OBJECTS:%=pics/%)
 147 
 148 # Declare that all library .o's can all be made in parallel.
 149 # The DUMMY target is for those instances where OBJS and PICS
 150 # are empty (to avoid an unconditional .PARALLEL declaration).
 151 .PARALLEL:      $(OBJS) $(PICS) DUMMY
 152 
 153 # default value for "portable" source
 154 SRCS=           $(OBJECTS:%.o=$(SRCDIR)/%.c)
 155 
 156 # default build of an archive and a shared object,
 157 # overridden locally when extra processing is needed
 158 BUILD.AR=       $(AR) $(ARFLAGS) $@ $(AROBJS)
 159 BUILD.SO=       $(CC) $(CFLAGS) -o $@ $(GSHARED) $(DYNFLAGS) \
 160                 $(PICS) $(EXTPICS) $(LDLIBS)


 161 BUILDCCC.SO=    $(CCC) $(CCFLAGS) -o $@ $(GSHARED) $(DYNFLAGS) \
 162                 $(PICS) $(EXTPICS) $(LDLIBS)


 163 
 164 # default dynamic library symlink
 165 INS.liblink=    -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@
 166 INS.liblinkccc= -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKSCCC)$(VERS) $@
 167 
 168 # default 64-bit dynamic library symlink
 169 INS.liblink64=  -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@
 170 INS.liblinkccc64= -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKSCCC)$(VERS) $@
 171 
 172 #
 173 # If appropriate, augment POST_PROCESS_O and POST_PROCESS_SO to do CTF
 174 # processing.  We'd like to just conditionally append to POST_PROCESS_O and
 175 # POST_PROCESS_SO, but ParallelMake has a bug which causes the same value to
 176 # sometimes get appended more than once, which will cause ctfconvert to fail.
 177 # So, instead we introduce CTFCONVERT_POST and CTFMERGE_POST, which are always
 178 # appended to POST_PROCESS_O and POST_PROCESS_SO but are no-ops unless CTF
 179 # processing should be done.
 180 #
 181 CTFCONVERT_POST = :
 182 CTFMERGE_POST   = :




   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 # Copyright 2015 Gary Mills
  22 # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
  23 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright 2016 RackTop Systems.
  25 #
  26 #
  27 # Definitions common to libraries.
  28 #
  29 # include global definitions; SRC should be defined in the shell.
  30 # SRC is needed until RFE 1026993 is implemented.
  31 
  32 include         $(SRC)/Makefile.master
  33 
  34 LORDER=         lorder
  35 TSORT=          tsort
  36 
  37 #
  38 # By default, we define the source directory for libraries to be
  39 # one level up from the ISA-specific directory, where the code is
  40 # actually built.  Many libraries define a 'common' directory to
  41 # contain the source.  These libraries must redefine SRCDIR as:
  42 #       SRCDIR = ../common
  43 # Other variations are possible (../port, ../src, etc).
  44 #


 142                 $(MAPFILES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%)
 143 
 144 LDLIBS=         $(LDLIBS.lib)
 145 
 146 OBJS=           $(OBJECTS:%=objs/%)
 147 PICS=           $(OBJECTS:%=pics/%)
 148 
 149 # Declare that all library .o's can all be made in parallel.
 150 # The DUMMY target is for those instances where OBJS and PICS
 151 # are empty (to avoid an unconditional .PARALLEL declaration).
 152 .PARALLEL:      $(OBJS) $(PICS) DUMMY
 153 
 154 # default value for "portable" source
 155 SRCS=           $(OBJECTS:%.o=$(SRCDIR)/%.c)
 156 
 157 # default build of an archive and a shared object,
 158 # overridden locally when extra processing is needed
 159 BUILD.AR=       $(AR) $(ARFLAGS) $@ $(AROBJS)
 160 BUILD.SO=       $(CC) $(CFLAGS) -o $@ $(GSHARED) $(DYNFLAGS) \
 161                 $(PICS) $(EXTPICS) $(LDLIBS)
 162 BUILD64.SO=     $(CC64) $(CFLAGS64) -o $@ $(GSHARED) $(DYNFLAGS) \
 163                 $(PICS) $(EXTPICS) -L $(ROOTLIBDIR64) $(LDLIBS)
 164 BUILDCCC.SO=    $(CCC) $(CCFLAGS) -o $@ $(GSHARED) $(DYNFLAGS) \
 165                 $(PICS) $(EXTPICS) $(LDLIBS)
 166 BUILDCCC64.SO=  $(CCC64) $(CCFLAGS64) -o $@ $(GSHARED) $(DYNFLAGS) \
 167                 $(PICS) $(EXTPICS) $(LDLIBS) $(CCNEEDED64)
 168 
 169 # default dynamic library symlink
 170 INS.liblink=    -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@
 171 INS.liblinkccc= -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKSCCC)$(VERS) $@
 172 
 173 # default 64-bit dynamic library symlink
 174 INS.liblink64=  -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@
 175 INS.liblinkccc64= -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKSCCC)$(VERS) $@
 176 
 177 #
 178 # If appropriate, augment POST_PROCESS_O and POST_PROCESS_SO to do CTF
 179 # processing.  We'd like to just conditionally append to POST_PROCESS_O and
 180 # POST_PROCESS_SO, but ParallelMake has a bug which causes the same value to
 181 # sometimes get appended more than once, which will cause ctfconvert to fail.
 182 # So, instead we introduce CTFCONVERT_POST and CTFMERGE_POST, which are always
 183 # appended to POST_PROCESS_O and POST_PROCESS_SO but are no-ops unless CTF
 184 # processing should be done.
 185 #
 186 CTFCONVERT_POST = :
 187 CTFMERGE_POST   = :