Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
5cd4555ad444fd391002ae32450572054369fd42Rob Austein#
5cd4555ad444fd391002ae32450572054369fd42Rob Austein# CDDL HEADER START
4eb998928b9aef0ceda42d7529980d658138698aEvan Hunt#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# The contents of this file are subject to the terms of the
81f58902eb5a1c1ab22742c72bd6cf318acbc06aTinderbox User# Common Development and Distribution License, Version 1.0 only
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# (the "License"). You may not use this file except in compliance
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# with the License.
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# or http://www.opensolaris.org/os/licensing.
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# 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
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington#
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews# CDDL HEADER END
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews#
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley#
2f5461d23b4044b62d4d668732611909d902e54dJeremy C. Reed# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley# Use is subject to license terms.
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley#
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley# ident "%Z%%M% %I% %E% SMI"
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley#
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyLIBRARY= libpiclfrudata.a
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyVERS= .1
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyOBJECTS= fru_data.o
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley# include library definitions
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halleyinclude $(SRC)/Makefile.psm
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halleyinclude $(SRC)/lib/Makefile.lib
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinROOT_PLATFORM = $(USR_PLAT_DIR)/sun4u
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude $(SRC)/cmd/picl/plugins/Makefile.com
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark AndrewsLIBLINKS= libpiclfrudata.so
cfa2326b5c96a3a4c720262e077b2baf9fc27970Tinderbox User
81f58902eb5a1c1ab22742c72bd6cf318acbc06aTinderbox UserSRCS= $(OBJECTS:%.o=%.c)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinLIBS = $(DYNLIB)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinROOTLIBDIR := OWNER = root
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark AndrewsROOTLIBDIR := GROUP = sys
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCLEANFILES= $(LINTOUT) $(LINTLIB)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCLOBBERFILES += $(LIBLINKS)
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyCSTYLE = cstyle -p -P
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyHDRCHK = hdrchk
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyCPPFLAGS += -I$(SRC)/lib/libfru/include -I../lib/fruaccess
a769eca4e3b223866b01dc8f7a4dde8d9e49bab0Mark AndrewsCPPFLAGS += -I$(SRC)/cmd/picl/plugins/lib/picld_pluginutil
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyCPPFLAGS += -I$(SRC)/lib/libfruutils/
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyCFLAGS += $(CCVERBOSE)
431859b442e89281a0d42652200a8de0668bc6b9Evan HuntLDLIBS += -L$(SRC)/cmd/picl/plugins/sun4u/lib/fruaccess
b435b1ded3def3159f597953d21dffc1615cb250Brian WellingtonLDLIBS += -L$(SRC)/lib/libfruutils/$(MACH)
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyLDLIBS += -L$(SRC)/cmd/picl/plugins/common/frutree
9b6a170d22d61026d31bde87523f3320628b6ebcBrian WellingtonLDLIBS += -L$(ROOT)/usr/lib/picl/plugins
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyLDLIBS += -lc -lnvpair -lfruutils
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyLDLIBS += -lpicltree -lpiclfrutree -lfruaccess -lpicld_pluginutil
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyLDLIBS += -R/usr/platform/\$$PLATFORM/lib/picl/plugins:/usr/platform/\$$PLATFORM/lib:/usr/platform/sun4u/lib/picl/plugins:/usr/lib/picl/plugins:/usr/platform/sun4u/lib
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley.KEEP_STATE:
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinSUBDIRS=
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinall := TARGET= all
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininstall := TARGET= install
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinclean := TARGET= clean
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinclobber := TARGET= clobber
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinlint := TARGET= lint
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley_msg := TARGET= _msg
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
4eb998928b9aef0ceda42d7529980d658138698aEvan HuntPOFILE= $(LIBRARY:.a=.po)
4eb998928b9aef0ceda42d7529980d658138698aEvan HuntPOFILES= frudata.po
4eb998928b9aef0ceda42d7529980d658138698aEvan Hunt
122c58bd11790c7576cdb1c6fd8e4439d0d7f7a5Mark Andrewsall: $(LIBS) $(LIBLINKS) $(CONF)
4eb998928b9aef0ceda42d7529980d658138698aEvan Hunt
4eb998928b9aef0ceda42d7529980d658138698aEvan Huntinstall: $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS)
4eb998928b9aef0ceda42d7529980d658138698aEvan Hunt
4eb998928b9aef0ceda42d7529980d658138698aEvan Huntcheck-style :
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(CSTYLE) *.c *.h
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(HDRCHK) *.h
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein_msg: $(MSGDOMAIN) $(POFILE)
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley $(RM) $(MSGDOMAIN)/$(POFILE)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(CP) $(POFILE) $(MSGDOMAIN)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein$(MSGDOMAIN):
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(INS.dir)
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley$(POFILE): .WAIT $(POFILES)
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley $(RM) $@
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley $(CAT) $(POFILES) > $@
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley$(POFILES):
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley $(RM) messages.po
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews $(XGETTEXT) $(XGETFLAGS) *.[ch]* */*.[ch]*
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(RM) messages.po
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein$(LIBLINKS): FRC
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(RM) $@; $(SYMLINK) $(DYNLIB) $@
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# include library targets
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude $(SRC)/cmd/picl/plugins/Makefile.targ
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude $(SRC)/lib/Makefile.targ
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrewslint :
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley $(LINT.c) $(SRCS)
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein$(SUBDIRS): FRC
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein @cd $@; pwd; $(MAKE) $(TARGET)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFRC:
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein