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