Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/adbgen/Makefile.com
+++ new/usr/src/cmd/adbgen/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, 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.
16 16 # If applicable, add the following below this CDDL HEADER, with the
17 17 # fields enclosed by brackets "[]" replaced with your own identifying
↓ open down ↓ |
17 lines elided |
↑ open up ↑ |
18 18 # information: Portions Copyright [yyyy] [name of copyright owner]
19 19 #
20 20 # CDDL HEADER END
21 21 #
22 22 #
23 23 # Copyright 2004 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 26 # Copyright 2015 RackTop Systems.
27 27 #
28 +# Copyright (c) 2018, Joyent, Inc.
28 29
29 30 PROGS = adbgen1 adbgen3 adbgen4
30 31 OBJS = adbsub.o
31 32 SCRIPTS = adbgen
32 33
33 34 CLOBBERFILES = $(PROGS) $(OBJS) $(SCRIPTS)
34 35
35 36 .PARALLEL: $(PROGS) $(OBJS) $(SCRIPTS)
36 37 .KEEP_STATE:
37 38
38 39 include ../../Makefile.cmd
40 +include ../../Makefile.targ
39 41
42 +# not linted
43 +SMATCH=off
44 +
40 45 ROOTADBDIR32 = $(ROOT)/usr/lib/adb
41 46 ROOTADBDIR64 = $(ROOT)/usr/lib/adb/$(MACH64)
42 47 ROOTADBDIR = $(ROOTADBDIR32)
43 48
44 49 ROOTPROGS = $(PROGS:%=$(ROOTADBDIR)/%)
45 50 ROOTOBJS = $(OBJS:%=$(ROOTADBDIR)/%)
46 51 ROOTSCRIPTS = $(SCRIPTS:%=$(ROOTADBDIR)/%)
47 52
48 53 FILEMODE = 0644
49 54 $(ROOTPROGS) $(ROOTSCRIPTS) := FILEMODE = 0755
50 55
51 56 all: $$(PROGS) $$(OBJS) $$(SCRIPTS)
52 57 install: $$(ROOTPROGS) $$(ROOTOBJS) $$(ROOTSCRIPTS)
53 58
54 59 clean:
55 60
56 61 adbgen%: ../common/adbgen%.c
57 62 $(LINK.c) -o $@ $< $(LDLIBS)
58 63 $(POST_PROCESS)
59 64
60 65 %.o: ../common/%.c
61 66 $(COMPILE.c) -c -o $@ $<
62 67 $(POST_PROCESS_O)
63 68
64 69 %: ../common/%.sh
65 70 $(RM) $@
66 71 cat $< >$@
67 72 chmod +x $@
68 73
69 74 $(ROOTADBDIR32)/%: % $(ROOTADBDIR32)
↓ open down ↓ |
20 lines elided |
↑ open up ↑ |
70 75 $(INS.file)
71 76
72 77 $(ROOTADBDIR64)/%: % $(ROOTADBDIR64)
73 78 $(INS.file)
74 79
75 80 $(ROOTADBDIR32):
76 81 $(INS.dir)
77 82
78 83 $(ROOTADBDIR64): $(ROOTADBDIR32)
79 84 $(INS.dir)
80 -
81 -include ../../Makefile.targ
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX