Makefile revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley#
5fbced719b71e659322b4ce3e4a39c9b039674c7Bob Halley# CDDL HEADER START
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
499b34cea04a46823d003d4c0520c8b03e8513cbBrian Wellington# The contents of this file are subject to the terms of the
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence# Common Development and Distribution License (the "License").
5fbced719b71e659322b4ce3e4a39c9b039674c7Bob Halley# You may not use this file except in compliance with the License.
5fbced719b71e659322b4ce3e4a39c9b039674c7Bob Halley#
5fbced719b71e659322b4ce3e4a39c9b039674c7Bob Halley# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence# or http://www.opensolaris.org/os/licensing.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# See the License for the specific language governing permissions
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
15a44745412679c30a6d022733925af70a38b715David Lawrence# information: Portions Copyright [yyyy] [name of copyright owner]
34158349b49add1ad63eede5ab7e694c589eb3cdMark Andrews#
e85ffb301b294d70ddc1d90234788403666bb944David Lawrence# CDDL HEADER END
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson#
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson#
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson# Use is subject to license terms.
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence#
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson# cmd/picl/plugins/sun4u/taco/envd/Makefile
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson#
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrenceinclude $(SRC)/Makefile.psm
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
cb3e854e181373807f7f011e5050c1a8013b4841Brian WellingtonLIBRARY= libpiclenvd.a
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceVERS= .1
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceOBJECTS= piclenvd.o piclenvsetup.o
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson# include library definitions
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafssoninclude $(SRC)/lib/Makefile.lib
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas GustafssonROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,Sun-Blade-1500
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafssoninclude $(SRC)/cmd/picl/plugins/Makefile.com
c968a9ca37964ae0bdc5d452ad784ec93bd04c57David Lawrence
c968a9ca37964ae0bdc5d452ad784ec93bd04c57David LawrenceCPPFLAGS += -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas GustafssonCPPFLAGS += -I$(SRC)/uts/sun4u/ -I$(SRC)/uts/common/
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceCPPFLAGS += -I$(SRC)/uts/sun4u/taco
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceCPPFLAGS += -I$(SRC)/cmd/picl/plugins/lib/picld_pluginutil
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceSRCS= $(OBJECTS:%.o=%.c)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
b897c52f865b2fc4e220e2110b874e59c716456bBob HalleyLIBS = $(DYNLIB)
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley
b897c52f865b2fc4e220e2110b874e59c716456bBob HalleyROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceCONF= envmodel.conf
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceROOTCONF= $(CONF:%=$(ROOTLIBDIR)/%)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence$(ROOTCONF) := FILEMODE = 0644
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceINFOS= envmodel.info
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
4b598d8ae578861d5f3fc1333c9f84c9c9c8be7cDavid LawrenceLINTSRC = $(LINTLIB:%.ln=%)
4b598d8ae578861d5f3fc1333c9f84c9c9c8be7cDavid LawrenceROOTLINTDIR = $(ROOTLIBDIR)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceROOTLINT = $(LINTSRC:%=$(ROOTLINTDIR)/%)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceCLEANFILES= $(LINTOUT) $(LINTLIB)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceCFLAGS += $(CCVERBOSE)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceDYNFLAGS += -R/usr/platform/\$$PLATFORM/lib/picl/plugins:/usr/platform/sun4u/lib/picl/plugins:/usr/lib/picl/plugins
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceLDLIBS += -L$(SRC)/lib/libpicltree/$(MACH)
4b598d8ae578861d5f3fc1333c9f84c9c9c8be7cDavid LawrenceLDLIBS += -L$(SRC)/cmd/picl/plugins/common/devtree
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceLDLIBS += -L$(SRC)/cmd/picl/plugins/lib/picld_pluginutil/$(MACH)
4e71e9b6c86d4d437c1beb4070861a77464f98e6Andreas GustafssonLDLIBS += -L$(ROOT)/usr/lib/picl/plugins -lpicldevtree -lpicltree
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceLDLIBS += -lpicld_pluginutil
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceLDLIBS += -ldevinfo -lc
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence.KEEP_STATE:
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
5a48c9f76003a649e16de34fe6206e3b67b97afbBob HalleySUBDIRS=
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrencePOFILE = piclenvd_taco.po
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrencePOFILES = $(SRCS:%.c=%.po)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrenceall := TARGET= all
86cbec9012b1db3f85789155c38d10c63a96156fAndreas Gustafssoninstall := TARGET= install
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrenceclean := TARGET= clean
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrenceclobber := TARGET= clobber
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrencelint := TARGET= lint
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence_msg := TARGET= _msg
abfb7fe67fd97adfa4628afa79af5d98c2d9cad0Andreas Gustafsson
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrenceall: $(LIBS) $(LIBLINKS) $(CONF)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrenceinstall: $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS) $(ROOTCONF)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence$(CONF): $(INFOS)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence $(RM) $@
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence $(CPP) envmodel.info > $@
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence$(POFILE): $(POFILES)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence $(CAT) $(POFILES) > $(POFILE)
5a48c9f76003a649e16de34fe6206e3b67b97afbBob Halley
5a48c9f76003a649e16de34fe6206e3b67b97afbBob Halley_msg: $(MSGDOMAIN) $(POFILE)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence $(RM) $(MSGDOMAIN)/$(POFILE)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence $(CP) $(POFILE) $(MSGDOMAIN)/$(POFILE)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence$(MSGDOMAIN):
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence $(INS.dir)
4b598d8ae578861d5f3fc1333c9f84c9c9c8be7cDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence$(LIBLINKS): FRC
4b598d8ae578861d5f3fc1333c9f84c9c9c8be7cDavid Lawrence $(RM) $@; $(SYMLINK) $(DYNLIB) $@
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence# include library targets
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrenceinclude $(SRC)/lib/Makefile.targ
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrenceinclude $(SRC)/cmd/picl/plugins/Makefile.targ
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence$(ROOTLINTDIR)/%: ../%
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence $(INS.file)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrencelint:
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence $(LINT.c) $(SRCS)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence$(SUBDIRS): FRC
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence @cd $@; pwd; $(MAKE) $(TARGET)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceFRC:
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence