Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/nscd/Makefile
+++ new/usr/src/cmd/nscd/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 (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 # Copyright (c) 2018, Joyent, Inc.
24 24 #
25 25 # Makefile for name service cache daemon
26 26 #
27 27
28 28 PROG= nscd
29 29 MANIFEST= name-service-cache.xml
30 30 SVCMETHOD= svc-nscd
31 31
32 32 include ../Makefile.cmd
33 33
34 34 ROOTMANIFESTDIR= $(ROOTSVCSYSTEM)
35 35
36 36 OBJS= server.o getpw.o getgr.o gethost.o getnode.o \
37 37 getether.o getrpc.o getproto.o getnet.o \
38 38 getbootp.o getauth.o getserv.o \
39 39 getnetmasks.o getprinter.o getproject.o \
40 40 getexec.o getprof.o getuser.o cache.o \
41 41 nscd_biggest.o nscd_wait.o \
42 42 nscd_init.o nscd_access.o nscd_cfgfile.o nscd_config.o \
43 43 nscd_dbimpl.o nscd_getentctx.o nscd_intaddr.o \
44 44 nscd_log.o nscd_nswconfig.o nscd_nswstate.o nscd_nswcfgst.o \
45 45 nscd_seqnum.o nscd_smfmonitor.o \
46 46 nscd_switch.o nscd_nswparse.o nscd_initf.o nscd_selfcred.o \
47 47 nscd_frontend.o nscd_admin.o nscd_door.o \
48 48 gettnrhtp.o gettnrhdb.o
49 49
50 50 CLOBBERFILES= nscd
51 51
52 52 SRCS= ${OBJS:%.o=%.c}
↓ open down ↓ |
52 lines elided |
↑ open up ↑ |
53 53
54 54 CFLAGS += $(CCVERBOSE)
55 55 CPPFLAGS += -D_REENTRANT -DSUN_THREADS \
56 56 -I../../lib/libc/port/gen -I../../lib/libc/inc \
57 57 -I../../lib/libsldap/common
58 58 LINTFLAGS += -erroff=E_GLOBAL_COULD_BE_STATIC2
59 59 LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
60 60 LINTFLAGS += -erroff=E_NAME_DEF_NOT_USED2
61 61
62 62 CERRWARN += -_gcc=-Wno-switch
63 -CERRWARN += -_gcc=-Wno-uninitialized
63 +CERRWARN += $(CNOWARN_UNINIT)
64 64 CERRWARN += -_gcc=-Wno-parentheses
65 65 CERRWARN += -_gcc=-Wno-type-limits
66 66
67 67 # not linted
68 68 SMATCH=off
69 69
70 70 # nscd interposes on many symbols, and must export others for its own dlsym()
71 71 # use, and dlsym() calls from libc. Itemizing the interfaces within a mapfile
72 72 # is error-prone, so establish the whole object as an interposer.
73 73 LDFLAGS += $(ZINTERPOSE)
74 74
75 75 # TCOV_FLAG= -ql
76 76
77 77 PROGLIBS= $(LDLIBS) -lresolv -lnsl -lsocket -lumem -lscf -lavl
78 78
79 79 # install macros and rule
80 80 #
81 81 ROOTPROG= ${ROOTUSRSBIN}/nscd
82 82
83 83 .KEEP_STATE:
84 84
85 85 all: $(PROG) $(NISPROG)
86 86
87 87 ${PROG}: ${OBJS}
88 88 ${LINK.c} ${OPT} -o $@ ${OBJS} ${PROGLIBS}
89 89 ${POST_PROCESS}
90 90
91 91 lint:
92 92 $(LINT.c) ${SRCS} ${PROGLIBS}
93 93
94 94 cstyle:
95 95 ${CSTYLE} ${SRCS}
96 96
97 97 install: all $(ROOTPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
98 98
99 99 check: $(CHKMANIFEST)
100 100
101 101 clean:
102 102 ${RM} ${OBJS}
103 103
104 104 ${ROOTUSRSBIN}/%: %
105 105 ${INS.file}
106 106
107 107 ${ROOTUSRLIB}/%: %
108 108 ${INS.file}
109 109
110 110 include ../Makefile.targ
↓ open down ↓ |
37 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX