Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/syslogd/Makefile.com
+++ new/usr/src/cmd/syslogd/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 #
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 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 22 # Use is subject to license terms.
23 23 #
24 24 # Copyright (c) 2018, Joyent, Inc.
25 25
26 26 PROG= syslogd
27 27 ROTATESCRIPT= newsyslog
↓ open down ↓ |
27 lines elided |
↑ open up ↑ |
28 28 CONFIGFILE= syslog.conf
29 29 TXTS= syslog.conf
30 30 PRODUCT= $(PROG) $(ROTATESCRIPT)
31 31 OBJS= syslogd.o queue.o list.o conf.o
32 32 SRCS= $(OBJS:%.o=../%.c)
33 33 LLOBJS= $(OBJS:%.o=%.ll)
34 34
35 35 include ../../Makefile.cmd
36 36
37 37 $(PROG) lint := LDLIBS += -lscf -lnsl
38 -CERRWARN += -_gcc=-Wno-uninitialized
38 +CERRWARN += $(CNOWARN_UNINIT)
39 39
40 40 # not linted
41 41 SMATCH=off
42 42
43 43 CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
44 44 CFLAGS += -DNDEBUG
45 45
46 46 # there's some extra utility code defined but not used.
47 47 LINTFLAGS += -erroff=E_NAME_DEF_NOT_USED2
48 48
49 49 VARSYSLOG= syslog
50 50 VARAUTHLOG= authlog
51 51 ROOTVARLOGD= $(ROOT)/var/log
52 52
53 53 ROOTETCCONFIG= $(CONFIGFILE:%=$(ROOTETC)/%)
54 54 ROOTLIBROTATE= $(ROTATESCRIPT:%=$(ROOTLIB)/%)
55 55 ROOTVARSYSLOG= $(VARSYSLOG:%=$(ROOTVARLOGD)/%)
56 56 ROOTVARAUTHLOG= $(VARAUTHLOG:%=$(ROOTVARLOGD)/%)
57 57
58 58 $(ROOTUSRSBINPROG) := FILEMODE = 0555
59 59 $(ROOTUSRLIBROTATE) := FILEMODE = 0555
60 60 $(ROOTETCCONFIG) := FILEMODE = 0644
61 61 $(ROOTVARSYSLOG) := FILEMODE = 0644
62 62 $(ROOTVARAUTHLOG) := FILEMODE = 0600
63 63
64 64 $(ROOTVARLOGD)/% : %
65 65 $(INS.file)
66 66
67 67 $(ROOTETC)/%: ../%
68 68 $(INS.file)
69 69
70 70 $(ROOTLIB)/%: ../%
71 71 $(INS.file)
72 72
73 73 .KEEP_STATE:
74 74
75 75 .SUFFIXES: $(SUFFIXES) .ll
76 76
77 77 .c.ll:
78 78 $(CC) $(CFLAGS) $(CPPFLAGS) -Zll -o $@ $<
79 79
80 80 .PARALLEL: $(OBJS)
81 81
82 82
83 83 $(VARSYSLOG) $(VARAUTHLOG):
84 84 $(ECHO) '\c' > $@
85 85
86 86 %.o: ../%.c
87 87 $(COMPILE.c) $<
88 88
89 89 %.ll: ../%.c
90 90 $(CC) $(CFLAGS) $(CPPFLAGS) -Zll -o $@ $<
91 91
92 92 syslogd: $(OBJS)
93 93 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
94 94 $(POST_PROCESS)
95 95
96 96 logfiles: $(ROOTVARSYSLOG) $(ROOTVARAUTHLOG)
97 97
98 98 clean:
99 99 $(RM) $(OBJS) $(LLOBJS) $(VARSYSLOG) $(VARAUTHLOG)
100 100
101 101 lint: lint_SRCS
102 102
103 103 lock_lint: $(LLOBJS)
104 104
105 105 include ../../Makefile.targ
↓ open down ↓ |
57 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX