comparison usr/src/cmd/savecore/Makefile.com @ 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 eb166ea6e74e
children 58bc6f85b799
comparison
equal deleted inserted replaced
12978:19d842faf8e4 12979:ab9ae749152f
17 # information: Portions Copyright [yyyy] [name of copyright owner] 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 # 18 #
19 # CDDL HEADER END 19 # CDDL HEADER END
20 # 20 #
21 # 21 #
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved. 22 # Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
23 # Use is subject to license terms.
24 # 23 #
25 24
26 PROG= savecore 25 PROG= savecore
27 SRCS= ../savecore.c ../../../uts/common/os/compress.c 26 SRCS= ../savecore.c ../../../uts/common/os/compress.c
28 OBJS= savecore.o compress.o 27 OBJS= savecore.o compress.o
29 28
30 include ../../Makefile.cmd 29 include ../../Makefile.cmd
31 30
31 C99MODE = $(C99_ENABLE)
32
32 CFLAGS += $(CCVERBOSE) 33 CFLAGS += $(CCVERBOSE)
33 CFLAGS64 += $(CCVERBOSE) 34 CFLAGS64 += $(CCVERBOSE)
34 CPPFLAGS += -D_LARGEFILE64_SOURCE=1 -DBZ_NO_STDIO -I$(SRC)/uts/common 35 CPPFLAGS += -D_LARGEFILE64_SOURCE=1 -DBZ_NO_STDIO -I$(SRC)/uts/common
36
37 #
38 # savecore is compiled with bits from $(SRC)/common/bzip2 and some function
39 # symbols there are defined as weak; if you leave them out of
40 # savecore.c it will compile, but trying to call that function
41 # will jump to 0. So we use -ztext to avoid that.
42 #
43 LDFLAGS += -ztext
35 44
36 BZIP2OBJS = bz2blocksort.o \ 45 BZIP2OBJS = bz2blocksort.o \
37 bz2compress.o \ 46 bz2compress.o \
38 bz2decompress.o \ 47 bz2decompress.o \
39 bz2randtable.o \ 48 bz2randtable.o \
50 $(POST_PROCESS) 59 $(POST_PROCESS)
51 60
52 clean: 61 clean:
53 $(RM) $(OBJS) $(BZIP2OBJS) 62 $(RM) $(OBJS) $(BZIP2OBJS)
54 63
55 lint: lint_SRCS 64 lint := CPPFLAGS += -I$(SRC)/common
65
66 #
67 # Linting the usr/src/common/bzip2 source produces reams of complaints.
68 # So we only lint regular SRCS, but we need to excuse two complaints
69 # related to bz_internal_error.
70 #
71
72 lint := BZ2LINTCOPOUTS = -erroff=E_NAME_USED_NOT_DEF2
73 lint := BZ2LINTCOPOUTS += -erroff=E_NAME_DEF_NOT_USED2
74
75 lint := LINTFLAGS += $(BZ2LINTCOPOUTS)
76 lint := LINTFLAGS64 += $(BZ2LINTCOPOUTS)
77
78 lint: $(LINTSRCS)
79 $(LINT.c) $(SRCS) $(LDLIBS)
56 80
57 include ../../Makefile.targ 81 include ../../Makefile.targ
58 82
59 %.o: ../%.c 83 %.o: ../%.c
60 $(COMPILE.c) -I$(SRC)/common $< 84 $(COMPILE.c) -I$(SRC)/common $<