8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / picl / plugins / sun4v / lib / snmp / Makefile
blob5f57855e9b862b39d77da1d698772e2b44472de6
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
23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
28 # cmd/picl/plugins/sun4v/lib/snmp/Makefile
31 LIBRARY= libpiclsnmp.a
32 VERS= .1
33 OBJECTS= snmplib.o pdu.o asn1.o debug.o
35 # include library definitions
36 include $(SRC)/Makefile.psm
37 include $(SRC)/lib/Makefile.lib
39 ROOT_PLATFORM = $(USR_PLAT_DIR)/sun4v
41 include $(SRC)/cmd/picl/plugins/Makefile.com
43 SRCS= $(OBJECTS:%.o=%.c)
45 LIBS= $(DYNLIB)
47 ROOTLIBDIR = $(ROOT_PLATFORM)/lib
49 CLEANFILES= $(LINTOUT) $(LINTLIB)
50 CLOBBERFILES += $(LIBLINKS)
52 CPPFLAGS += -I. -I../../include -I$(SRC)/uts/sun4v
53 CPPFLAGS += -D_REENTRANT
56 # Be careful when enabling SNMP_DEBUG; the debug log can quickly grow
57 # very very large. Never run cycle stress test with SNMP_DEBUG enabled!
59 #CPPFLAGS += -DSNMP_DEBUG
62 # Do NOT uncomment the following two lines, unless you want to test
63 # the behavior of the library with an SNMP agent over network.
65 #CPPFLAGS += -DUSE_SOCKETS
66 #LDLIBS += -lsocket -lnsl
68 CFLAGS += $(CCVERBOSE) -DBIG_ENDIAN
69 LDLIBS += -lc -lnvpair
71 # It's OK not to build debug.c except when SNMP_DEBUG is enabled.
72 # Don't let lint complain about it.
74 ALWAYS_LINT_DEFS += -erroff=E_EMPTY_TRANSLATION_UNIT
76 .KEEP_STATE:
79 SUBDIRS=
81 all := TARGET= all
82 install := TARGET= install
83 clean := TARGET= clean
84 clobber := TARGET= clobber
85 lint := TARGET= lint
87 all: $(DYNLIB) $(LIBLINKS)
89 install: $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS)
91 $(LIBLINKS): FRC
92 $(RM) $@; $(SYMLINK) $(DYNLIB) $@
94 # include library targets
95 include $(SRC)/cmd/picl/plugins/Makefile.targ
96 include $(SRC)/lib/Makefile.targ
98 lint :
99 $(LINT.c) -m $(SRCS)
101 $(SUBDIRS): FRC
102 @cd $@; pwd; $(MAKE) $(TARGET)
104 FRC: