Print this page
10063 basic support for smatch
10153 checkpaths shouldn't check packaging exceptions
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/troff/troff.d/Makefile
+++ new/usr/src/cmd/troff/troff.d/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
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
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25 # cmd/troff/troff.d/Makefile
26 26 #
27 +# Copyright (c) 2018, Joyent, Inc.
27 28
28 29 include ../../Makefile.cmd
29 30
30 31 PROG = troff ta makedev
31 32
32 33 SUBDIRS = tmac.d
33 34
34 35 TAOBJS = draw.o ta.o
35 36 MAKEDEVOBJS = makedev.o
36 37 TROFFOBJS = t10.o t6.o
37 38 COMMONOBJS = hytab.o n1.o n2.o n3.o n4.o n5.o \
38 39 n7.o n8.o n9.o ni.o nii.o suftab.o
39 40
40 41 SRCS = $(TAOBJS:%.o=%.c) $(MAKEDEVOBJS:%.o=%.c) \
41 42 $(TROFFOBJS:%.o=%.c) $(COMMONOBJS:%.o=../%.c)
42 43
↓ open down ↓ |
6 lines elided |
↑ open up ↑ |
43 44 TXTS = README maketables troff.sh
44 45
45 46 CPPFLAGS = -DUSG -DINCORE -I. -I.. $(CPPFLAGS.master)
46 47
47 48 CERRWARN += -_gcc=-Wno-implicit-function-declaration
48 49 CERRWARN += -_gcc=-Wno-unused-variable
49 50 CERRWARN += -_gcc=-Wno-parentheses
50 51 CERRWARN += -_gcc=-Wno-uninitialized
51 52 CERRWARN += -_gcc=-Wno-extra
52 53
54 +# "parse error: parsing (i (9223372034707292160-96) >= 65)"
55 +SMATCH = off
56 +
53 57 #
54 58 # For message catalog
55 59 #
56 60 POFILES= $(TROFFOBJS:%.o=%.po) $(COMMONOBJS:%.o=../%.po)
57 61 POFILE= troff.d.po
58 62
59 63 # conditional assignments
60 64
61 65 all := TARGET= all
62 66 install := TARGET= install
63 67 clean := TARGET= clean
64 68 clobber := TARGET= clobber
65 69 lint := TARGET= lint
66 70 strip := TARGET= strip
67 71
68 72 troff:= POBJS= $(COMMONOBJS) $(TROFFOBJS)
69 73 ta:= POBJS= $(TAOBJS)
70 74 makedev:= POBJS= $(MAKEDEVOBJS)
71 75
72 76 ta:= LDLIBS += -lm
73 77 troff:= LDLIBS += -lmapmalloc
74 78
75 79 # build rule for common source above
76 80 %.o: ../%.c
77 81 $(COMPILE.c) $<
78 82
79 83 .KEEP_STATE:
80 84
81 85 .PARALLEL: $(COMMONOBJS) $(TROFFOBJS) $(TAOBJS) $(MAKEDEVOBJS)
82 86
83 87 all : $(PROG) $(TXTS) $(SUBDIRS)
84 88
85 89 $(PROG) : $$(POBJS)
86 90 $(LINK.c) -o $@ $(POBJS) $(LDLIBS)
87 91 $(POST_PROCESS)
88 92
89 93 install: $(PROG) $(ROOTPROG) $(SUBDIRS)
90 94
91 95 clean: $(SUBDIRS)
92 96 $(RM) $(TAOBJS) $(MAKEDEVOBJS) $(TROFFOBJS) $(COMMONOBJS)
93 97
94 98 catalog: $(POFILE)
95 99
96 100 $(POFILE): $(POFILES)
97 101 $(RM) $@
98 102 cat $(POFILES) > $@
99 103
100 104
101 105 strip :
102 106 $(STRIP $(PROG)
103 107
104 108 lint : lint_SRCS
105 109
106 110 include ../../Makefile.targ
107 111
108 112 # additional dependency for clobber which is defined in Makefile.targ
109 113 clobber: $(SUBDIRS)
110 114
111 115 $(SUBDIRS) : FRC
112 116 @cd $@; pwd; $(MAKE) $(TARGET)
113 117
114 118 FRC:
↓ open down ↓ |
52 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX