xref: /onnv-gate/usr/src/lib/libpcp/sparc/Makefile (revision 10738:6cd5e5169fec)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
51946Sks34972# Common Development and Distribution License (the "License").
61946Sks34972# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
2110207SJames.McPherson@Sun.COM# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
220Sstevel@tonic-gate# Use is subject to license terms.
230Sstevel@tonic-gate#
240Sstevel@tonic-gate# lib/libpcp/sparc/Makefile
250Sstevel@tonic-gate
260Sstevel@tonic-gateUTSBASE= ../../../uts
270Sstevel@tonic-gate
280Sstevel@tonic-gatePLATINCS += -I$(USR_PLAT_DIR)/sun4v/include -I$(UTSBASE)/sun4v
290Sstevel@tonic-gate
302531SnarayanPLATFORM_OBJECTS= libpcp.o pcp_utils.o
310Sstevel@tonic-gate
320Sstevel@tonic-gate#
330Sstevel@tonic-gate# platform library directory (/usr/platform/SUNW,Sun-Fire-T200/lib)
340Sstevel@tonic-gate#
352531SnarayanPLATFORM=sun4v
362531SnarayanLINKED_PLATFORMS = SUNW,Sun-Fire-T200 \
373013Sanovick		SUNW,Netra-CP3060 \
384546Swillard		SUNW,Sun-Blade-T6300 \
394669Sfw157321		SUNW,Sun-Blade-T6320 \
404732Sdavemq		SUNW,SPARC-Enterprise-T5120 \
414777Smcwalter		SUNW,T5140 \
425046Swillard		SUNW,Netra-CP3260 \
435140Sjl139090		SUNW,USBRDT-5240 \
445325Sky115808		SUNW,Netra-T5220 \
457552Svivek.n.gavaskar@sun.com		SUNW,Netra-T5440
463013Sanovick
470Sstevel@tonic-gate
480Sstevel@tonic-gateinclude ../Makefile.com
490Sstevel@tonic-gate
500Sstevel@tonic-gate#
510Sstevel@tonic-gate# install rules
520Sstevel@tonic-gate#
530Sstevel@tonic-gate
540Sstevel@tonic-gate$(PLATLIBS)/libpcp.so:
5510207SJames.McPherson@Sun.COM	$(RM) -r $@; $(SYMLINK) libpcp.so.1 $@
560Sstevel@tonic-gate
570Sstevel@tonic-gate$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
580Sstevel@tonic-gate	$(INS.file)
590Sstevel@tonic-gate
600Sstevel@tonic-gate$(USR_PSM_LIB_DIR):
61*10738SJames.McPherson@Sun.COM	$(INS.dir)
620Sstevel@tonic-gate
630Sstevel@tonic-gate$(LINKED_DIRS):   $(USR_PLAT_DIR)
64*10738SJames.McPherson@Sun.COM	-$(INS.dir)
650Sstevel@tonic-gate
660Sstevel@tonic-gate$(LINKED_LIB_DIRS):  $(LINKED_DIRS)
67*10738SJames.McPherson@Sun.COM	-$(INS.dir)
680Sstevel@tonic-gate
690Sstevel@tonic-gate$(LINKED_LIBPCP_DIR): $(USR_PLAT_DIR)
700Sstevel@tonic-gate	-$(INS.slink7)
710Sstevel@tonic-gate
720Sstevel@tonic-gate$(LINKED_LIBPCP1_DIR): $(USR_PLAT_DIR)
730Sstevel@tonic-gate	-$(INS.slink6)
740Sstevel@tonic-gate
750Sstevel@tonic-gate$(LINKED_LLIBLPCP_DIR): $(USR_PLAT_DIR)
760Sstevel@tonic-gate	-$(INS.slink8)
770Sstevel@tonic-gate
7823Smvgrinstall: all $(USR_PSM_LIBS) $(PLATLIBS)/libpcp.so \
790Sstevel@tonic-gate	$(LINKED_DIRS) $(LINKED_LIB_DIRS) \
800Sstevel@tonic-gate	$(LINKED_LIBPCP_DIR) $(LINKED_LIBPCP1_DIR) \
810Sstevel@tonic-gate	$(LINKED_LLIBLPCP_DIR)
82