xref: /titanic_44/usr/src/cmd/fm/schemes/Makefile.targ (revision 28167c24ba5be8b7c1d05e02d053f4a55cd21cc9)
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 (the "License").
6# You may not use this file except in compliance with the License.
7#
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.
12#
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]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29all: $(PROG)
30
31.NO_PARALLEL:
32.PARALLEL: $(OBJS) $(LINTFILES)
33
34$(PROG): $(OBJS) $(MAPFILE)
35	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
36	$(CTFMERGE) -L VERSION -o $@ $(OBJS)
37	$(POST_PROCESS_SO)
38
39%.o: ../%.c
40	$(COMPILE.c) $<
41	$(CTFCONVERT_O)
42
43clean:
44	$(RM) $(OBJS) $(LINTFILES)
45
46clobber: clean
47	$(RM) $(PROG)
48
49%.ln: ../%.c
50	$(LINT.c) -c $<
51
52lint: $(LINTFILES)
53	$(LINT) $(LINTFLAGS) $(LINTFILES) $(LDLIBS)
54
55install_h:
56
57$(ROOT)/usr/lib/fm:
58	$(INS.dir)
59
60$(ROOT)/usr/lib/fm/fmd: $(ROOT)/usr/lib/fm
61	$(INS.dir)
62
63$(ROOT)/usr/lib/fm/fmd/schemes: $(ROOT)/usr/lib/fm/fmd
64	$(INS.dir)
65
66$(ROOT)/usr/lib/fm/fmd/schemes/$(MACH64): $(ROOT)/usr/lib/fm/fmd/schemes
67	$(INS.dir)
68
69$(ROOTPROG): $$(@D) $(PROG)
70	$(RM) $@; $(INS) -s -m 0555 -f $(@D) $(PROG)
71
72$(ROOTPROG64): $$(@D) $(PROG)
73	$(RM) $@; $(INS) -s -m 0555 -f $(@D) $(PROG)
74