Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/ucblib/libucb/Makefile.com
+++ new/usr/src/ucblib/libucb/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
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
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 (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 #
24 -# Copyright (c) 2018, Joyent, Inc.
24 +# Copyright 2019 Joyent, Inc.
25 25 # Copyright 2019 Peter Tribble.
26 26 #
27 27
28 28 LIBRARY= libucb.a
29 29 VERS= .1
30 30
31 31 PORTSYSOBJS= \
32 32 flock.o \
33 33 getdtblsize.o \
34 34 gethostid.o \
35 35 gethostname.o \
36 36 getpagesize.o \
37 37 gettimeofday.o \
38 38 killpg.o \
39 39 mctl.o \
40 40 reboot.o \
41 41 setpgrp.o \
42 42 wait3.o \
43 43 wait4.o
44 44
45 45 PORTSTDIOOBJS= \
46 46 doprnt.o \
47 47 fopen.o \
48 48 fprintf.o \
49 49 printf.o \
50 50 sprintf.o \
51 51 vfprintf.o \
52 52 vprintf.o \
53 53 vsprintf.o
54 54
55 55 PORTGENOBJS= \
56 56 _psignal.o \
57 57 bcmp.o \
58 58 bcopy.o \
59 59 bzero.o \
60 60 ftime.o \
61 61 getwd.o \
62 62 index.o \
63 63 nice.o \
64 64 nlist.o \
65 65 psignal.o \
66 66 rand.o \
67 67 readdir.o \
68 68 regex.o \
69 69 rindex.o \
70 70 scandir.o \
71 71 setbuffer.o \
72 72 siglist.o \
73 73 statfs.o \
74 74 times.o
75 75
76 76 OBJECTS= $(SYSOBJS) $(PORTGENOBJS) $(PORTSYSOBJS) $(PORTSTDIOOBJS)
77 77
78 78 # include library definitions
79 79 include $(SRC)/lib/Makefile.lib
80 80
81 81 ROOTLIBDIR= $(ROOT)/usr/ucblib
82 82 ROOTLIBDIR64= $(ROOT)/usr/ucblib/$(MACH64)
83 83
84 84 MAPFILES = ../port/mapfile-vers
85 85
86 86 SRCS= $(PORTGENOBJS:%.o=../port/gen/%.c) \
87 87 $(PORTSTDIOOBJS:%.o=../port/stdio/%.c) \
88 88 $(PORTSYSOBJS:%.o=../port/sys/%.c)
89 89
90 90 LIBS = $(DYNLIB)
91 91
92 92 CFLAGS += $(CCVERBOSE)
93 93 CFLAGS64 += $(CCVERBOSE)
94 94 LDLIBS += -lelf -lc
95 95
96 96 CPPFLAGS = -D$(MACH) -I$(SRC)/ucbhead -I../inc \
97 97 -I../../../lib/libc/inc $(CPPFLAGS.master)
98 98
99 99 CERRWARN += -_gcc=-Wno-unused-variable
100 100 CERRWARN += -_gcc=-Wno-parentheses
101 101 CERRWARN += -_gcc=-Wno-char-subscripts
102 102 CERRWARN += -_gcc=-Wno-uninitialized
103 103
104 104 # not linted
105 105 SMATCH=off
106 106
107 107 ASFLAGS= -P -D__STDC__ -DLOCORE -D_SYS_SYS_S -D_ASM $(CPPFLAGS)
108 108
109 109 pics/%.o:= ASFLAGS += $(AS_PICFLAGS)
110 110
111 111 # libc method of building an archive, using AT&T ordering
112 112 BUILD.AR= $(RM) $@ ; \
113 113 $(AR) q $@ `$(LORDER) $(OBJECTS:%=$(DIR)/%)| $(TSORT)`
114 114
115 115 .KEEP_STATE:
116 116
117 117 all: $(LIBS)
118 118
119 119 lint: lintcheck
120 120
121 121 pics/%.o: ../port/gen/%.c
122 122 $(COMPILE.c) -o $@ $<
123 123 $(POST_PROCESS_O)
124 124 pics/%.o: ../port/stdio/%.c
125 125 $(COMPILE.c) -o $@ $<
126 126 $(POST_PROCESS_O)
127 127 pics/%.o: ../port/sys/%.c
128 128 $(COMPILE.c) -o $@ $<
129 129 $(POST_PROCESS_O)
130 130
131 131 # shared (sparc/sparcv9/i386/amd64) platform-specific rule
132 132 pics/%.o: sys/%.c
133 133 $(COMPILE.c) -o $@ $<
134 134 $(POST_PROCESS_O)
135 135
136 136 pics/%.o: ../$(MACH)/sys/%.s
137 137 $(BUILD.s)
138 138 $(POST_PROCESS_S_O)
139 139
140 140 #
141 141 # Include library targets
142 142 #
143 143 include $(SRC)/lib/Makefile.targ
↓ open down ↓ |
109 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX