xref: /titanic_52/usr/src/cmd/fm/eversholt/files/Makefile.com (revision 02e56f3f1bfc8d9977bafb8cb5202f576dcded27)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#ident	"%Z%%M%	%I%	%E% SMI"
27
28.SUFFIXES: .eft .esc
29
30ESC=$(SRC)/cmd/fm/eversholt/esc/$(MACH)/esc
31
32include $(SRC)/cmd/Makefile.cmd
33
34ROOT_EFT_ROOT=	$(ROOT)/usr/lib/fm/eft
35ROOT_COMMON_EFT_FILES= $(EFT_COMMON_FILES:%=$(ROOT_EFT_ROOT)/%)
36USR_PLAT_FM_DIR= $(ROOT)/usr/platform/$(EFT_PLAT)/lib/fm
37USR_PLAT_EFT_DIR= $(USR_PLAT_FM_DIR)/eft
38USR_PLAT_EFT_FILES= $(EFT_PLAT_FILES:%=$(USR_PLAT_EFT_DIR)/%)
39
40ROOT_USR_PLAT_EFT_SRCDIR = $(ROOT)/usr/platform/$(EFT_PLAT_SRC)/lib/fm/eft
41ROOT_USR_PLAT_EFT_TARGDIR = $(ROOT)/usr/platform/$(EFT_PLAT)/lib/fm/eft
42ROOT_EFT_FILE_SRC = $(EFT_PLAT_FILE:%=$(ROOT_USR_PLAT_EFT_SRCDIR)/%)
43ROOT_EFT_FILE_TARG = $(EFT_PLAT_FILE:%=$(ROOT_USR_PLAT_EFT_TARGDIR)/%)
44
45include $(SRC)/cmd/fm/eversholt/Makefile.rootdirs
46
47all:= FILEMODE =	0444
48
49install: all
50
51all: $(ROOT_EFT_ROOT) $(USR_PLAT_EFT_FILES) $(ROOT_COMMON_EFT_FILES) \
52	$(ROOT_EFT_FILE_TARG)
53
54install_h lint _msg:
55
56clean clobber:
57	$(RM) $(EFT_PLAT_FILES) $(EFT_COMMON_FILES) \
58	$(USR_PLAT_EFT_FILES) $(ROOT_COMMON_EFT_FILES) \
59	$(ROOT_EFT_FILE_TARG)
60
61%.eft: ../common/%.esc
62	$(ESC) -o $@ $<
63
64%.eft: %.esc
65	$(ESC) -o $@ $<
66
67$(ROOT_EFT_FILE_TARG): $$(@D)
68	$(RM) $@; $(LN) $(ROOT_EFT_FILE_SRC) $(ROOT_EFT_FILE_TARG)
69
70