Print this page
OS-1840 fmdump shall emit JSON (use library)
OS-1840 fmdump shall emit JSON
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/fm/fmdump/Makefile.com
+++ new/usr/src/cmd/fm/fmdump/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 #
↓ open down ↓ |
12 lines elided |
↑ open up ↑ |
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 # Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
23 +# Copyright (c) 2013, Joyent, Inc. All rights reserved.
23 24 #
24 25
25 26 .KEEP_STATE:
26 27 .SUFFIXES:
27 28
28 29 SRCS += fmdump.c nvlrender.c asru.c error.c fault.c scheme.c info.c
29 30 OBJS = $(SRCS:%.c=%.o)
30 31 LINTFILES = $(SRCS:%.c=%.ln)
31 32
32 33 PROG = fmdump
33 34 ROOTPROG = $(ROOTUSRSBIN)/$(PROG)
34 35
35 36 $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
36 37 CPPFLAGS += -I. -I../common -I../../include
37 38 CFLAGS += $(CTF_FLAGS) $(CCVERBOSE) $(XSTRCONST)
38 39 LDLIBS += -L$(ROOT)/usr/lib/fm -lfmd_log -lnvpair -ltopo -lfmd_msg
39 40 LDFLAGS += -R/usr/lib/fm
40 41 LINTFLAGS += -mnu
41 42 CERRWARN += -_gcc=-Wno-parentheses
42 43 CERRWARN += -_gcc=-Wno-uninitialized
43 44
44 45 .NO_PARALLEL:
45 46 .PARALLEL: $(OBJS) $(LINTFILES)
46 47
47 48 all: $(PROG)
48 49
49 50 $(PROG): $(OBJS)
50 51 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
51 52 $(CTFMERGE) -L VERSION -o $@ $(OBJS)
52 53 $(POST_PROCESS)
53 54
54 55 %.o: ../common/%.c
55 56 $(COMPILE.c) $<
56 57 $(CTFCONVERT_O)
57 58
58 59 %.o: %.c
59 60 $(COMPILE.c) $<
60 61 $(CTFCONVERT_O)
61 62
62 63 clean:
63 64 $(RM) $(OBJS) $(LINTFILES)
64 65
65 66 clobber: clean
66 67 $(RM) $(PROG)
67 68
68 69 %.ln: ../common/%.c
69 70 $(LINT.c) -c $<
70 71
71 72 %.ln: %.c
72 73 $(LINT.c) -c $<
73 74
74 75 lint: $(LINTFILES)
75 76 $(LINT) $(LINTFLAGS) $(LINTFILES)
76 77
77 78 install_h:
78 79
79 80 install: all $(ROOTPROG)
↓ open down ↓ |
47 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX