4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
30 include $(SRC)/cmd/Makefile.cmd
32 ROOT_EFT_ROOT= $(ROOT)/usr/lib/fm/eft
33 ROOT_COMMON_EFT_FILES= $(EFT_COMMON_FILES:%=$(ROOT_EFT_ROOT)/%)
34 USR_PLAT_FM_DIR= $(ROOT)/usr/platform/lib/fm
35 USR_PLAT_EFT_DIR= $(USR_PLAT_FM_DIR)/eft
36 USR_PLAT_EFT_FILES= $(EFT_PLAT_FILES:%=$(USR_PLAT_EFT_DIR)/%)
39 # Default target - specify before including Makefile.rootdirs which would
40 # otherwise provide a default
44 include $(SRC)/cmd/fm/eversholt/Makefile.rootdirs
48 all: $(ROOT_EFT_ROOT) $(USR_PLAT_EFT_FILES) $(ROOT_COMMON_EFT_FILES)
53 $(RM) $(EFT_PLAT_FILES) $(EFT_COMMON_FILES) \
54 $(USR_PLAT_EFT_FILES) $(ROOT_COMMON_EFT_FILES)
56 ESCFLAGS= -D_ESC -I$(ROOT)/usr/include
57 pciexrc.eft := ESCFLAGS += -I$(SRC)/uts/sun4v/io/px
59 %.eft: ../common/%.esc
60 $(ESC) $(ESCFLAGS) -o $@ $<
63 $(ESC) $(ESCFLAGS) -o $@ $<