1749f21d3Swesolows#
2749f21d3Swesolows# CDDL HEADER START
3749f21d3Swesolows#
4749f21d3Swesolows# The contents of this file are subject to the terms of the
5749f21d3Swesolows# Common Development and Distribution License (the "License").
6749f21d3Swesolows# You may not use this file except in compliance with the License.
7749f21d3Swesolows#
8749f21d3Swesolows# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9749f21d3Swesolows# or http://www.opensolaris.org/os/licensing.
10749f21d3Swesolows# See the License for the specific language governing permissions
11749f21d3Swesolows# and limitations under the License.
12749f21d3Swesolows#
13749f21d3Swesolows# When distributing Covered Code, include this CDDL HEADER in each
14749f21d3Swesolows# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15749f21d3Swesolows# If applicable, add the following below this CDDL HEADER, with the
16749f21d3Swesolows# fields enclosed by brackets "[]" replaced with your own identifying
17749f21d3Swesolows# information: Portions Copyright [yyyy] [name of copyright owner]
18749f21d3Swesolows#
19749f21d3Swesolows# CDDL HEADER END
20749f21d3Swesolows#
21749f21d3Swesolows#
220bb07399SNick Todd# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23749f21d3Swesolows# Use is subject to license terms.
24749f21d3Swesolows#
25*f3655454SJohn Levon# Copyright 2020 Joyent, Inc.
26*f3655454SJohn Levon#
27749f21d3Swesolows
28749f21d3SwesolowsLIBRARY = libfmd_snmp.a
29749f21d3SwesolowsVERS = .1
30749f21d3Swesolows
31749f21d3SwesolowsLIBSRCS = \
32749f21d3Swesolows	debug_subr.c	\
33749f21d3Swesolows	init.c		\
34749f21d3Swesolows	module.c	\
35749f21d3Swesolows	problem.c	\
36749f21d3Swesolows	resource.c	\
37749f21d3Swesolows	scheme.c
38749f21d3Swesolows
39749f21d3SwesolowsOBJECTS = $(LIBSRCS:%.c=%.o)
40749f21d3Swesolows
41749f21d3Swesolowsinclude ../../../Makefile.lib
42749f21d3Swesolowsinclude ../../Makefile.lib
43749f21d3Swesolows
44749f21d3SwesolowsSRCS = $(LIBSRCS:%.c=../common/%.c)
455801b0f0SToomas SoomeLIBS = $(DYNLIB)
46749f21d3Swesolows
47f808c858SrafSRCDIR =	../common
48749f21d3Swesolows
49bd0ce624SYuri PankovCSTD= $(CSTD_GNU99)
50e3dc7d16SDan McDonald
51fc3af78aSBasabi BhattacharyaCPPFLAGS += -I../common -I.
52749f21d3Swesolows$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
53749f21d3SwesolowsCFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
54749f21d3SwesolowsCFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS)
55749f21d3Swesolows
56*f3655454SJohn LevonSNMPLIBS = -lnetsnmp -lnetsnmpagent
57*f3655454SJohn LevonNATIVE_LIBS += libnetsnmp.so libnetsnmpagent.so
5830698f33Swesolows
59749f21d3SwesolowsLDLIBS += $(MACH_LDLIBS)
601fe76c0bSwesolowsLDLIBS += -lfmd_adm -luutil -lnvpair -ltopo
6130698f33SwesolowsLDLIBS += $(SNMPLIBS)
6230698f33SwesolowsLDLIBS += -lc
63749f21d3Swesolows
64749f21d3Swesolows.KEEP_STATE:
65749f21d3Swesolows
66749f21d3Swesolowsall: $(LIBS)
67749f21d3Swesolows
68749f21d3Swesolowspics/%.o: ../$(MACH)/%.c
69749f21d3Swesolows	$(COMPILE.c) -o $@ $<
70749f21d3Swesolows	$(POST_PROCESS_O)
71749f21d3Swesolows
72749f21d3Swesolows%.o: ../common/%.c
73749f21d3Swesolows	$(COMPILE.c) -o $@ $<
74749f21d3Swesolows	$(POST_PROCESS_O)
75749f21d3Swesolows
76749f21d3Swesolowsinclude ../../../Makefile.targ
77749f21d3Swesolowsinclude ../../Makefile.targ
78