Makefile.com revision 0bb073995ac5a95bd35f2dd790df1ea3d8c2d507
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye#
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye# CDDL HEADER START
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye#
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye# The contents of this file are subject to the terms of the
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye# Common Development and Distribution License (the "License").
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye# You may not use this file except in compliance with the License.
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye#
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye# or http://www.opensolaris.org/os/licensing.
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye# See the License for the specific language governing permissions
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye# and limitations under the License.
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye#
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye# When distributing Covered Code, include this CDDL HEADER in each
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye# If applicable, add the following below this CDDL HEADER, with the
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye# fields enclosed by brackets "[]" replaced with your own identifying
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye# information: Portions Copyright [yyyy] [name of copyright owner]
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye#
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye# CDDL HEADER END
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye#
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye#
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye# Use is subject to license terms.
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye#
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean YeLIBRARY = libfmd_agent.a
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean YeVERS = .1
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean YeLIBSRCS = fmd_agent.c fmd_agent_$(MACH).c
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean YeOBJECTS = $(LIBSRCS:%.c=%.o)
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Yeinclude ../../../Makefile.lib
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Yeinclude ../../Makefile.lib
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean YeSRCS = ../common/fmd_agent.c ../$(MACH)/fmd_agent_$(MACH).c
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean YeLIBS = $(DYNLIB) $(LINTLIB)
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean YeSRCDIR = ../common
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean YeCPPFLAGS += -I../common -I.
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean YeCFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean YeCFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS)
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean YeLDLIBS += -lnvpair -lumem -lc
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean YeLINTFLAGS = -msux
0bb073995ac5a95bd35f2dd790df1ea3d8c2d507Nick ToddLINTFLAGS64 = -msux -m64
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye$(LINTLIB) := LINTFLAGS = -nsvx
0bb073995ac5a95bd35f2dd790df1ea3d8c2d507Nick Todd$(LINTLIB) := LINTFLAGS64 = -nsvx -m64
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye.KEEP_STATE:
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Yepics/%.o: ../$(MACH)/%.c
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye $(COMPILE.c) -o $@ $<
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye $(POST_PROCESS_O)
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye%.ln: ../$(MACH)/%.c
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye $(LINT.c) -o $@ $<
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Yeall: $(LIBS)
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Yelint: $(LINTLIB) lintcheck
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Yeinclude ../../../Makefile.targ
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Yeinclude ../../Makefile.targ