Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/sh/Makefile
+++ new/usr/src/cmd/sh/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
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
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 (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 #
24 +# Copyright (c) 2018, Joyent, Inc.
24 25
25 26 PROG = sh
26 27 USR_PROG = $(PROG)
27 28
28 29 OBJS= args.o blok.o cmd.o defs.o error.o fault.o hash.o hashserv.o \
29 30 io.o msg.o print.o stak.o string.o word.o xec.o \
30 31 ctype.o echo.o expand.o func.o macro.o pwd.o setbrk.o test.o \
31 32 bltin.o jobs.o ulimit.o main.o name.o service.o
32 33 SRCS= $(OBJS:%.o=%.c)
33 34
34 35 include ../Makefile.cmd
35 36
36 37 #
37 38 # for message cataloge
↓ open down ↓ |
4 lines elided |
↑ open up ↑ |
38 39 #
39 40 POFILE= sh.po
40 41 POFILES= $(SRCS:%.c=%.po)
41 42 XGETFLAGS += -a -x sh.xcl
42 43
43 44 CPPFLAGS += -D_FILE_OFFSET_BITS=64 -DACCT
44 45 CERRWARN += -_gcc=-Wno-implicit-function-declaration
45 46 CERRWARN += -_gcc=-Wno-parentheses
46 47 CERRWARN += -_gcc=-Wno-extra
47 48 CERRWARN += -_gcc=-Wno-unused-variable
49 +
50 +# unknown type for func
51 +SMATCH=off
52 +
48 53 MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
49 54 LDFLAGS += $(MAPFILES:%=-M%)
50 55 LDLIBS += -lgen
51 56
52 57 .KEEP_STATE:
53 58
54 59 .PARALLEL: $(OBJS)
55 60
56 61 all: $(ROOTHASBINPROG)
57 62
58 63 $(PROG): $(OBJS) $(MAPFILES)
59 64 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
60 65 $(POST_PROCESS)
61 66
62 67 $(POFILE): $(POFILES)
63 68 $(RM) $@
64 69 $(CAT) $(POFILES) > $@
65 70
66 71 install: all $(ROOTHASBINPROG)
67 72 $(RM) $(ROOTHASBIN)/jsh
68 73 $(SYMLINK) sh $(ROOTHASBIN)/jsh
69 74 $(RM) $(ROOTHASLIB)/rsh
70 75 $(SYMLINK) ../bin/sh $(ROOTHASLIB)/rsh
71 76
72 77 clean:
73 78 $(RM) $(OBJS)
74 79
75 80 lint: lint_SRCS
76 81
77 82 include ../Makefile.targ
↓ open down ↓ |
20 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX