Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/iconv/Makefile
+++ new/usr/src/cmd/iconv/Makefile
1 1 #
2 2 # This file and its contents are supplied under the terms of the
3 3 # Common Development and Distribution License ("CDDL"), version 1.0.
↓ open down ↓ |
3 lines elided |
↑ open up ↑ |
4 4 # You may only use this file in accordance with the terms of version
5 5 # 1.0 of the CDDL.
6 6 #
7 7 # A full copy of the text of the CDDL should have accompanied this
8 8 # source. A copy of the CDDL is also available via the Internet at
9 9 # http://www.illumos.org/license/CDDL.
10 10 #
11 11
12 12 #
13 13 # Copyright 2011 Nexenta Systems, Inc. All rights reserved.
14 -# Copyright 2017 Joyent Inc.
14 +# Copyright (c) 2018, Joyent, Inc.
15 15 #
16 16
17 17 PROG=iconv
18 18
19 19 include ../Makefile.cmd
20 20 include ../Makefile.ctf
21 21
22 22 OBJS = iconv_main.o iconv_list.o charmap.o parser.tab.o scanner.o
23 23
24 24 SRCS = $(OBJS:%.o=%.c)
25 25
26 26 CSTD= $(CSTD_GNU99)
27 27 LDLIBS += -lcmdutils -lavl
28 28 YFLAGS = -d -b parser
29 29 CPPFLAGS += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
30 30 $(RELEASE_BUILD) CPPFLAGS += -DNDEBUG
31 31
32 32 CERRWARN += -_gcc=-Wno-unused-label
33 33
34 +# not linted
35 +SMATCH=off
36 +
34 37 CLEANFILES = $(OBJS) parser.tab.c parser.tab.h
35 38 CLOBBERFILES = $(PROG) $(POFILE)
36 39 PIFILES = $(OBJS:%.o=%.i)
37 40 POFILE = iconv_cmd.po
38 41
39 42 all: $(PROG)
40 43
41 44 install: all $(ROOTPROG)
42 45
43 46 $(PROG): $(OBJS)
44 47 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
45 48 $(POST_PROCESS)
46 49
47 50 $(OBJS): parser.tab.h
48 51 $(PIFILES): parser.tab.h
49 52
50 53 parser.tab.c parser.tab.h: parser.y
51 54 $(YACC) $(YFLAGS) parser.y
52 55
53 56 lint: $(SRCS)
54 57 $(LINT.c) $(CPPFLAGS) $(SRCS)
55 58
56 59 clean:
57 60 $(RM) $(CLEANFILES)
58 61
59 62 $(POFILE): $(PIFILES)
60 63 $(RM) $@
61 64 $(RM) messages.po
62 65 $(XGETTEXT) -s $(PIFILES)
63 66 $(SED) -e '/domain/d' messages.po > $@
64 67 $(RM) $(PIFILES) messages.po
65 68
66 69 .KEEP_STATE:
67 70
68 71 include ../Makefile.targ
↓ open down ↓ |
25 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX