Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/lp/lib/oam/Makefile
+++ new/usr/src/cmd/lp/lib/oam/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, Version 1.0 only
6 6 # (the "License"). You may not use this file except in compliance
7 7 # with the License.
8 8 #
9 9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 10 # or http://www.opensolaris.org/os/licensing.
11 11 # See the License for the specific language governing permissions
12 12 # and limitations under the License.
13 13 #
14 14 # When distributing Covered Code, include this CDDL HEADER in each
15 15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
16 16 # If applicable, add the following below this CDDL HEADER, with the
17 17 # fields enclosed by brackets "[]" replaced with your own identifying
18 18 # information: Portions Copyright [yyyy] [name of copyright owner]
19 19 #
20 20 # CDDL HEADER END
21 21 #
22 22 #
23 23 # Copyright 1990-2003 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 -# ident "%Z%%M% %I% %E% SMI"
27 -#
28 -# cmd/lp/lib/oam/Makefile
29 -#
26 +# Copyright (c) 2018, Joyent, Inc.
27 +
30 28 include ../../Makefile.lp
31 29
32 30 LIBRARY = liblpoam.a
33 31
34 32 TEXTOBJS = e_adm__msgs.o \
35 33 e_can__msgs.o \
36 34 e_cmb__msgs.o \
37 35 e_fl__msgs.o \
38 36 e_for__msgs.o \
39 37 e_lp__msgs.o \
40 38 e_lpp__msgs.o \
41 39 e_lpu__msgs.o \
42 40 e_mov__msgs.o \
43 41 e_sht__msgs.o \
44 42 e_stat__msgs.o \
45 43 e_sys__msgs.o
46 44
47 45 OBJECTS = agettxt.o \
48 46 buffers.o \
49 47 fmtmsg.o \
50 48 $(TEXTOBJS)
51 49
52 50 # see the comment below about the '+' signs in TEXTTARG
53 51 #
54 52 TEXTSRCS = $(TEXTOBJS:%.o=%.c)
55 53 TEXTTARG = $(TEXTSRCS:%=+ %)
56 54
57 55 TFILES = msg.source gen-defs gen-text
58 56
59 57 TXTFILES= $(TFILES)
60 58
61 59 LPINC = ../../include
62 60 OAMDEF_H = $(LPINC)/oam_def.h
63 61
↓ open down ↓ |
24 lines elided |
↑ open up ↑ |
64 62 CLEANFILES = $(TEXTSRCS) $(OAMDEF_H) xx??
65 63
66 64 include ../../../../lib/Makefile.lib
67 65
68 66 # Specifically request the construction of a static library.
69 67 # This library is not installed in the proto area.
70 68 LIBS = $(LIBRARY)
71 69
72 70 CPPFLAGS = -I$(LPINC) $(CPPFLAGS.master)
73 71
72 +# not linted
73 +SMATCH=off
74 +
74 75 .KEEP_STATE:
75 76
76 77 all install : $(TXTFILES) $(LIBS)
77 78
78 79 # derived source files
79 80 # and their dependencies
80 81 #
81 82 # beware of the hidden ordering requirement in the target source
82 83 # macros. TEXTTARG contains '+' signs to tell make that this is a
83 84 # target group. Without this syntax, an infinite build loop occurs.
84 85 #
85 86 $(OAMDEF_H) $(TEXTTARG) :$(TFILES)
86 87 sh gen-defs > $(OAMDEF_H)
87 88 sh gen-text
88 89
89 90 # dependencies slightly overstated but necessarily explicit
90 91 $(OBJS) $(PICS) : $(OAMDEF_H) $$(@F:.o=.c)
91 92
92 93 include ../../../../lib/Makefile.targ
93 94
94 95 POFILE = lp_lib_oam.po
95 96 XGETFLAGS += -a -x lp_lib_oam.xcl
96 97
97 98 CLEANFILES += llib-llpoam.ln
98 99 LINTFLAGS = -nvx
99 100 SRCS= $(OBJECTS:%.o=%.c)
100 101
101 102 lint: lintlib
102 103 $(LINT.c) $(LINTFLAGS) $(SRCS)
103 104
104 105 lintlib:
105 106 $(LINT.c) $(LINTFLAGS) -o lpoam llib-llpoam
106 107
107 108 include ../Makefile.msg
↓ open down ↓ |
24 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX