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# 2203831d35Sstevel# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2303831d35Sstevel# Use is subject to license terms. 2403831d35Sstevel# 2503831d35Sstevel# ident "%Z%%M% %I% %E% SMI" 2603831d35Sstevel# 2703831d35Sstevel 2803831d35Sstevel# 2903831d35Sstevel# Create default so empty rules don't 3003831d35Sstevel# confuse make 3103831d35Sstevel# 3203831d35SstevelCLASS = 32 3303831d35SstevelUTSBASE = $(SRC)/uts 3403831d35Sstevel 3503831d35SstevelLIBRARY = libprtdiag.a 3603831d35SstevelVERS = .1 3703831d35Sstevel 3803831d35Sstevelinclude $(SRC)/lib/Makefile.lib 3903831d35Sstevelinclude $(SRC)/Makefile.psm 4003831d35Sstevel 4103831d35SstevelLIBS = $(DYNLIB) $(LINTLIB) 4203831d35SstevelIFLAGS = -I ../../inc -I $(USR_PSM_INCL_DIR) 4303831d35SstevelIFLAGS += -I $(UTSBASE)/sun4u 4403831d35SstevelIFLAGS += -I $(UTSBASE)/sun4u/sunfire 4503831d35SstevelIFLAGS += -I $(UTSBASE)/sun4u/serengeti 4603831d35SstevelCPPFLAGS = $(IFLAGS) $(CPPFLAGS.master) 4703831d35SstevelCFLAGS += $(CCVERBOSE) 4803831d35SstevelLDLIBS += -lc -lkstat 4903831d35SstevelDYNFLAGS += -Wl,-f/usr/platform/\$$PLATFORM/lib/$(DYNLIBPSR) 5003831d35Sstevel 51*f808c858Sraf# There should be a mapfile here 52*f808c858SrafMAPFILES = 53*f808c858Sraf 5403831d35SstevelSRCDIR = ../../common 5503831d35Sstevel$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 5603831d35SstevelUSR_PSMLINT= $(LINTSRC:%=$(USR_PSM_LIB_DIR)/%) 5703831d35Sstevel 5803831d35Sstevel# 5903831d35Sstevel# install rule 6003831d35Sstevel# 6103831d35Sstevel$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR) 6203831d35Sstevel $(INS.file) ;\ 6303831d35Sstevel $(RM) -r $(USR_PSM_LIB_DIR)/libprtdiag.so ;\ 6403831d35Sstevel $(SYMLINK) ./libprtdiag.so$(VERS) $(USR_PSM_LIB_DIR)/libprtdiag.so 6503831d35Sstevel 6603831d35Sstevel$(USR_PSM_LIB_DIR)/%: $(SRCDIR)/% 6703831d35Sstevel $(INS.file) 6803831d35Sstevel 6903831d35Sstevel# 7003831d35Sstevel# build rules 7103831d35Sstevel# 7203831d35Sstevelobjs/%.o pics/%.o: ../../common/%.c 7303831d35Sstevel $(COMPILE.c) -o $@ $< 7403831d35Sstevel $(POST_PROCESS_O) 75