1*e2529962Sae112802# 2*e2529962Sae112802# CDDL HEADER START 3*e2529962Sae112802# 4*e2529962Sae112802# The contents of this file are subject to the terms of the 5*e2529962Sae112802# Common Development and Distribution License (the "License"). 6*e2529962Sae112802# You may not use this file except in compliance with the License. 7*e2529962Sae112802# 8*e2529962Sae112802# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*e2529962Sae112802# or http://www.opensolaris.org/os/licensing. 10*e2529962Sae112802# See the License for the specific language governing permissions 11*e2529962Sae112802# and limitations under the License. 12*e2529962Sae112802# 13*e2529962Sae112802# When distributing Covered Code, include this CDDL HEADER in each 14*e2529962Sae112802# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*e2529962Sae112802# If applicable, add the following below this CDDL HEADER, with the 16*e2529962Sae112802# fields enclosed by brackets "[]" replaced with your own identifying 17*e2529962Sae112802# information: Portions Copyright [yyyy] [name of copyright owner] 18*e2529962Sae112802# 19*e2529962Sae112802# CDDL HEADER END 20*e2529962Sae112802# 21*e2529962Sae112802# 22*e2529962Sae112802# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23*e2529962Sae112802# Use is subject to license terms. 24*e2529962Sae112802# 25*e2529962Sae112802 26*e2529962Sae112802LIBRARY= libpiclsbl.a 27*e2529962Sae112802VERS= .1 28*e2529962Sae112802 29*e2529962Sae112802OBJECTS= piclsbl.o 30*e2529962Sae112802 31*e2529962Sae112802# include library definitions 32*e2529962Sae112802include $(SRC)/lib/Makefile.lib 33*e2529962Sae112802include $(SRC)/Makefile.psm 34*e2529962Sae112802 35*e2529962Sae112802include $(SRC)/cmd/picl/plugins/Makefile.com 36*e2529962Sae112802 37*e2529962Sae112802SRCS= $(OBJECTS:%.o=%.c) 38*e2529962Sae112802 39*e2529962Sae112802$(OBJS_DIR)/%.o: $(SRC)/sun4v/piclsbl/%.c 40*e2529962Sae112802 $(COMPILE.c) -o $@ $< 41*e2529962Sae112802 $(CTFCONVERT_O) 42*e2529962Sae112802 43*e2529962Sae112802LIBS = $(DYNLIB) 44*e2529962Sae112802 45*e2529962Sae112802ROOT_PLATFORM = $(USR_PLAT_DIR)/sun4v 46*e2529962Sae112802DYNFLAGS_PLAT = /usr/platform/\$$PLATFORM/lib/picl/plugins 47*e2529962Sae112802DYNFLAGS_SUN4V = /usr/platform/sun4v/lib/picl/plugins 48*e2529962Sae112802DYNFLAGS_COM = /usr/lib/picl/plugins 49*e2529962Sae112802ROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR) 50*e2529962Sae112802 51*e2529962Sae112802CPPFLAGS += -I$(SRC)/sun4v/piclsbl 52*e2529962Sae112802CPPFLAGS += -I$(SRC)/uts/common/sys 53*e2529962Sae112802CPPFLAGS += -I$(SRC)/lib/libpcp/common 54*e2529962Sae112802CPPFLAGS += -D_REENTRANT 55*e2529962Sae112802 56*e2529962Sae112802CFLAGS += $(CCVERBOSE) 57*e2529962Sae112802LDLIBS += -L$(SRC)/lib/libpicl/$(MACH) -L$(SRC)/lib/libpicltree/$(MACH) 58*e2529962Sae112802LDLIBS += -L$(ROOT)/usr/lib/picl/plugins 59*e2529962Sae112802DYNFLAGS += -R$(DYNFLAGS_COM) 60*e2529962Sae112802 61*e2529962Sae112802LDLIBS += -lc -lpicltree -lumem -lnvpair 62*e2529962Sae112802 63*e2529962Sae112802.KEEP_STATE: 64*e2529962Sae112802 65*e2529962Sae112802all: $(LIBS) $(LIBLINKS) 66*e2529962Sae112802 67*e2529962Sae112802install: all $(ROOTLIBDIR) $(ROOTLIBS) $(ROOTLINKS) 68*e2529962Sae112802 69*e2529962Sae112802$(ROOTLIBDIR)/$(LIBS) : $(LIBS) 70*e2529962Sae112802 $(RM) -r $@; $(INS) -s -m $(FILEMODE) -f $(@D) $(LIBS) 71*e2529962Sae112802 72*e2529962Sae112802$(LIBLINKS): FRC 73*e2529962Sae112802 $(RM) -r $(LIBLINKS); $(SYMLINK) $(DYNLIB) $(LIBLINKS) 74*e2529962Sae112802 75*e2529962Sae112802# include library targets 76*e2529962Sae112802include $(SRC)/cmd/picl/plugins/Makefile.targ 77*e2529962Sae112802include $(SRC)/lib/Makefile.targ 78*e2529962Sae112802 79*e2529962Sae112802lint : 80*e2529962Sae112802 81*e2529962Sae112802FRC: 82