move 32-bit libs to lib/i386 subdirs & 64-bit libs to lib/
[unleashed.git] / usr / src / cmd / fm / fmadm / Makefile.com
blob2438aece6d24bfff446b7437c808faf9f3e84ed0
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
22 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23 # Use is subject to license terms.
26 .KEEP_STATE:
27 .SUFFIXES:
29 SRCS += fmadm.c \
30         config.c \
31         faulty.c \
32         gc.c \
33         load.c \
34         reset.c
36 OBJS = $(SRCS:%.c=%.o)
38 PROG = fmadm
39 ROOTPROG = $(ROOTUSRSBIN)/$(PROG)
41 $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
42 CPPFLAGS += -I. -I../common
43 CFLAGS64 += $(CTF_FLAGS)
44 LDLIBS64 += -L$(ROOT)/usr/lib/fm -lfmd_adm -lfmd_msg
45 LDLIBS64 += -lnvpair -ltopo
46 LDFLAGS64 += -R/usr/lib/fm
48 .NO_PARALLEL:
49 .PARALLEL: $(OBJS)
51 all: $(PROG)
53 $(PROG): $(OBJS)
54         $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
55         $(CTFMERGE) -L VERSION -o $@ $(OBJS)
56         $(POST_PROCESS)
58 %.o: ../common/%.c
59         $(COMPILE.c) $<
60         $(CTFCONVERT_O)
62 %.o: %.c
63         $(COMPILE.c) $<
64         $(CTFCONVERT_O)
66 clean:
67         $(RM) $(OBJS)
69 clobber: clean
70         $(RM) $(PROG)
72 install_h:
74 install: all $(ROOTPROG)