Print this page
9852 enable ld(1) guidance and deflib assertions for the illumos build
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/fm/notify/snmp-notify/Makefile.com
+++ new/usr/src/cmd/fm/notify/snmp-notify/Makefile.com
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 #
23 23 # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
24 24 #
25 25
26 26 .KEEP_STATE:
27 27 .SUFFIXES:
28 28
29 29 SRCS += snmp-notify.c
30 30 OBJS = $(SRCS:%.c=%.o)
31 31 LINTFILES = $(SRCS:%.c=%.ln)
32 32
33 33 PROG = snmp-notify
34 34 ROOTLIBFM = $(ROOT)/usr/lib/fm
35 35 ROOTLIBNOTIFY = $(ROOT)/usr/lib/fm/notify
36 36 ROOTPROG = $(ROOTLIBNOTIFY)/$(PROG)
37 37
38 38 ROOTMANIFESTDIR = $(ROOTSVCSYSTEM)/fm
39 39 ROOTMANIFEST = $(ROOTMANIFESTDIR)/$(PROG).xml
40 40 ROOTNOTIFYPARAMS = $(ROOTMANIFESTDIR)/notify-params.xml
↓ open down ↓ |
40 lines elided |
↑ open up ↑ |
41 41 $(ROOTMANIFEST) := FILEMODE = 0444
42 42 $(ROOTNOTIFYPARAMS) := FILEMODE = 0444
43 43
44 44 $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
45 45 CPPFLAGS += -I. -I../common -I../../../../../lib/fm/libfmnotify/common
46 46 CSTD = $(CSTD_GNU99)
47 47 CFLAGS += $(CTF_FLAGS) $(CCVERBOSE) $(XSTRCONST)
48 48 LDLIBS += -L$(ROOT)/usr/lib/fm -lnvpair -lfmevent -lfmd_msg -lfmnotify \
49 49 -lumem -lnetsnmp -lnetsnmpagent
50 50 LDFLAGS += -R/usr/lib/fm
51 +ADJUNCT_LIBS = libnetsnmp.so libnetsnmpagent.so
51 52 LINTFLAGS += -mnu
52 53
53 54 CERRWARN += -_gcc=-Wno-parentheses
54 55
55 56 .NO_PARALLEL:
56 57 .PARALLEL: $(OBJS) $(LINTFILES)
57 58
58 59 all: $(PROG)
59 60
60 61 $(PROG): $(OBJS)
61 62 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
62 63 $(CTFMERGE) -L VERSION -o $@ $(OBJS)
63 64 $(POST_PROCESS)
64 65
65 66 %.o: ../common/%.c
66 67 $(COMPILE.c) $<
67 68 $(CTFCONVERT_O)
68 69
69 70 %.o: %.c
70 71 $(COMPILE.c) $<
71 72 $(CTFCONVERT_O)
72 73
73 74 clean:
74 75 $(RM) $(OBJS) $(LINTFILES)
75 76
76 77 clobber: clean
77 78 $(RM) $(PROG)
78 79
79 80 %.ln: ../common/%.c
80 81 $(LINT.c) -c $<
81 82
82 83 %.ln: %.c
83 84 $(LINT.c) -c $<
84 85
85 86 lint: $(LINTFILES)
86 87 $(LINT) $(LINTFLAGS) $(LINTFILES)
87 88
88 89 $(ROOTLIBNOTIFY):
89 90 $(INS.dir)
90 91
91 92 $(ROOTLIBNOTIFY)/%: %
92 93 $(INS.file)
93 94
94 95 $(ROOTMANIFESTDIR):
95 96 $(INS.dir)
96 97
97 98 $(ROOTMANIFESTDIR)/%.xml: ../common/%.xml
98 99 $(INS.file)
99 100
100 101 $(ROOTMANIFESTDIR)/notify-params.xml: ../../notify-params.xml
101 102 $(INS.file) ../../notify-params.xml
102 103
103 104 install_h:
104 105
105 106 install: all $(ROOTLIBNOTIFY) $(ROOTPROG) $(ROOTMANIFESTDIR) $(ROOTMANIFEST) $(ROOTNOTIFYPARAMS)
↓ open down ↓ |
45 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX