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