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]
23 # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
30 OBJS = $(SRCS:%.c=%.o)
33 ROOTLIBFM = $(ROOT)/usr/lib/fm
34 ROOTLIBNOTIFY = $(ROOT)/usr/lib/fm/notify
35 ROOTPROG = $(ROOTLIBNOTIFY)/$(PROG)
37 ROOTMANIFESTDIR = $(ROOTSVCSYSTEM)/fm
38 ROOTMANIFEST = $(ROOTMANIFESTDIR)/$(PROG).xml
39 ROOTNOTIFYPARAMS = $(ROOTMANIFESTDIR)/notify-params.xml
40 $(ROOTMANIFEST) := FILEMODE = 0444
41 $(ROOTNOTIFYPARAMS) := FILEMODE = 0444
43 $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
44 CPPFLAGS += -I. -I../common -I../../../../../lib/fm/libfmnotify/common
45 C99MODE = $(C99_ENABLE)
46 CFLAGS += $(CTF_FLAGS)
47 LDLIBS += -L$(ROOT)/usr/lib/fm -lnvpair -lfmevent -lfmd_msg -lfmnotify \
48 -lumem -lnetsnmp -lnetsnmpagent
49 LDFLAGS += -R/usr/lib/fm
51 CERRWARN += -Wno-parentheses
59 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
60 $(CTFMERGE) -L VERSION -o $@ $(OBJS)
86 $(ROOTMANIFESTDIR)/%.xml: ../common/%.xml
89 $(ROOTMANIFESTDIR)/notify-params.xml: ../../notify-params.xml
90 $(INS) -m $(FILEMODE) ../../notify-params.xml $@
94 install: all $(ROOTLIBNOTIFY) $(ROOTPROG) $(ROOTMANIFESTDIR) $(ROOTMANIFEST) $(ROOTNOTIFYPARAMS)