Mercurial > illumos > illumos-gate
annotate usr/src/cmd/svc/svccfg/Makefile @ 12979:ab9ae749152f
PSARC/2009/617 Software Events Notification Parameters CLI
PSARC/2009/618 snmp-notify: SNMP Notification Daemon for Software Events
PSARC/2009/619 smtp-notify: Email Notification Daemon for Software Events
PSARC/2010/225 fmd for non-global Solaris zones
PSARC/2010/226 Solaris Instance UUID
PSARC/2010/227 nvlist_nvflag(3NVPAIR)
PSARC/2010/228 libfmevent additions
PSARC/2010/257 sysevent_evc_setpropnvl and sysevent_evc_getpropnvl
PSARC/2010/265 FMRI and FMA Event Stabilty, 'ireport' category 1 event class, and the 'sw' FMRI scheme
PSARC/2010/278 FMA/SMF integration: instance state transitions
PSARC/2010/279 Modelling panics within FMA
PSARC/2010/290 logadm.conf upgrade
6392476 fmdump needs to pretty-print
6393375 userland ereport/ireport event generation interfaces
6445732 Add email notification agent for FMA and software events
6804168 RFE: Allow an efficient means to monitor SMF services status changes
6866661 scf_values_destroy(3SCF) will segfault if is passed NULL
6884709 Add snmp notification agent for FMA and software events
6884712 Add private interface to tap into libfmd_msg macro expansion capabilities
6897919 fmd to run in a non-global zone
6897937 fmd use of non-private doors is not safe
6900081 add a UUID to Solaris kernel image for use in crashdump identification
6914884 model panic events as a defect diagnosis in FMA
6944862 fmd_case_open_uuid, fmd_case_uuisresolved, fmd_nvl_create_defect
6944866 log legacy sysevents in fmd
6944867 enumerate svc scheme in topo
6944868 software-diagnosis and software-response fmd modules
6944870 model SMF maintenance state as a defect diagnosis in FMA
6944876 savecore runs in foreground for systems with zfs root and dedicated dump
6965796 Implement notification parameters for SMF state transitions and FMA events
6968287 SUN-FM-MIB.mib needs to be updated to reflect Oracle information
6972331 logadm.conf upgrade PSARC/2010/290
author | Gavin Maltby <gavin.maltby@oracle.com> |
---|---|
date | Fri, 30 Jul 2010 17:04:17 +1000 |
parents | 91b62f7b8186 |
children | 58bc6f85b799 |
rev | line source |
---|---|
0 | 1 # |
2 # CDDL HEADER START | |
3 # | |
4 # The contents of this file are subject to the terms of the | |
4271
dda1ded496b7
6455532 OSNet cleanup required in preparation for direct bindings
rie
parents:
0
diff
changeset
|
5 # Common Development and Distribution License (the "License"). |
dda1ded496b7
6455532 OSNet cleanup required in preparation for direct bindings
rie
parents:
0
diff
changeset
|
6 # You may not use this file except in compliance with the License. |
0 | 7 # |
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. | |
12 # | |
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] | |
18 # | |
19 # CDDL HEADER END | |
20 # | |
4271
dda1ded496b7
6455532 OSNet cleanup required in preparation for direct bindings
rie
parents:
0
diff
changeset
|
21 |
0 | 22 # |
12979
ab9ae749152f
PSARC/2009/617 Software Events Notification Parameters CLI
Gavin Maltby <gavin.maltby@oracle.com>
parents:
11996
diff
changeset
|
23 # Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. |
0 | 24 # |
25 | |
26 MYPROG = svccfg | |
27 PROG = $(MYPROG) | |
28 | |
29 SRCS = svccfg_main.c \ | |
30 svccfg_engine.c \ | |
31 svccfg_internal.c \ | |
32 svccfg_libscf.c \ | |
7887
b6618727fabf
PSARC/2008/350 SMF Template Extensions
Liane Praza <Liane.Praza@Sun.COM>
parents:
6543
diff
changeset
|
33 svccfg_tmpl.c \ |
0 | 34 svccfg_xml.c \ |
35 svccfg_help.c | |
36 | |
37 LNTS = $(SRCS:%.c=%.ln) \ | |
11996
91b62f7b8186
PSARC 2010/013 SMF Early Manifest Import
Tom Whitten <Thomas.Whitten@Sun.COM>
parents:
10889
diff
changeset
|
38 manifest_find.ln \ |
0 | 39 manifest_hash.ln |
40 | |
41 MYOBJS = $(SRCS:%.c=%.o) \ | |
42 svccfg_grammar.o \ | |
43 svccfg_lex.o \ | |
11996
91b62f7b8186
PSARC 2010/013 SMF Early Manifest Import
Tom Whitten <Thomas.Whitten@Sun.COM>
parents:
10889
diff
changeset
|
44 manifest_find.o \ |
12979
ab9ae749152f
PSARC/2009/617 Software Events Notification Parameters CLI
Gavin Maltby <gavin.maltby@oracle.com>
parents:
11996
diff
changeset
|
45 manifest_hash.o \ |
ab9ae749152f
PSARC/2009/617 Software Events Notification Parameters CLI
Gavin Maltby <gavin.maltby@oracle.com>
parents:
11996
diff
changeset
|
46 notify_params.o |
0 | 47 OBJS = $(MYOBJS) |
48 | |
49 POFILES = $(SRCS:%.c=%.po) \ | |
50 svccfg_grammar.po \ | |
51 svccfg_lex.po \ | |
11996
91b62f7b8186
PSARC 2010/013 SMF Early Manifest Import
Tom Whitten <Thomas.Whitten@Sun.COM>
parents:
10889
diff
changeset
|
52 ../common/manifest_find.po \ |
0 | 53 ../common/manifest_hash.po |
54 | |
55 include ../../Makefile.cmd | |
10889
8b6ec68049bd
6888456 zfs command line utilities should have CTF data
Jonathan Adams <Jonathan.Adams@Sun.COM>
parents:
10314
diff
changeset
|
56 include ../../Makefile.ctf |
0 | 57 |
58 POFILE = $(PROG)_all.po | |
59 | |
60 NATIVE_BUILD=$(POUND_SIGN) | |
61 $(NATIVE_BUILD)NOT_NATIVE=$(POUND_SIGN) | |
62 | |
63 $(NATIVE_BUILD)PROG = $(MYPROG:%=%-native) | |
64 $(NATIVE_BUILD)OBJS = $(MYOBJS:%.o=%-native.o) | |
65 | |
4947 | 66 # svccfg has a name clash with main() and libl.so.1. However, svccfg must |
67 # still export a number of "yy*" (libl) interfaces. Reduce all other symbols | |
68 # to local scope. | |
69 MAPFILES += $(MAPFILE.LEX) $(MAPFILE.NGB) | |
70 MAPOPTS = $(MAPFILES:%=-M%) | |
71 | |
0 | 72 MYCPPFLAGS = -I ../common -I/usr/include/libxml2 |
73 CPPFLAGS += $(MYCPPFLAGS) | |
4947 | 74 LDFLAGS += $(MAPOPTS) |
0 | 75 |
76 LFLAGS = -t | |
77 YFLAGS = -d | |
78 | |
79 CLOBBERFILES += svccfg_lex.c svccfg_grammar.c svccfg_grammar.h \ | |
80 $(MYPROG:%=%-native) | |
81 | |
12979
ab9ae749152f
PSARC/2009/617 Software Events Notification Parameters CLI
Gavin Maltby <gavin.maltby@oracle.com>
parents:
11996
diff
changeset
|
82 SVCCFG_EXTRA_LIBS = -lxml2 -lscf -ll -luutil -lumem -lmd5 -lnvpair |
0 | 83 $(NOT_NATIVE)SVCCFG_EXTRA_LIBS += -ltecla |
84 | |
85 LIBSCF = $(SRC)/lib/libscf | |
86 LIBTECLA = $(SRC)/lib/libtecla # just for the header | |
87 LIBUUTIL = $(SRC)/lib/libuutil | |
88 | |
89 debug := COPTFLAG = -g | |
90 | |
91 lint := LINTFLAGS = -mux | |
12979
ab9ae749152f
PSARC/2009/617 Software Events Notification Parameters CLI
Gavin Maltby <gavin.maltby@oracle.com>
parents:
11996
diff
changeset
|
92 lint := SVCCFG_EXTRA_LIBS = -lscf -ll -luutil -lumem -lmd5 -lnvpair |
0 | 93 |
94 LDLIBS += $(SVCCFG_EXTRA_LIBS) | |
95 | |
96 $(NATIVE_BUILD)CC = $(NATIVECC) | |
97 $(NATIVE_BUILD)LD = $(NATIVELD) | |
98 $(NATIVE_BUILD)CFLAGS = $(NATIVE_CFLAGS) | |
99 $(NATIVE_BUILD)CPPFLAGS = \ | |
100 -DNATIVE_BUILD \ | |
101 $(MYCPPFLAGS) \ | |
102 -I$(LIBSCF)/inc \ | |
103 -I$(LIBTECLA) \ | |
104 -I$(LIBUUTIL)/common | |
105 $(NATIVE_BUILD)LDFLAGS = | |
106 $(NATIVE_BUILD)LDLIBS = \ | |
107 -L$(LIBUUTIL)/native -R $(LIBUUTIL)/native \ | |
108 -L$(LIBSCF)/native -R $(LIBSCF)/native \ | |
10314
397d12f43c1b
4382889 devfsadm libraries are built incorrectly
Rod Evans <Rod.Evans@Sun.COM>
parents:
7887
diff
changeset
|
109 $(SVCCFG_EXTRA_LIBS) |
0 | 110 |
111 svccfg_lex.o svccfg_grammar.o := CCVERBOSE = | |
112 | |
113 svccfg_help.po := XGETFLAGS = -a | |
114 | |
115 .KEEP_STATE: | |
116 .PARALLEL: $(OBJS) $(LNTS) | |
117 | |
118 all debug: $(PROG) | |
119 | |
120 native: FRC | |
121 @cd $(LIBUUTIL)/native; pwd; $(MAKE) $(MFLAGS) install | |
122 @cd $(LIBSCF)/native; pwd; $(MAKE) $(MFLAGS) install | |
123 @NATIVE_BUILD= $(MAKE) $(MFLAGS) all | |
124 | |
4947 | 125 $(PROG): $(OBJS) $(MAPFILES) |
10889
8b6ec68049bd
6888456 zfs command line utilities should have CTF data
Jonathan Adams <Jonathan.Adams@Sun.COM>
parents:
10314
diff
changeset
|
126 $(LINK.c) -o $@ $(OBJS) $(LDLIBS) |
0 | 127 $(POST_PROCESS) |
128 | |
129 $(POFILE): $(POFILES) | |
130 cat $(POFILES) > $(POFILE) | |
131 | |
132 install: all $(ROOTUSRSBINPROG) | |
133 | |
134 svccfg_lex.c: svccfg.l svccfg_grammar.h | |
135 $(LEX) $(LFLAGS) svccfg.l > $@ | |
136 | |
137 svccfg_help.o: svccfg_grammar.h | |
138 svccfg_help-native.o: svccfg_grammar.h | |
139 | |
140 svccfg_grammar.h svccfg_grammar.c: svccfg.y | |
141 $(YACC) $(YFLAGS) svccfg.y | |
142 @$(MV) y.tab.h svccfg_grammar.h | |
143 @$(MV) y.tab.c svccfg_grammar.c | |
144 | |
145 clean: FRC | |
146 $(RM) $(MYOBJS) $(MYOBJS:%.o=%-native.o) $(LNTS) | |
147 | |
148 lint: $(LNTS) | |
149 $(LINT.c) $(LINTFLAGS) $(LNTS) $(LDLIBS) | |
150 | |
151 %-native.o: %.c | |
10889
8b6ec68049bd
6888456 zfs command line utilities should have CTF data
Jonathan Adams <Jonathan.Adams@Sun.COM>
parents:
10314
diff
changeset
|
152 $(COMPILE.c) -o $@ $< |
0 | 153 $(POST_PROCESS_O) |
154 | |
155 %-native.o: ../common/%.c | |
10889
8b6ec68049bd
6888456 zfs command line utilities should have CTF data
Jonathan Adams <Jonathan.Adams@Sun.COM>
parents:
10314
diff
changeset
|
156 $(COMPILE.c) -o $@ $< |
0 | 157 $(POST_PROCESS_O) |
158 | |
159 %.o: ../common/%.c | |
10889
8b6ec68049bd
6888456 zfs command line utilities should have CTF data
Jonathan Adams <Jonathan.Adams@Sun.COM>
parents:
10314
diff
changeset
|
160 $(COMPILE.c) $(OUTPUT_OPTION) $< |
0 | 161 $(POST_PROCESS_O) |
162 | |
163 %.ln: ../common/%.c | |
164 $(LINT.c) $(OUTPUT_OPTION) -c $< | |
165 | |
166 include ../../Makefile.targ | |
167 | |
168 FRC: |