Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libxcurses2/Makefile.com
+++ new/usr/src/lib/libxcurses2/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 2006 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25 # Copyright (c) 2018, Joyent, Inc.
26 26
27 27 LIBRARY= libcurses.a
28 28 VERS= .2
29 29
30 30 # objects are grouped by source directory
31 31 # all of the libxcurses source files are in src/libc
32 32 OBJECTS= $(XCURSES) $(MKS) $(WIDE)
33 33
34 34 # XCURSES source files are in src/libc/xcurses
35 35 XCURSES= \
36 36 add_wch.o dupwin.o longname.o strname.o wbrdr.o \
37 37 addch.o echo_wch.o m_cc.o termattr.o wbrdr_st.o \
38 38 addchn.o echochar.o meta.o tgetent.o wchgat.o \
39 39 addnstr.o endwin.o move.o tgetflag.o wclear.o \
40 40 addnws.o flushinp.o mvcur.o tgetnum.o wclrbot.o \
41 41 addwchn.o get_wch.o mvwin.o tgetstr.o wclreol.o \
42 42 attr_on.o getcchar.o napms.o tgoto.o wdelch.o \
43 43 attron.o getch.o newpad.o tigetfla.o wget_wch.o \
44 44 baudrate.o getn_ws.o newterm.o tigetnum.o wgetch.o \
45 45 beep.o getnstr.o newwin.o tigetstr.o wgetn_ws.o \
46 46 bkgd.o getwin.o noecho.o timeout.o whln.o \
47 47 bkgdset.o has.o nonl.o touched.o whln_st.o \
48 48 bkgrnd.o hln.o numcode.o touchwin.o win_wch.o \
49 49 bkgrndst.o hln_st.o numfnam.o tparm.o win_wchn.o \
50 50 boolcode.o in_wch.o numname.o tputs.o winch.o \
51 51 boolfnam.o in_wchn.o overlay.o winchn.o \
52 52 boolname.o inch.o pecho_wc.o unctrl.o winnstr.o \
53 53 box.o inchn.o pechoch.o vid_attr.o winnwstr.o \
54 54 box_set.o initscr.o prefresh.o vid_puts.o wins_nws.o \
55 55 brdr.o innstr.o printw.o vidattr.o wins_wch.o \
56 56 brdr_st.o innwstr.o ptrmove.o vw_print.o winsch.o \
57 57 cbreak.o ins_nws.o qiflush.o vw_scanw.o winsdel.o \
58 58 chgat.o ins_wch.o redraw.o vwprintw.o winsnstr.o \
59 59 clear.o insch.o refresh.o vwscanw.o wmove.o \
60 60 clearok.o insnstr.o savetty.o wacs.o wredraw.o \
61 61 clrbot.o intrflsh.o scanw.o wadd_wch.o wrefresh.o \
62 62 clreol.o scr_dump.o waddch.o wscrl.o \
63 63 color.o isendwin.o scrl.o waddchn.o wscrreg.o \
64 64 copywin.o key_name.o scrreg.o waddnstr.o wsyncdn.o \
65 65 curs_set.o keyindex.o setcchar.o waddnws.o wsyncup.o \
66 66 delay.o keyname.o setup.o waddwchn.o wtimeout.o \
67 67 delch.o keypad.o slk.o wattr_on.o wtouchln.o \
68 68 deleteln.o killchar.o strcode.o wattron.o wunctrl.o \
69 69 doupdate.o killwch.o strfnam.o wbkgrnd.o
70 70
71 71 # MKS source files are in src/libc/mks
72 72 MKS= m_crcpos.o
73 73
74 74 # WIDE source files are in src/libc/wide
75 75 WIDE= wio_get.o wio_put.o
76 76
77 77 # include library definitions
78 78 include ../../Makefile.lib
79 79
80 80 SRCDIR = ../src
81 81
82 82 SRCS= $(XCURSES:%.o=../src/libc/xcurses/%.c) \
83 83 $(MKS:%.o=../src/libc/mks/%.c) \
84 84 $(WIDE:%.o=../src/libc/wide/%.c)
85 85
86 86 LIBS = $(DYNLIB) $(LINTLIB)
87 87
88 88 # definitions for install target
89 89 ROOTLIBDIR= $(ROOT)/usr/xpg4/lib
↓ open down ↓ |
89 lines elided |
↑ open up ↑ |
90 90 ROOTLIBDIR64= $(ROOT)/usr/xpg4/lib/$(MACH64)
91 91 ROOTLIBS= $(LIBS:%=$(ROOTLIBDIR)/%)
92 92
93 93 $(LINTLIB):= SRCS=../src/libc/llib-lcurses
94 94
95 95 LINTSRC= $(LINTLIB:%.ln=%)
96 96
97 97 LDLIBS += -lc
98 98
99 99 CPPFLAGS = -I../h -I../src/libc/xcurses $(CPPFLAGS.master)
100 -CERRWARN += -_gcc=-Wno-uninitialized
100 +CERRWARN += $(CNOWARN_UNINIT)
101 101 CERRWARN += -_gcc=-Wno-unused-value
102 102
103 103 # not linted
104 104 SMATCH=off
105 105
106 106 #
107 107 # If and when somebody gets around to messaging this, CLOBBERFILE should not
108 108 # be cleared (so that any .po file will be clobbered.
109 109 #
110 110 CLOBBERFILES= libcurses.so libcurses.so$(VERS)
111 111
112 112 .KEEP_STATE:
113 113
114 114 all: $(LIBS)
115 115
116 116 lint: lintcheck
117 117
118 118 #
119 119 # Include library targets
120 120 #
121 121 include ../../Makefile.targ
122 122
123 123 objs/%.o pics/%.o: ../src/libc/xcurses/%.c
124 124 $(COMPILE.c) -o $@ $<
125 125 $(POST_PROCESS_O)
126 126
127 127 objs/%.o pics/%.o: ../src/libc/mks/%.c
128 128 $(COMPILE.c) -o $@ $<
129 129 $(POST_PROCESS_O)
130 130
131 131 objs/%.o pics/%.o: ../src/libc/wide/%.c
132 132 $(COMPILE.c) -o $@ $<
133 133 $(POST_PROCESS_O)
134 134
135 135 # install rule for lint library target
136 136 $(ROOTLINTDIR)/%: ../src/libc/%
137 137 $(INS.file)
138 138
139 139 # install rule for 64 bit lint library target
140 140 $(ROOTLINTDIR64)/%: ../src/libc/%
141 141 $(INS.file)
↓ open down ↓ |
31 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX