03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# CDDL HEADER START
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# The contents of this file are subject to the terms of the
03831d35f7499c87d51205817c93e9a8d42c4baestevel# Common Development and Distribution License (the "License").
03831d35f7499c87d51205817c93e9a8d42c4baestevel# You may not use this file except in compliance with the License.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
03831d35f7499c87d51205817c93e9a8d42c4baestevel# or http://www.opensolaris.org/os/licensing.
03831d35f7499c87d51205817c93e9a8d42c4baestevel# See the License for the specific language governing permissions
03831d35f7499c87d51205817c93e9a8d42c4baestevel# and limitations under the License.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# When distributing Covered Code, include this CDDL HEADER in each
03831d35f7499c87d51205817c93e9a8d42c4baestevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
03831d35f7499c87d51205817c93e9a8d42c4baestevel# If applicable, add the following below this CDDL HEADER, with the
03831d35f7499c87d51205817c93e9a8d42c4baestevel# fields enclosed by brackets "[]" replaced with your own identifying
03831d35f7499c87d51205817c93e9a8d42c4baestevel# information: Portions Copyright [yyyy] [name of copyright owner]
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# CDDL HEADER END
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
03831d35f7499c87d51205817c93e9a8d42c4baestevel# Use is subject to license terms.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# Create default so empty rules don't
03831d35f7499c87d51205817c93e9a8d42c4baestevel# confuse make
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevelCLASS = 32
03831d35f7499c87d51205817c93e9a8d42c4baestevelUTSBASE = $(SRC)/uts
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelLIBRARY = libprtdiag.a
03831d35f7499c87d51205817c93e9a8d42c4baestevelVERS = .1
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelinclude $(SRC)/lib/Makefile.lib
03831d35f7499c87d51205817c93e9a8d42c4baestevelinclude $(SRC)/Makefile.psm
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelLIBS = $(DYNLIB) $(LINTLIB)
03831d35f7499c87d51205817c93e9a8d42c4baestevelIFLAGS = -I ../../inc -I $(USR_PSM_INCL_DIR)
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenkiIFLAGS += -I $(SRC)/cmd/picl/plugins/inc
03831d35f7499c87d51205817c93e9a8d42c4baestevelIFLAGS += -I $(UTSBASE)/sun4u
03831d35f7499c87d51205817c93e9a8d42c4baestevelIFLAGS += -I $(UTSBASE)/sun4u/sunfire
03831d35f7499c87d51205817c93e9a8d42c4baestevelIFLAGS += -I $(UTSBASE)/sun4u/serengeti
03831d35f7499c87d51205817c93e9a8d42c4baestevelCPPFLAGS = $(IFLAGS) $(CPPFLAGS.master)
03831d35f7499c87d51205817c93e9a8d42c4baestevelCFLAGS += $(CCVERBOSE)
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-parentheses
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-variable
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-value
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-label
aa52b40e638e124bfdc5d2a65d512955e606cab1fwLDLIBS += -lc -lkstat
03831d35f7499c87d51205817c93e9a8d42c4baestevelDYNFLAGS += -Wl,-f/usr/platform/\$$PLATFORM/lib/$(DYNLIBPSR)
03831d35f7499c87d51205817c93e9a8d42c4baestevel
f808c858fa61e7769218966759510a8b1190dfcfraf# There should be a mapfile here
f808c858fa61e7769218966759510a8b1190dfcfrafMAPFILES =
f808c858fa61e7769218966759510a8b1190dfcfraf
03831d35f7499c87d51205817c93e9a8d42c4baestevelSRCDIR = ../../common
03831d35f7499c87d51205817c93e9a8d42c4baestevel$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
03831d35f7499c87d51205817c93e9a8d42c4baestevelUSR_PSMLINT= $(LINTSRC:%=$(USR_PSM_LIB_DIR)/%)
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# install rule
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(INS.file) ;\
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(RM) -r $(USR_PSM_LIB_DIR)/libprtdiag.so ;\
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(SYMLINK) ./libprtdiag.so$(VERS) $(USR_PSM_LIB_DIR)/libprtdiag.so
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel$(USR_PSM_LIB_DIR)/%: $(SRCDIR)/%
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(INS.file)
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# build rules
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevelobjs/%.o pics/%.o: ../../common/%.c
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(COMPILE.c) -o $@ $<
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(POST_PROCESS_O)