Makefile revision f841f6ad96ea6675d6c6b35c749eaac601799fdf
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# CDDL HEADER START
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# The contents of this file are subject to the terms of the
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Common Development and Distribution License (the "License").
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# You may not use this file except in compliance with the License.
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# or http://www.opensolaris.org/os/licensing.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# See the License for the specific language governing permissions
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# and limitations under the License.
e939674d53a127ddeeaf4b41fd72933f0b493308Mark Andrews#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# CDDL HEADER END
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# Use is subject to license terms.
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# ident "%Z%%M% %I% %E% SMI"
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
f02194c0538094556090ded7964df2b72771d85eJeremy C. Reed# cmd/picl/plugins/sun4v/ontario/piclsbl/Makefile
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntLIBRARY= libpiclsbl.a
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntVERS= .1
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntOBJECTS= piclsbl.o
f1c89cb4f5c72c54bb67dc48cd6f2b332eab9e92Automatic Updater
207cee019eb5cbbe7c905f7c52f7b5d11f8c0305Automatic Updater# include library definitions
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox Userinclude $(SRC)/lib/Makefile.lib
a6ca100924894cdd8e2b791d75a8cef32b1fba1fTinderbox Userinclude $(SRC)/Makefile.psm
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Huntinclude $(SRC)/cmd/picl/plugins/Makefile.com
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntSRCS= $(OBJECTS:%.o=%.c)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntLINT_SRC= $(LINTLIB:%.ln=%)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt$(OBJS_DIR)/%.o: $(SRC)/sun4v/ontario/piclsbl/%.c
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(COMPILE.c) -o $@ $<
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(CTFCONVERT_O)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt$(LINTS_DIR)/%.ln: $(SRC)/sun4v/ontario/piclsbl/%.c
e939674d53a127ddeeaf4b41fd72933f0b493308Mark Andrews @($(LHEAD) $(LINT.c) $< $(LTAIL))
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntLIBS = $(DYNLIB)
f2af4484a813d670d88e9310e322e3074f1dc8b2Mark Andrews
e939674d53a127ddeeaf4b41fd72933f0b493308Mark AndrewsROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,Sun-Fire-T200
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntDYNFLAGS_PLAT = /usr/platform/\$$PLATFORM/lib/picl/plugins
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntDYNFLAGS_SUN4V = /usr/platform/sun4v/lib/picl/plugins
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntDYNFLAGS_COM = /usr/lib/picl/plugins
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntCLEANFILES= $(LINTOUT) $(LINTLIB)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCPPFLAGS += -I$(SRC)/sun4v/ontario/piclsbl
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark AndrewsCPPFLAGS += -I$(SRC)/uts/common/sys
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntCPPFLAGS += -I$(SRC)/lib/libpcp/common
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntCPPFLAGS += -D_REENTRANT
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan HuntCFLAGS += $(CCVERBOSE)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntLDLIBS += -L$(SRC)/lib/libpicl/$(MACH) -L$(SRC)/lib/libpicltree/$(MACH)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntLDLIBS += -L$(ROOT)/usr/lib/picl/plugins
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntDYNFLAGS += -R$(DYNFLAGS_COM)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntLDLIBS += -lc -lpicltree -lumem -lnvpair
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntLINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN -v
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt.KEEP_STATE:
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Huntall: $(LIBS) $(LIBLINKS)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Huntinstall: all $(ROOTLIBDIR) $(ROOTLIBS) $(ROOTLINKS)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt$(LIBLINKS): FRC
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt $(RM) $(LIBLINKS); $(SYMLINK) $(DYNLIB) $(LIBLINKS)
d7be2b79ed0934483d550e17e2bd09de4eaff8f5Evan Hunt
d7be2b79ed0934483d550e17e2bd09de4eaff8f5Evan Hunt# include library targets
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Huntinclude $(SRC)/cmd/picl/plugins/Makefile.targ
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntinclude $(SRC)/lib/Makefile.targ
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntlint :
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews $(LINT.c) $(SRCS)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntFRC:
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt