Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/dcs/sparc/sun4u/Makefile
+++ new/usr/src/cmd/dcs/sparc/sun4u/Makefile
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 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25 # Makefile definitions for Domain Configuration Server (DCS)
26 26 #
27 27
28 28 MANIFEST= dcs.xml
29 29
30 30 include ../../../Makefile.cmd
31 31 include ../../../../Makefile.psm
32 32
33 33 PROG= dcs
34 34
35 35 CLASS= 32
36 36
37 37 PLATFORM= sun4u
38 38
39 39 SVCMETHOD= svc-$(PROG)
40 40
41 41 #
42 42 # Set CONCURR_MODE to one of the following:
43 43 #
44 44 # MULTI_THR - multiple threads with _no_ i18n support*
45 45 # MULTI_PROC - multiple processes with i18n support
46 46 #
47 47 # * Currently, there is no per thread locale support in Solaris.
48 48 # Thus, multiple processes is the only way to fully support i18n.
49 49 #
50 50 CONCURR_MODE= MULTI_PROC
51 51
52 52 SRCS= dcs.c \
53 53 dcs_ses.c \
54 54 dcs_msg.c \
55 55 rdr_messages.c \
56 56 rsrc_info.c \
57 57 ri_init.c
58 58
59 59 HDRS= dcs.h \
60 60 rdr_messages.h \
61 61 rdr_param_types.h \
62 62 remote_cfg.h \
63 63 rsrc_info.h \
64 64 rsrc_info_impl.h \
65 65 $(USR_PSM_ISYS_DIR)/sbd_ioctl.h
66 66
67 67 OBJS= $(SRCS:%.c=%.o)
68 68
69 69 LINT_SRCS= $(SRCS)
70 70 LINT_FILES= $(LINT_SRCS:%.c=%.ln)
71 71
72 72 POFILES= dcs_msg.po
73 73
74 74 $(ROOTLIBPROG) := FILEMODE= 0755
75 75
76 76 ROOTMANIFESTDIR= $(ROOTSVCPLATFORMSUN4U)
77 77
78 78 #
79 79 # FLAGS:
80 80 #
81 81 MULTI_THR_FLAGS= -D_REENTRANT -DDCS_MULTI_THREAD
82 82
↓ open down ↓ |
82 lines elided |
↑ open up ↑ |
83 83 MULTI_PROC_FLAGS= -D__EXTENSIONS__
84 84
85 85 CPPFLAGS= -I$(USR_PSM_INCL_DIR) $(CPPFLAGS.master) \
86 86 $($(CONCURR_MODE)_FLAGS)
87 87
88 88 LINT_FLAGS= -c -Nlevel=4 -Ncheck $($(CONCURR_MODE)_FLAGS)
89 89
90 90 XGETFLAGS += -a -s -x $(PROG).xcl
91 91
92 92 CERRWARN += -_gcc=-Wno-parentheses
93 -CERRWARN += -_gcc=-Wno-uninitialized
93 +CERRWARN += $(CNOWARN_UNINIT)
94 94
95 95 #
96 96 # LIBRARIES:
97 97 #
98 98 MULTI_THR_LIBS= -D_REENTRANT
99 99
100 100 MULTI_PROC_LIBS=
101 101
102 102 LDLIBS += $($(CONCURR_MODE)_LIBS) \
103 103 -lsocket \
104 104 -lcfgadm \
105 105 -ldevinfo \
106 106 -lrcm \
107 107 -lnvpair \
108 108 -lkstat
109 109
110 110 .KEEP_STATE:
111 111
112 112
113 113 all: $(PROG)
114 114
115 115 $(PROG): $(OBJS) $(HDRS)
116 116 $(CC) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
117 117 $(POST_PROCESS)
118 118
119 119 install: all .WAIT $(ROOTLIBPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
120 120
121 121 check: $(CHKMANIFEST)
122 122
123 123 lint:
124 124 $(LINT) $(LINT_FLAGS) $(CPPFLAGS) $(LINT_SRCS)
125 125
126 126 clean:
127 127 $(RM) $(PROG) $(OBJS) $(LINT_FILES)
128 128
129 129 $(POFILE): $(POFILES)
130 130 $(RM) $(POFILE)
131 131 cat $(POFILES) > $(POFILE)
132 132
133 133 include ../../../Makefile.targ
134 134 include ../../../../Makefile.psm.targ
↓ open down ↓ |
31 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX