Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/eqn/neqn.d/Makefile
+++ new/usr/src/cmd/eqn/neqn.d/Makefile
1 1 #
2 2 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
3 3 # Use is subject to license terms.
4 4 #
5 +# Copyright (c) 2018, Joyent, Inc.
5 6
6 7 include ../../Makefile.cmd
7 8
8 9 PROG = neqn
9 10
10 11 CSRCS = diacrit.c eqnbox.c font.c fromto.c funny.c \
11 12 glob.c integral.c io.c lex.c lookup.c \
12 13 mark.c matrix.c move.c over.c paren.c \
13 14 pile.c shift.c size.c sqrt.c text.c
14 15
15 16 SRCS = $(CSRCS:%=../%)
16 17
17 18 YACCSRC = e.y
18 19
19 20 COBJS = $(CSRCS:%.c=%.o)
20 21 OBJS = $(YACCSRC:%.y=%.o) $(COBJS)
21 22
22 23
↓ open down ↓ |
8 lines elided |
↑ open up ↑ |
23 24 CLEANFILES = y.tab.c y.tab.h $(YACCSRC:%.y=%.c) $(YACCSRC:%.y=%.def)
24 25
25 26 YFLAGS = -d
26 27 CPPFLAGS = -DNEQN -I. -I.. $(CPPFLAGS.master)
27 28 LDFLAGS += $(MAPFILE.NGB:%=-M%)
28 29
29 30 CERRWARN += -_gcc=-Wno-implicit-function-declaration
30 31 CERRWARN += -_gcc=-Wno-uninitialized
31 32 CERRWARN += -_gcc=-Wno-unused-label
32 33
34 +# not linted
35 +SMATCH=off
36 +
33 37 #
34 38 # for message catalog
35 39 #
36 40 POFILE= neqn.d.po
37 41 POFILES= e.po
38 42
39 43 .KEEP_STATE:
40 44
41 45 all : $(PROG)
42 46
43 47 $(PROG) : $(OBJS) $(MAPFILE.NGB)
44 48 $(LINK.c) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
45 49 $(POST_PROCESS)
46 50
47 51 catalog: $(POFILE)
48 52
49 53 $(POFILE): $(POFILES)
50 54 $(RM) $@
51 55 cat $(POFILES) > $@
52 56
53 57
54 58 $(YACCSRC:%.y=%.c) + $(YACCSRC:%.y=%.def) : ../$(YACCSRC)
55 59 $(YACC.y) ../$(YACCSRC)
56 60 $(MV) y.tab.c $(YACCSRC:%.y=%.c)
57 61 $(MV) y.tab.h $(YACCSRC:%.y=%.def)
58 62
59 63 $(COBJS) : $$(@:%.o=../%.c)
60 64 $(COMPILE.c) ../$(@:%.o=%.c)
61 65
62 66 install : all $(ROOTPROG)
63 67
64 68 clean:
65 69 $(RM) $(OBJS) $(CLEANFILES)
66 70
67 71 lint: lint_SRCS
68 72
69 73 strip :
70 74 $(STRIP) $(PROG)
71 75
72 76 include ../../Makefile.targ
↓ open down ↓ |
30 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX