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