Makefile revision 48bc00d6814e04ff3edb32cafe7d1bc580baff68
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# CDDL HEADER START
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# The contents of this file are subject to the terms of the
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# Common Development and Distribution License (the "License").
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# You may not use this file except in compliance with the License.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# or http://www.opensolaris.org/os/licensing.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# See the License for the specific language governing permissions
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# and limitations under the License.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# When distributing Covered Code, include this CDDL HEADER in each
a192d1c0eb1d05a03ead3c7f898e864e4bf0399cPatrick Mooney# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# If applicable, add the following below this CDDL HEADER, with the
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# fields enclosed by brackets "[]" replaced with your own identifying
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# information: Portions Copyright [yyyy] [name of copyright owner]
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# CDDL HEADER END
a192d1c0eb1d05a03ead3c7f898e864e4bf0399cPatrick Mooney#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# Use is subject to license terms.
a192d1c0eb1d05a03ead3c7f898e864e4bf0399cPatrick Mooney#
a192d1c0eb1d05a03ead3c7f898e864e4bf0399cPatrick Mooney# lib/libprtdiag_psr/sparc/schumacher/picl/Makefile
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedyUTSBASE = $(SRC)/uts
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedyPLATFORM_OBJECTS= schumacher.o
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyobjs/%.o pics/%.o: ../common/%.c
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy $(COMPILE.c) $(IFLAGS) -o $@ $<
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy $(POST_PROCESS_O)
a192d1c0eb1d05a03ead3c7f898e864e4bf0399cPatrick Mooney
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyinclude $(SRC)/lib/libprtdiag_psr/sparc/Makefile.com
a192d1c0eb1d05a03ead3c7f898e864e4bf0399cPatrick Mooney
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedySRCS= $(OBJECTS:%.o=../common/%.c)
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedyLDLIBS += -lpicl
a192d1c0eb1d05a03ead3c7f898e864e4bf0399cPatrick Mooney
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedyIFLAGS += -I$(USR_PLAT_DIR)/sun4u/include -I ../../../../libprtdiag/inc
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedyIFLAGS += -I$(SRC)/cmd/picl/plugins/inc
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedyLINTFLAGS += $(IFLAGS)
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedyPLATFORM= SUNW,Netra-CP3010
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy$(USR_PLAT_DIR)/$(PLATFORM)/lib/libprtdiag_psr.so.1 := FILEMODE= 0755
a192d1c0eb1d05a03ead3c7f898e864e4bf0399cPatrick Mooney
a192d1c0eb1d05a03ead3c7f898e864e4bf0399cPatrick Mooney.KEEP_STATE:
a192d1c0eb1d05a03ead3c7f898e864e4bf0399cPatrick Mooney
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedyPLATLIBS= $(PLATFORM:%=$(USR_PLAT_DIR)/%/lib/)
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyinstall: all $(PLATLIBS) $(USR_PSM_LIBS) \
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy $(LINKED_PRTDIAG_DIRS)
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# install rules for /usr/platform/${PLATFORM}/lib/libprtdiag_psr.so.1
#
$(PLATLIBS):
$(INS.dir)
$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
$(INS.file)
$(USR_PSM_LIB_DIR):
$(INS.dir)
$(LINKED_DIRS): $(USR_PLAT_DIR)
-$(INS.dir)
$(LINKED_LIB_DIRS): $(LINKED_DIRS)
-$(INS.dir)
$(LINKED_PRTDIAG_DIRS): $(USR_PLAT_DIR)
-$(INS.slink6)
#
# Rules for making message files
#
MSGFILES= ../common/schumacher.c
POFILE= libprtdiag_psr_schumacher_picl.po
$(POFILE): pofile_MSGFILES
_msg: $(MSGDOMAINPOFILE)
include $(SRC)/Makefile.msg.targ