Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/sgs/lex/Makefile.com
+++ new/usr/src/cmd/sgs/lex/Makefile.com
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
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright 2015 Gary Mills
23 23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 26 # Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
27 27 #
28 28
29 29 PROG= lex
30 30
31 31 MACHOBJS= main.o sub1.o sub2.o sub3.o header.o parser.o
32 32 POBJECTS= $(MACHOBJS)
33 33 POBJS= $(POBJECTS:%=objs/%)
34 34
35 35 LIBRARY= libl.a
36 36 VERS= .1
37 37
38 38 LIBOBJS= allprint.o libmain.o reject.o yyless.o yywrap.o
39 39 LIBOBJS_W= allprint_w.o reject_w.o yyless_w.o
40 40 LIBOBJS_E= reject_e.o yyless_e.o
41 41 OBJECTS= $(LIBOBJS) $(LIBOBJS_W) $(LIBOBJS_E)
↓ open down ↓ |
41 lines elided |
↑ open up ↑ |
42 42
43 43 FORMS= nceucform ncform nrform
44 44
45 45 include ../../../../lib/Makefile.lib
46 46
47 47 SRCDIR = ../common
48 48
49 49 CSTD= $(CSTD_GNU99)
50 50
51 51 CERRWARN += -_gcc=-Wno-unused-label
52 -CERRWARN += -_gcc=-Wno-uninitialized
52 +CERRWARN += $(CNOWARN_UNINIT)
53 53 CERRWARN += -_gcc=-Wno-parentheses
54 54
55 55 # Override default source file derivation rule (in Makefile.lib)
56 56 # from objects
57 57 #
58 58 MACHSRCS= $(MACHOBJS:%.o=../common/%.c)
59 59 LIBSRCS = $(LIBOBJS:%.o=../common/%.c)
60 60 SRCS= $(MACHSRCS) $(LIBSRCS)
61 61
62 62 LIBS = $(DYNLIB)
63 63
64 64 INCLIST= $(INCLIST_$(MACH)) -I../../include -I../../include/$(MACH)
65 65 DEFLIST= -DELF
66 66
67 67 # It is not very clean to base the conditional definitions as below, but
68 68 # this will have to do for now.
69 69 #
70 70 #$(LIBOBJS_W):= DEFLIST = -DEUC -DJLSLEX -DWOPTION -D$*=$*_w
71 71 objs/%_w.o:= DEFLIST = -DEUC -DJLSLEX -DWOPTION -D$*=$*_w
72 72 pics/%_w.o:= DEFLIST = -DEUC -DJLSLEX -DWOPTION -D$*=$*_w
73 73
74 74 #$(LIBOBJS_E):= DEFLIST = -DEUC -DJLSLEX -DEOPTION -D$*=$*_e
75 75 objs/%_e.o:= DEFLIST = -DEUC -DJLSLEX -DEOPTION -D$*=$*_e
76 76 pics/%_e.o:= DEFLIST = -DEUC -DJLSLEX -DEOPTION -D$*=$*_e
77 77
78 78 CPPFLAGS= $(INCLIST) $(DEFLIST) $(CPPFLAGS.master)
79 79 BUILD.AR= $(AR) $(ARFLAGS) $@ `$(LORDER) $(OBJS) | $(TSORT)`
80 80
81 81 $(ROOTPROG):= FILEMODE = 0555
82 82
83 83 ROOTFORMS= $(FORMS:%=$(ROOTSHLIBCCS)/%)
84 84
85 85 DYNLINKLIBDIR= $(ROOTLIBDIR)
86 86 DYNLINKLIB= $(LIBLINKS:%=$(DYNLINKLIBDIR)/%)
87 87
88 88 # Need to make sure lib-make's are warning free
89 89 $(DYNLIB) := CFLAGS += $(CCVERBOSE)
90 90 $(DYNLIB) := CFLAGS64 += $(CCVERBOSE)
91 91
92 92 LDLIBS += -lc
93 93
94 94 CLEANFILES += ../common/parser.c
95 95 CLOBBERFILES += $(LIBS) $(LIBRARY)
↓ open down ↓ |
33 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX