103831d35Sstevel# 203831d35Sstevel# CDDL HEADER START 303831d35Sstevel# 403831d35Sstevel# The contents of this file are subject to the terms of the 503831d35Sstevel# Common Development and Distribution License (the "License"). 603831d35Sstevel# You may not use this file except in compliance with the License. 703831d35Sstevel# 803831d35Sstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 903831d35Sstevel# or http://www.opensolaris.org/os/licensing. 1003831d35Sstevel# See the License for the specific language governing permissions 1103831d35Sstevel# and limitations under the License. 1203831d35Sstevel# 1303831d35Sstevel# When distributing Covered Code, include this CDDL HEADER in each 1403831d35Sstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1503831d35Sstevel# If applicable, add the following below this CDDL HEADER, with the 1603831d35Sstevel# fields enclosed by brackets "[]" replaced with your own identifying 1703831d35Sstevel# information: Portions Copyright [yyyy] [name of copyright owner] 1803831d35Sstevel# 1903831d35Sstevel# CDDL HEADER END 2003831d35Sstevel# 2103831d35Sstevel# 220d63ce2bSvenki# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 2303831d35Sstevel# Use is subject to license terms. 2403831d35Sstevel# 2503831d35Sstevel 2603831d35Sstevel# 2703831d35Sstevel# Create default so empty rules don't 2803831d35Sstevel# confuse make 2903831d35Sstevel# 3003831d35SstevelCLASS = 32 3103831d35SstevelUTSBASE = $(SRC)/uts 3203831d35Sstevel 3303831d35SstevelLIBRARY = libprtdiag.a 3403831d35SstevelVERS = .1 3503831d35Sstevel 3603831d35Sstevelinclude $(SRC)/lib/Makefile.lib 3703831d35Sstevelinclude $(SRC)/Makefile.psm 3803831d35Sstevel 3903831d35SstevelLIBS = $(DYNLIB) $(LINTLIB) 4003831d35SstevelIFLAGS = -I ../../inc -I $(USR_PSM_INCL_DIR) 410d63ce2bSvenkiIFLAGS += -I $(SRC)/cmd/picl/plugins/inc 4203831d35SstevelIFLAGS += -I $(UTSBASE)/sun4u 4303831d35SstevelIFLAGS += -I $(UTSBASE)/sun4u/sunfire 4403831d35SstevelIFLAGS += -I $(UTSBASE)/sun4u/serengeti 4503831d35SstevelCPPFLAGS = $(IFLAGS) $(CPPFLAGS.master) 4603831d35SstevelCFLAGS += $(CCVERBOSE) 47*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 48*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 49*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 50*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-value 51*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 52aa52b40eSfw157321LDLIBS += -lc -lkstat 5303831d35SstevelDYNFLAGS += -Wl,-f/usr/platform/\$$PLATFORM/lib/$(DYNLIBPSR) 5403831d35Sstevel 55f808c858Sraf# There should be a mapfile here 56f808c858SrafMAPFILES = 57f808c858Sraf 5803831d35SstevelSRCDIR = ../../common 5903831d35Sstevel$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 6003831d35SstevelUSR_PSMLINT= $(LINTSRC:%=$(USR_PSM_LIB_DIR)/%) 6103831d35Sstevel 6203831d35Sstevel# 6303831d35Sstevel# install rule 6403831d35Sstevel# 6503831d35Sstevel$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR) 6603831d35Sstevel $(INS.file) ;\ 6703831d35Sstevel $(RM) -r $(USR_PSM_LIB_DIR)/libprtdiag.so ;\ 6803831d35Sstevel $(SYMLINK) ./libprtdiag.so$(VERS) $(USR_PSM_LIB_DIR)/libprtdiag.so 6903831d35Sstevel 7003831d35Sstevel$(USR_PSM_LIB_DIR)/%: $(SRCDIR)/% 7103831d35Sstevel $(INS.file) 7203831d35Sstevel 7303831d35Sstevel# 7403831d35Sstevel# build rules 7503831d35Sstevel# 7603831d35Sstevelobjs/%.o pics/%.o: ../../common/%.c 7703831d35Sstevel $(COMPILE.c) -o $@ $< 7803831d35Sstevel $(POST_PROCESS_O) 79