dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / picl / plugins / sun4v / snmp / Makefile
blob2363f1ba74abc797587fe4a0bae297fba080d0eb
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 2007 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
26 # ident "%Z%%M% %I% %E% SMI"
28 # cmd/picl/plugins/sun4v/snmp/Makefile
31 LIBRARY= libsnmpplugin.a
32 VERS= .1
34 OBJS_DIR= pics
35 OBJECTS= snmpplugin.o
37 # Include library definitions
38 include $(SRC)/lib/Makefile.lib
39 include $(SRC)/Makefile.psm
40 include $(SRC)/cmd/picl/plugins/Makefile.com
42 SRCS= $(OBJECTS:%.o=%.c)
43 LIBS = $(DYNLIB)
45 ROOT_PLATFORM = $(USR_PLAT_DIR)/sun4v
46 ROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR)
48 CPPFLAGS += -I. -I../include -I$(SRC)/uts/common/sys
51 # Be careful when enabling SNMPPLUGIN_DEBUG. The debug log can quickly
52 # grow too large. NEVER stress/cycle test picl with SNMPPLUGIN_DEBUG
53 # enabled
55 #CPPFLAGS += -DSNMPPLUGIN_DEBUG
57 LDLIBS += -L$(SRC)/lib/libpicltree/$(MACH)
58 LDLIBS += -L$(SRC)/cmd/picl/plugins/sun4v/lib/snmp
59 LDLIBS += -L$(ROOT)/usr/lib/sparcv9
60 LDLIBS += -lc -lpicltree -lpiclsnmp
61 DYNFLAGS += -R/usr/platform/sun4v/lib
63 POFILE = snmpplugin_sun4v.po
64 POFILES = $(SRCS:%.c=%.po)
66 .KEEP_STATE:
68 all: $(LIBS) $(LIBLINKS)
70 install: all $(ROOTLIBDIR) $(ROOTLIBS) $(ROOTLINKS)
72 $(LIBLINKS): FRC
73 $(RM) $(LIBLINKS); $(SYMLINK) $(DYNLIB) $(LIBLINKS)
75 # Messages
76 _msg: $(MSGDOMAIN) $(POFILE)
77 $(RM) $(MSGDOMAIN)/$(POFILE)
78 $(CP) $(POFILE) $(MSGDOMAIN)/$(POFILE)
80 $(MSGDOMAIN):
81 $(INS.dir)
83 $(POFILE): $(POFILES)
84 $(CAT) $(POFILES) > $(POFILE)
86 # Include library targets
87 include $(SRC)/cmd/picl/plugins/Makefile.targ
88 include $(SRC)/lib/Makefile.targ
90 FRC: