xref: /titanic_41/usr/src/lib/fm/libfmd_agent/Makefile.com (revision 0bb073995ac5a95bd35f2dd790df1ea3d8c2d507)
1e4b86885SCheng Sean Ye#
2e4b86885SCheng Sean Ye# CDDL HEADER START
3e4b86885SCheng Sean Ye#
4e4b86885SCheng Sean Ye# The contents of this file are subject to the terms of the
5e4b86885SCheng Sean Ye# Common Development and Distribution License (the "License").
6e4b86885SCheng Sean Ye# You may not use this file except in compliance with the License.
7e4b86885SCheng Sean Ye#
8e4b86885SCheng Sean Ye# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9e4b86885SCheng Sean Ye# or http://www.opensolaris.org/os/licensing.
10e4b86885SCheng Sean Ye# See the License for the specific language governing permissions
11e4b86885SCheng Sean Ye# and limitations under the License.
12e4b86885SCheng Sean Ye#
13e4b86885SCheng Sean Ye# When distributing Covered Code, include this CDDL HEADER in each
14e4b86885SCheng Sean Ye# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15e4b86885SCheng Sean Ye# If applicable, add the following below this CDDL HEADER, with the
16e4b86885SCheng Sean Ye# fields enclosed by brackets "[]" replaced with your own identifying
17e4b86885SCheng Sean Ye# information: Portions Copyright [yyyy] [name of copyright owner]
18e4b86885SCheng Sean Ye#
19e4b86885SCheng Sean Ye# CDDL HEADER END
20e4b86885SCheng Sean Ye#
21e4b86885SCheng Sean Ye#
22e4b86885SCheng Sean Ye# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23e4b86885SCheng Sean Ye# Use is subject to license terms.
24e4b86885SCheng Sean Ye#
25e4b86885SCheng Sean Ye
26e4b86885SCheng Sean YeLIBRARY = libfmd_agent.a
27e4b86885SCheng Sean YeVERS = .1
28e4b86885SCheng Sean Ye
29e4b86885SCheng Sean YeLIBSRCS = fmd_agent.c fmd_agent_$(MACH).c
30e4b86885SCheng Sean YeOBJECTS = $(LIBSRCS:%.c=%.o)
31e4b86885SCheng Sean Ye
32e4b86885SCheng Sean Yeinclude ../../../Makefile.lib
33e4b86885SCheng Sean Yeinclude ../../Makefile.lib
34e4b86885SCheng Sean Ye
35e4b86885SCheng Sean YeSRCS = ../common/fmd_agent.c ../$(MACH)/fmd_agent_$(MACH).c
36e4b86885SCheng Sean YeLIBS = $(DYNLIB) $(LINTLIB)
37e4b86885SCheng Sean Ye
38e4b86885SCheng Sean YeSRCDIR =	../common
39e4b86885SCheng Sean Ye
40e4b86885SCheng Sean YeCPPFLAGS += -I../common -I.
41e4b86885SCheng Sean YeCFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
42e4b86885SCheng Sean YeCFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS)
43e4b86885SCheng Sean YeLDLIBS += -lnvpair -lumem -lc
44e4b86885SCheng Sean Ye
45e4b86885SCheng Sean YeLINTFLAGS = -msux
46*0bb07399SNick ToddLINTFLAGS64 = -msux -m64
47e4b86885SCheng Sean Ye
48e4b86885SCheng Sean Ye$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
49e4b86885SCheng Sean Ye$(LINTLIB) := LINTFLAGS = -nsvx
50*0bb07399SNick Todd$(LINTLIB) := LINTFLAGS64 = -nsvx -m64
51e4b86885SCheng Sean Ye
52e4b86885SCheng Sean Ye.KEEP_STATE:
53e4b86885SCheng Sean Ye
54e4b86885SCheng Sean Yepics/%.o: ../$(MACH)/%.c
55e4b86885SCheng Sean Ye	$(COMPILE.c) -o $@ $<
56e4b86885SCheng Sean Ye	$(POST_PROCESS_O)
57e4b86885SCheng Sean Ye
58e4b86885SCheng Sean Ye%.ln: ../$(MACH)/%.c
59e4b86885SCheng Sean Ye	$(LINT.c) -o $@ $<
60e4b86885SCheng Sean Ye
61e4b86885SCheng Sean Yeall: $(LIBS)
62e4b86885SCheng Sean Ye
63e4b86885SCheng Sean Yelint: $(LINTLIB) lintcheck
64e4b86885SCheng Sean Ye
65e4b86885SCheng Sean Yeinclude ../../../Makefile.targ
66e4b86885SCheng Sean Yeinclude ../../Makefile.targ
67