xref: /titanic_51/usr/src/cmd/fm/schemes/Makefile.targ (revision 4e5b757fbcf21077677360be274461dcd9064106)
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
43%.o: ../$(MACH)/%.c
44	$(COMPILE.c) $<
45	$(CTFCONVERT_O)
46
47%.o: ../%.c
48	$(COMPILE.c) $<
49	$(CTFCONVERT_O)
50
51%.o: ../../common/%.c
52	$(COMPILE.c) $<
53	$(CTFCONVERT_O)
54
55clean:
56	$(RM) $(OBJS) $(LINTFILES)
57
58clobber: clean
59	$(RM) $(PROG)
60
61%.ln: %.c
62	$(LINT.c) -c $<
63
64%.ln: ../$(MACH)/%.c
65	$(LINT.c) -c $<
66
67%.ln: ../%.c
68	$(LINT.c) -c $<
69
70%.ln: ../../common/%.c
71	$(LINT.c) -erroff=E_BAD_PTR_CAST_ALIGN -v -c $<
72
73lint: $(LINTFILES)
74	$(LINT) $(LINTFLAGS) $(LINTFILES) $(LDLIBS)
75
76install_h:
77
78$(ROOT)/usr/lib/fm:
79	$(INS.dir)
80
81$(ROOT)/usr/lib/fm/fmd: $(ROOT)/usr/lib/fm
82	$(INS.dir)
83
84$(ROOT)/usr/lib/fm/fmd/schemes: $(ROOT)/usr/lib/fm/fmd
85	$(INS.dir)
86
87$(ROOT)/usr/lib/fm/fmd/schemes/$(MACH64): $(ROOT)/usr/lib/fm/fmd/schemes
88	$(INS.dir)
89
90$(ROOTPROG): $$(@D) $(PROG)
91	$(RM) $@; $(INS) -s -m 0555 -f $(@D) $(PROG)
92
93$(ROOTPROG64): $$(@D) $(PROG)
94	$(RM) $@; $(INS) -s -m 0555 -f $(@D) $(PROG)
95