xref: /onnv-gate/usr/src/cmd/picl/plugins/sun4u/chicago/envd/Makefile (revision 10207:87c40ea3fc4b)
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/chicago/envd/Makefile
260Sstevel@tonic-gate#
270Sstevel@tonic-gateinclude	$(SRC)/Makefile.psm
280Sstevel@tonic-gate
290Sstevel@tonic-gateLIBRARY=	libpiclenvd.a
300Sstevel@tonic-gateVERS=		.1
310Sstevel@tonic-gate
320Sstevel@tonic-gateOBJECTS=	piclenvd.o piclenvsetup.o
330Sstevel@tonic-gate
340Sstevel@tonic-gate# include library definitions
350Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.lib
360Sstevel@tonic-gate
370Sstevel@tonic-gateROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,A70
380Sstevel@tonic-gate
390Sstevel@tonic-gateinclude	$(SRC)/cmd/picl/plugins/Makefile.com
400Sstevel@tonic-gate
410Sstevel@tonic-gateCPPFLAGS +=	-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
420Sstevel@tonic-gateCPPFLAGS +=	-I$(SRC)/uts/sun4u/ -I$(SRC)/uts/common/
430Sstevel@tonic-gateCPPFLAGS +=	-I$(SRC)/uts/sun4u/chicago
440Sstevel@tonic-gateCPPFLAGS +=     -I$(SRC)/cmd/picl/plugins/lib/picld_pluginutil
450Sstevel@tonic-gate
460Sstevel@tonic-gateSRCS=		$(OBJECTS:%.o=%.c)
470Sstevel@tonic-gate
480Sstevel@tonic-gateLIBS =		$(DYNLIB)
490Sstevel@tonic-gate
500Sstevel@tonic-gateROOTLIBDIR	= $(ROOT_PLAT_PLUGINDIR)
510Sstevel@tonic-gate
520Sstevel@tonic-gateCONF=           envmodel.conf
530Sstevel@tonic-gateROOTCONF=       $(CONF:%=$(ROOTLIBDIR)/%)
540Sstevel@tonic-gate$(ROOTCONF)	:= FILEMODE = 0644
550Sstevel@tonic-gateINFOS=          envmodel.info
560Sstevel@tonic-gate
570Sstevel@tonic-gateLINTSRC =	$(LINTLIB:%.ln=%)
580Sstevel@tonic-gateROOTLINTDIR =	$(ROOTLIBDIR)
590Sstevel@tonic-gateROOTLINT =	$(LINTSRC:%=$(ROOTLINTDIR)/%)
600Sstevel@tonic-gate
610Sstevel@tonic-gateCLEANFILES=	$(LINTOUT) $(LINTLIB)
620Sstevel@tonic-gate
630Sstevel@tonic-gateCFLAGS +=	$(CCVERBOSE)
640Sstevel@tonic-gateDYNFLAGS +=	-R/usr/platform/\$$PLATFORM/lib/picl/plugins:/usr/platform/sun4u/lib/picl/plugins:/usr/lib/picl/plugins
650Sstevel@tonic-gateLDLIBS +=	-L$(SRC)/lib/libpicltree/$(MACH)
660Sstevel@tonic-gateLDLIBS +=	-L$(SRC)/cmd/picl/plugins/common/devtree
670Sstevel@tonic-gateLDLIBS +=       -L$(SRC)/cmd/picl/plugins/lib/picld_pluginutil/$(MACH)
680Sstevel@tonic-gateLDLIBS +=	-L$(ROOT)/usr/lib/picl/plugins -lpicldevtree -lpicltree
690Sstevel@tonic-gateLDLIBS +=       -lpicld_pluginutil
700Sstevel@tonic-gateLDLIBS +=	-ldevinfo -lc
710Sstevel@tonic-gate
720Sstevel@tonic-gate.KEEP_STATE:
730Sstevel@tonic-gate
740Sstevel@tonic-gateSUBDIRS=
750Sstevel@tonic-gate
760Sstevel@tonic-gatePOFILE =	piclenvd_chicago.po
770Sstevel@tonic-gatePOFILES =	$(SRCS:%.c=%.po)
780Sstevel@tonic-gate
790Sstevel@tonic-gateall :=		TARGET= all
800Sstevel@tonic-gateinstall :=	TARGET= install
810Sstevel@tonic-gateclean :=	TARGET= clean
820Sstevel@tonic-gateclobber :=	TARGET= clobber
830Sstevel@tonic-gatelint :=		TARGET= lint
840Sstevel@tonic-gate_msg :=		TARGET= _msg
850Sstevel@tonic-gate
860Sstevel@tonic-gateall: $(LIBS) $(CONF) $(LIBLINKS)
870Sstevel@tonic-gate
880Sstevel@tonic-gateinstall:	$(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS) $(ROOTCONF)
890Sstevel@tonic-gate
900Sstevel@tonic-gate$(CONF): $(INFOS)
910Sstevel@tonic-gate	$(RM) $@
920Sstevel@tonic-gate	$(CPP) envmodel.info > $@
930Sstevel@tonic-gate
940Sstevel@tonic-gate
950Sstevel@tonic-gate$(POFILE):	$(POFILES)
960Sstevel@tonic-gate	$(CAT) $(POFILES) > $(POFILE)
970Sstevel@tonic-gate
980Sstevel@tonic-gate_msg:	$(MSGDOMAIN) $(POFILE)
990Sstevel@tonic-gate	$(RM) $(MSGDOMAIN)/$(POFILE)
1000Sstevel@tonic-gate	$(CP) $(POFILE) $(MSGDOMAIN)/$(POFILE)
1010Sstevel@tonic-gate
1020Sstevel@tonic-gate$(MSGDOMAIN):
1030Sstevel@tonic-gate	$(INS.dir)
1040Sstevel@tonic-gate
1050Sstevel@tonic-gate
1060Sstevel@tonic-gate$(LIBLINKS):	FRC
1070Sstevel@tonic-gate	$(RM) $@; $(SYMLINK) $(DYNLIB) $@
1080Sstevel@tonic-gate
1090Sstevel@tonic-gate# include library targets
1100Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.targ
1110Sstevel@tonic-gateinclude	$(SRC)/cmd/picl/plugins/Makefile.targ
1120Sstevel@tonic-gate
1130Sstevel@tonic-gate$(ROOTLINTDIR)/%: ../%
1140Sstevel@tonic-gate	$(INS.file)
1150Sstevel@tonic-gate
1160Sstevel@tonic-gatelint:
1170Sstevel@tonic-gate	$(LINT.c) $(SRCS)
1180Sstevel@tonic-gate
1190Sstevel@tonic-gate$(SUBDIRS): FRC
1200Sstevel@tonic-gate	@cd $@; pwd; $(MAKE) $(TARGET)
1210Sstevel@tonic-gate
1220Sstevel@tonic-gateFRC:
123