move 32-bit libs to lib/i386 subdirs & 64-bit libs to lib/
[unleashed.git] / usr / src / cmd / fm / schemes / Makefile.targ
blob5279d6e21e8aba5391cef5241a3bfa9e6a79dcbe
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
23 # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24 # Use is subject to license terms.
26 # ident "%Z%%M% %I%     %E% SMI"
29 all: $(PROG)
31 .NO_PARALLEL:
32 .PARALLEL: $(OBJS)
34 $(PROG): $(OBJS) $(MAPFILE)
35         $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
36         $(CTFMERGE) -L VERSION -o $@ $(OBJS)
37         $(POST_PROCESS_SO)
39 %.o: %.c
40         $(COMPILE.c) $<
41         $(CTFCONVERT_O)
43 %.o: ../$(MACH)/%.c
44         $(COMPILE.c) $<
45         $(CTFCONVERT_O)
47 %.o: ../%.c
48         $(COMPILE.c) $<
49         $(CTFCONVERT_O)
51 %.o: ../../common/%.c
52         $(COMPILE.c) $<
53         $(CTFCONVERT_O)
55 clean:
56         $(RM) $(OBJS)
58 clobber: clean
59         $(RM) $(PROG)
61 install_h:
63 $(ROOT)/usr/lib/fm:
64         $(INS.dir)
66 $(ROOT)/usr/lib/fm/fmd: $(ROOT)/usr/lib/fm
67         $(INS.dir)
69 $(ROOT)/usr/lib/fm/fmd/schemes: $(ROOT)/usr/lib/fm/fmd
70         $(INS.dir)
72 $(ROOT)/usr/lib/fm/fmd/schemes/$(MACH32): $(ROOT)/usr/lib/fm/fmd/schemes
73         $(INS.dir)
75 $(ROOTPROG): $$(@D) $(PROG)
76         $(INS) -m 0555 $(PROG) $@
78 $(ROOTPROG64): $$(@D) $(PROG)
79         $(INS) -m 0555 $(PROG) $@