Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/csh/i386/Makefile
+++ new/usr/src/cmd/csh/i386/Makefile
1 1 # Copyright (c) 1993, 2010, Oracle and/or its affiliates. All rights reserved.
2 2 #
3 3 # Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T
4 4 # All Rights Reserved
5 5 #
6 6 # Copyright (c) 1980 Regents of the University of California.
7 7 # All rights reserved. The Berkeley Software License Agreement
8 8 # specifies the terms and conditions for redistribution.
9 -
10 9 #
10 +# Copyright (c) 2018, Joyent, Inc.
11 +#
11 12 # C Shell with process control; VM/UNIX VAX Makefile
12 13 # Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
13 14 #
14 15
15 16 CSH_PROG = csh
16 17 PROG = $(CSH_PROG)
17 18
18 19 include ../../Makefile.cmd
19 20
20 21 MBCHAR = -DMBCHAR # Define this line to include multibyte input support
21 22 DEFS = -DVFORK -DFILEC -DBSD_COMP -DFIVE # No TELL when MBCHAR
22 23 CPPFLAGS= -I. $(DEFS) $(MBCHAR) $(CPPFLAGS.master)
23 24 CPPFLAGS += -I../../sh
24 25 CPPFLAGS += -D_FILE_OFFSET_BITS=64
25 26 LDLIBS += -lcurses
26 27
↓ open down ↓ |
6 lines elided |
↑ open up ↑ |
27 28 CERRWARN += -_gcc=-Wno-implicit-function-declaration
28 29 CERRWARN += -_gcc=-Wno-uninitialized
29 30 CERRWARN += -_gcc=-Wno-parentheses
30 31 CERRWARN += -_gcc=-Wno-implicit-int
31 32 CERRWARN += -_gcc=-Wno-unused-function
32 33 CERRWARN += -_gcc=-Wno-unused-variable
33 34 CERRWARN += -_gcc=-Wno-clobbered
34 35 CERRWARN += -_gcc=-Wno-unused-label
35 36 CERRWARN += -_gcc=-Wno-extra
36 37
38 +# "missing type for func"
39 +SMATCH=off
40 +
37 41 MAPFILES = ../mapfile-intf $(MAPFILE.NGB)
38 42 LDFLAGS += $(MAPFILES:%=-M%)
39 43
40 44 HDDEP = sh.o sh.dir.o sh.dol.o sh.err.o sh.exec.o sh.exp.o sh.file.o \
41 45 sh.func.o sh.glob.o sh.hist.o sh.init.o sh.lex.o sh.misc.o \
42 46 sh.parse.o sh.proc.o sh.sem.o sh.set.o sh.time.o
43 47
44 48 COMMONOBJS= printf.o sh.char.o sh.dir.o sh.dol.o sh.err.o \
45 49 sh.exec.o sh.exp.o sh.file.o sh.func.o sh.glob.o sh.hist.o sh.init.o \
46 50 sh.lex.o sh.misc.o sh.parse.o sh.print.o sh.proc.o sh.sem.o sh.set.o \
47 51 sh.time.o sh.tchar.o sh.tconst.o sh.o \
48 52 wait3.o
49 53
50 54 LOCALOBJS= signal.o
51 55
52 56 COMMONSRCS= $(COMMONOBJS:%.o=../%.c)
53 57
54 58 .KEEP_STATE:
55 59
56 60 .PARALLEL: $(COMMONOBJS) $(LOCALOBJS)
57 61
58 62 all: $(PROG)
59 63
60 64 # build rule for common source above
61 65 %.o: ../%.c
62 66 $(COMPILE.c) $<
63 67 $(POST_PROCESS_O)
64 68
65 69 %.o: ../../sh/%.c
66 70 $(COMPILE.c) $<
67 71 $(POST_PROCESS_O)
68 72
69 73 $(CSH_PROG): $(COMMONOBJS) $(LOCALOBJS) $(MAPFILES)
70 74 $(LINK.c) $(COMMONOBJS) $(LOCALOBJS) -o $@ $(LDLIBS)
71 75 $(POST_PROCESS)
72 76
73 77 $(HDDEP): ../sh.tconst.h
74 78
75 79 install: all $(ROOTBINPROG) $(ROOTPROG)
76 80
77 81 lint: ../sh.tconst.h
78 82 $(LINT.c) $(COMMONSRCS) signal.c $(LDLIBS)
79 83
80 84 clean:
81 85 $(RM) $(LOCALOBJS) $(COMMONOBJS)
82 86
83 87 clobber: clean
84 88 $(RM) $(PROG)
↓ open down ↓ |
38 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX