Home | History | Annotate | Download | only in lib
      1 #
      2 # CDDL HEADER START
      3 #
      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/CDDL.txt
      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/CDDL.txt.
     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 
     22 #
     23 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
     24 # Use is subject to license terms.
     25 #
     26 #ident	"@(#)Makefile.lib.64	1.3	07/11/18 SMI"
     27 
     28 #
     29 # Include overrides for library builds of 64-bit objects
     30 #
     31 include	$(SRC)/Makefile.master.64
     32 
     33 CLASS = 64
     34 
     35 PIC_PLIB64=
     36 $(BUILD_PROFS)PIC_PLIB64=	libp/$(DYNLIB)
     37 ROOTPIC_PLIB64=
     38 $(BUILD_PROFS)ROOTPIC_PLIB64= $(ROOTLIBDIR64)/$(PIC_PLIB64)
     39 $(MACHPIC_PLIB64) := sparc_CFLAGS += -xregs=no%appl -K pic
     40 $(MACHPIC_PLIB64) := i386_CFLAGS += -K pic
     41 $(MACHPIC_PLIB64) := sparcv9_CFLAGS += -xregs=no%appl -K PIC
     42 $(MACHPIC_PLIB64) := sparcv9_CCFLAGS += -xregs=no%appl -K PIC
     43 $(MACHPIC_PLIB64) := CPPFLAGS += -DPIC -D_TS_ERRNO
     44 $(PIC_PLIB64)  := CFLAGS64 += -p
     45 $(PIC_PLIB64)  := BUILD.SO = $(CC) $(CFLAGS) -o $@ \
     46 		-G $(DYNFLAGS) -M ../../mapfile_profile \
     47 		$(PIC_PROFS) -L $(ROOTLIBDIR64) $(LDLIBS)
     48 
     49 #
     50 # Include cluster libraries
     51 #
     52 LDFLAGS += -L$(ROOTCLUSTLIBDIR)/$(MACH64)
     53