10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*10207SJames.McPherson@Sun.COM# Common Development and Distribution License (the "License"). 6*10207SJames.McPherson@Sun.COM# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 210Sstevel@tonic-gate# 22*10207SJames.McPherson@Sun.COM# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 230Sstevel@tonic-gate# Use is subject to license terms. 240Sstevel@tonic-gate# 250Sstevel@tonic-gate# cmd/picl/plugins/sun4u/snowbird/lib/smc_util/Makefile 260Sstevel@tonic-gate# 270Sstevel@tonic-gate 280Sstevel@tonic-gateLIBRARY = libctsmc.a 290Sstevel@tonic-gateVERS = .1 300Sstevel@tonic-gatePLATFORM = SUNW,Netra-CP2300 310Sstevel@tonic-gate 320Sstevel@tonic-gateOBJECTS= libctsmc.o 330Sstevel@tonic-gate 340Sstevel@tonic-gate# include library definitions 350Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.lib 360Sstevel@tonic-gateinclude $(SRC)/Makefile.psm 370Sstevel@tonic-gateinclude $(SRC)/cmd/picl/plugins/Makefile.com 380Sstevel@tonic-gate 390Sstevel@tonic-gateROOT_PLATFORM = $(USR_PLAT_DIR)/$(PLATFORM) 400Sstevel@tonic-gate 410Sstevel@tonic-gateSRCS= $(OBJECTS:%.o=%.c) 420Sstevel@tonic-gate 430Sstevel@tonic-gateLIBS = $(DYNLIB) 440Sstevel@tonic-gate 450Sstevel@tonic-gateCLEANFILES= $(LINTOUT) $(LINTLIB) 460Sstevel@tonic-gate 470Sstevel@tonic-gateROOTLIBDIR = $(ROOT_PLAT_LIBDIR) 480Sstevel@tonic-gate 490Sstevel@tonic-gateLINTSRC = $(LINTLIB:%.ln=%) 500Sstevel@tonic-gateROOTLINTDIR = $(ROOTLIBDIR) 510Sstevel@tonic-gateROOTLINT = $(LINTSRC:%=$(ROOTLINTDIR)/%) 520Sstevel@tonic-gate 530Sstevel@tonic-gateCFLAGS += $(CCVERBOSE) 540Sstevel@tonic-gateCPPFLAGS += -D_REENTRANT -D_SNOWBIRD -I$(SRC)/uts/sun4u/sys 550Sstevel@tonic-gateLDLIBS += -L $(ROOT)/usr/platform/$(PLATFORM)/lib 560Sstevel@tonic-gateLDLIBS += -R/usr/platform/sun4u/lib 570Sstevel@tonic-gateLDLIBS += -lc 580Sstevel@tonic-gate 590Sstevel@tonic-gate.KEEP_STATE: 600Sstevel@tonic-gate 610Sstevel@tonic-gateSUBDIRS= 620Sstevel@tonic-gate 630Sstevel@tonic-gateall := TARGET= all 640Sstevel@tonic-gateinstall := TARGET= install 650Sstevel@tonic-gateclean := TARGET= clean 660Sstevel@tonic-gateclobber := TARGET= clobber 670Sstevel@tonic-gatelint := TARGET= lint 680Sstevel@tonic-gate_msg := TARGET= _msg 690Sstevel@tonic-gate 700Sstevel@tonic-gateall:$(LIBS) $(LIBLINKS) 710Sstevel@tonic-gate 720Sstevel@tonic-gateinstall:$(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS) 730Sstevel@tonic-gate 740Sstevel@tonic-gate$(LIBLINKS): FRC 750Sstevel@tonic-gate $(RM) $(LIBLINKS); $(SYMLINK) $(DYNLIB) $(LIBLINKS) 760Sstevel@tonic-gate_msg: 770Sstevel@tonic-gate 780Sstevel@tonic-gate# include library targets 790Sstevel@tonic-gateinclude $(SRC)/cmd/picl/plugins/Makefile.targ 800Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.targ 810Sstevel@tonic-gate 820Sstevel@tonic-gate$(ROOTLINTDIR)/%: ../% 830Sstevel@tonic-gate $(INS.file) 840Sstevel@tonic-gate 850Sstevel@tonic-gatelint : 860Sstevel@tonic-gate $(LINT.c) $(SRCS) 870Sstevel@tonic-gate 880Sstevel@tonic-gate$(SUBDIRS): FRC 890Sstevel@tonic-gate @cd $@; pwd; $(MAKE) $(TARGET) 900Sstevel@tonic-gate 910Sstevel@tonic-gateFRC: 92