Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/print/bsd-sysv-commands/Makefile
+++ new/usr/src/cmd/print/bsd-sysv-commands/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 # Copyright (c) 2018, Joyent, Inc.
26 26
27 27 include ../Makefile.sp
28 28
29 29 UCBPROGS = lpr lpq lprm lpc
30 30 BINPROGS = lp lpstat cancel enable disable $(UCBPROGS)
31 31 SBINPROGS = accept reject lpmove
32 32
33 33 LIBPRINTPROGS = in.lpd
34 34
35 35 LIBLPPROGS = $(BINPROGS) $(SBINPROGS)
36 36
37 37
38 38 OBJS = $(BINPROGS:=.o) $(SBINPROGS:=.o) $(LIBPRINTPROGS:=.o) common.o
39 39
40 40 ROOTLIBLPBIN=$(ROOTLIBLP)/bin
41 41
42 42 ROOTBINPROGS = $(BINPROGS:%=$(ROOTBIN)/%)
43 43 ROOTUSRSBINPROGS = $(SBINPROGS:%=$(ROOTUSRSBIN)/%)
44 44 ROOTLIBPRINTPROGS = $(LIBPRINTPROGS:%=$(ROOTLIBPRINT)/%)
45 45 ROOTLIBLPPROGS = $(LIBLPPROGS:%=$(ROOTLIBLPBIN)/%)
46 46
47 47
48 48 FILEMODE = 0555
49 49
50 50 include ../../Makefile.cmd
51 51
52 52 MANIFEST= rfc1179.xml
53 53 ROOTMANIFESTDIR= $(ROOTSVCAPPLICATIONPRINT)
54 54 $(ROOTMANIFEST) := FILEMODE= 444
55 55
56 56 LPLIB = $(SRC)/cmd/lp/lib
57 57 LIBLP = $(LPLIB)/lp/liblp.a
↓ open down ↓ |
57 lines elided |
↑ open up ↑ |
58 58 CFLAGS += $(CCVERBOSE)
59 59 CPPFLAGS += -I.
60 60 CPPFLAGS += -I../../../lib/print/libpapi-common/common
61 61 CPPFLAGS += -I$(ROOT)/usr/include
62 62 CPPFLAGS += -I../../lp/include
63 63 LDLIBS += $(LIBLP) -lpapi -lc
64 64 in.lpd:= CFLAGS += -DSOLARIS_PRIVATE_POST_0_9
65 65 in.lpd:= LDLIBS += -lnsl -lsocket
66 66
67 67 CERRWARN += -_gcc=-Wno-unused-variable
68 -CERRWARN += -_gcc=-Wno-uninitialized
68 +CERRWARN += $(CNOWARN_UNINIT)
69 69
70 70 # not linted
71 71 SMATCH=off
72 72
73 73 all: $(BINPROGS) $(SBINPROGS)
74 74
75 75 # each program needs common.o as well
76 76 $(BINPROGS) $(SBINPROGS) $(LIBPRINTPROGS): $(BINPROGS:%=%.c) $(SBINPROGS:%=%.c) $(LIBPRINTPROGS:%=%.c) common.o
77 77 $(LINK.c) -o $@ $@.c common.o $(LDLIBS)
78 78 $(POST_PROCESS)
79 79
80 80 # ucb links (lptest is handled in usr/src/cmd/lp/cmd/Makefile)
81 81 ROOTUSRUCB = $(ROOT)/usr/ucb
82 82 ROOTUCBSYMLINKS = $(UCBPROGS:%=$(ROOTUSRUCB)/%)
83 83 $(ROOTUSRUCB)/%: $(ROOTUSRUCB) %
84 84
85 85 $(ROOTLIBLPBIN)/%: %
86 86 $(INS.file)
87 87
88 88 $(ROOTUCBSYMLINKS):
89 89 $(RM) $@; $(SYMLINK) ../bin/$(@F) $@
90 90
91 91 # usr/lib links
92 92 ROOTUSRLIBSYMLINKS = $(SBINPROGS:%=$(ROOTLIB)/%)
93 93 $(ROOTLIB)/%: $(ROOTLIB) %
94 94
95 95 $(ROOTUSRLIBSYMLINKS):
96 96 $(RM) $@; $(SYMLINK) ../sbin/$(@F) $@
97 97
98 98 .KEEP_STATE:
99 99
100 100 install: $(ROOTLIBLPPROGS) \
101 101 $(ROOTLIBPRINT) $(ROOTLIBPRINTPROGS) $(ROOTMANIFEST) \
102 102 $(ROOTUCBSYMLINKS) $(ROOTUSRLIBSYMLINKS)
103 103
104 104 check: $(CHKMANIFEST)
105 105
106 106 clean:
107 107 $(RM) $(OBJS)
108 108
109 109 CLOBBERFILES += $(BINPROGS) $(SBINPROGS) $(LIBPRINTPROGS)
110 110
111 111 lint:
112 112
113 113 include ../../Makefile.targ
↓ open down ↓ |
35 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX