xref: /illumos-gate/usr/src/lib/fm/libfmd_snmp/Makefile.com (revision 80ab886d233f514d54c2a6bdeb9fdfd951bd6881)
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
29
30LIBRARY = libfmd_snmp.a
31VERS = .1
32
33LIBSRCS = \
34	debug_subr.c	\
35	init.c		\
36	module.c	\
37	problem.c	\
38	resource.c	\
39	scheme.c
40
41OBJECTS = $(LIBSRCS:%.c=%.o)
42
43include ../../../Makefile.lib
44include ../../Makefile.lib
45
46SRCS = $(LIBSRCS:%.c=../common/%.c)
47LIBS = $(DYNLIB) $(LINTLIB)
48
49SRCDIR = ../common
50SPECMAPFILE = $(MAPDIR)/mapfile
51
52CPPFLAGS += -I../common -I. -I/usr/sfw/include
53$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
54CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
55CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS)
56
57LDLIBS += $(MACH_LDLIBS)
58LDLIBS += -lfmd_adm -luutil -lnvpair
59LDLIBS += -L$(SFWLIBDIR) -lnetsnmp -lnetsnmphelpers -lnetsnmpagent -lc
60DYNFLAGS += -R$(SFWLIBDIR)
61
62LINTFLAGS = -msux
63LINTFLAGS64 = -msux -Xarch=$(MACH64:sparcv9=v9)
64
65$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
66$(LINTLIB) := LINTFLAGS = -nsvx
67$(LINTLIB) := LINTFLAGS64 = -nsvx -Xarch=$(MACH64:sparcv9=v9)
68
69.KEEP_STATE:
70
71all: $(LIBS)
72
73lint: $(LINTLIB) lintcheck
74
75pics/%.o: ../$(MACH)/%.c
76	$(COMPILE.c) -o $@ $<
77	$(POST_PROCESS_O)
78
79%.o: ../common/%.c
80	$(COMPILE.c) -o $@ $<
81	$(POST_PROCESS_O)
82
83include ../../../Makefile.targ
84include ../../Makefile.targ
85