xref: /onnv-gate/usr/src/lib/efcode/efdaemon/Makefile (revision 11996:91b62f7b8186)
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
52865Saa72041# Common Development and Distribution License (the "License").
62865Saa72041# 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*11996SThomas.Whitten@Sun.COM# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate# Use is subject to license terms.
240Sstevel@tonic-gate#
250Sstevel@tonic-gate# lib/efcode/efdaemon/Makefile
260Sstevel@tonic-gate
270Sstevel@tonic-gateinclude $(SRC)/cmd/Makefile.cmd
280Sstevel@tonic-gateinclude $(SRC)/cmd/Makefile.cmd.64
290Sstevel@tonic-gate
300Sstevel@tonic-gateEFCODEDIR = $(ROOT)/usr/lib/efcode
310Sstevel@tonic-gateEFCODEDIR64 = $(EFCODEDIR)/$(MACH64)
320Sstevel@tonic-gate
330Sstevel@tonic-gateCPPFLAGS += -DDEBUG -DFCODE_INTERNAL
340Sstevel@tonic-gateCPPFLAGS += -I ../include -I $(ROOT)/usr/platform/sun4u/include
350Sstevel@tonic-gate
360Sstevel@tonic-gatePROG	= efdaemon
370Sstevel@tonic-gateEFTARGETS += $(EFCODEDIR64)/$(PROG)
380Sstevel@tonic-gateEFTARGETS += $(EFCODEDIR)/efcode.sh
390Sstevel@tonic-gate
40*11996SThomas.Whitten@Sun.COMMFSTDIR = $(ROOT)/lib/svc/manifest/platform/sun4u
41*11996SThomas.Whitten@Sun.COMMFSTDIR_SUN4V = $(ROOT)/lib/svc/manifest/platform/sun4v
420Sstevel@tonic-gateMANIFEST = efdaemon.xml
432865Saa72041MANIFEST_SUN4V = efdaemon_sun4v.xml
440Sstevel@tonic-gateEFTARGETS += $(MFSTDIR)/$(MANIFEST)
452865Saa72041EFTARGETS += $(MFSTDIR_SUN4V)/$(MANIFEST_SUN4V)
460Sstevel@tonic-gate
470Sstevel@tonic-gate$(MFSTDIR)/$(MANIFEST) := FILEMODE = 0444
482865Saa72041$(MFSTDIR_SUN4V)/$(MANIFEST_SUN4V) := FILEMODE = 0444
490Sstevel@tonic-gate
500Sstevel@tonic-gateall:	$(PROG)
510Sstevel@tonic-gate
520Sstevel@tonic-gateclean:
530Sstevel@tonic-gate	-$(RM) $(PROG)
542865Saa72041	-$(RM) $(MFSTDIR)/$(MANIFEST)
552865Saa72041	-$(RM) $(MFSTDIR_SUN4V)/$(MANIFEST)
562865Saa72041	-$(RM) $(MFSTDIR_SUN4V)/$(MANIFEST_SUN4V)
570Sstevel@tonic-gate
580Sstevel@tonic-gate$(EFCODEDIR64)/%: %
590Sstevel@tonic-gate	$(INS.file)
600Sstevel@tonic-gate
610Sstevel@tonic-gate$(EFCODEDIR)/%.sh: %.sh
620Sstevel@tonic-gate	$(INS.file)
630Sstevel@tonic-gate
640Sstevel@tonic-gate$(MFSTDIR)/%: %
650Sstevel@tonic-gate	$(INS.file)
660Sstevel@tonic-gate
672865Saa72041$(MFSTDIR_SUN4V)/%: %
682865Saa72041	$(INS.file)
692865Saa72041
700Sstevel@tonic-gateinstall: all .WAIT $(EFTARGETS)
712865Saa72041	-$(MV) $(MFSTDIR_SUN4V)/$(MANIFEST_SUN4V) $(MFSTDIR_SUN4V)/$(MANIFEST)
720Sstevel@tonic-gate
730Sstevel@tonic-gatelint:	lint_PROG
740Sstevel@tonic-gate
750Sstevel@tonic-gate.KEEP_STATE:
760Sstevel@tonic-gate
770Sstevel@tonic-gateinclude $(SRC)/cmd/Makefile.targ
78