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