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