Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/sgs/libelf/Makefile.com
+++ new/usr/src/cmd/sgs/libelf/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 2015 Gary Mills
23 23 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
24 +# Copyright (c) 2018, Joyent, Inc.
24 25 #
25 26
26 27 LIBRARY= libelf.a
27 28 VERS= .1
28 29
29 30 MACHOBJS=
30 31 COMOBJS= ar.o begin.o cntl.o cook.o \
31 32 data.o end.o fill.o flag.o \
32 33 getarhdr.o getarsym.o getbase.o getdata.o \
33 34 getehdr.o getident.o getphdr.o getscn.o \
34 35 getshdr.o \
35 36 getphnum.o getshnum.o getshstrndx.o \
36 37 hash.o input.o kind.o \
37 38 ndxscn.o newdata.o newehdr.o newphdr.o \
38 39 newscn.o next.o nextscn.o output.o \
39 40 rand.o rawdata.o rawfile.o rawput.o \
40 41 strptr.o update.o error.o gelf.o \
41 42 clscook.o checksum.o
42 43 CLASSOBJS= clscook64.o newehdr64.o newphdr64.o update64.o \
43 44 checksum64.o
44 45 BLTOBJS= msg.o xlate.o xlate64.o
45 46 MISCOBJS= String.o args.o demangle.o nlist.o \
46 47 nplist.o
47 48 MISCOBJS64= nlist.o
48 49
49 50 OBJECTS= $(BLTOBJS) $(MACHOBJS) $(COMOBJS) $(CLASSOBJS) $(MISCOBJS)
50 51
51 52 include $(SRC)/lib/Makefile.lib
52 53
53 54 # Use the value of M4 set in Makefile.master via Makefile.lib
54 55
55 56 DEMOFILES= Makefile 00README acom.c dcom.c \
56 57 pcom.c tpcom.c dispsyms.c
57 58 DEMOFILESRCDIR= ../demo
58 59 ROOTDEMODIRBASE=$(ROOT)/usr/demo/ELF
59 60 ROOTDEMODIRS= $(ROOTDEMODIRBASE)
60 61
61 62 include $(SRC)/cmd/sgs/Makefile.com
62 63
63 64 MAPFILES = ../common/mapfile-vers
↓ open down ↓ |
30 lines elided |
↑ open up ↑ |
64 65
65 66 DYNFLAGS += $(VERSREF)
66 67 LDLIBS += $(CONVLIBDIR) $(CONV_LIB) -lc
67 68
68 69 LINTFLAGS += -u -erroff=E_BAD_PTR_CAST_ALIGN
69 70 LINTFLAGS64 += -u -erroff=E_CAST_INT_TO_SMALL_INT
70 71
71 72 CERRWARN += -_gcc=-Wno-parentheses
72 73 CERRWARN += -_gcc=-Wno-uninitialized
73 74
75 +SMOFF += indenting
76 +
74 77 BUILD.AR= $(RM) $@ ; \
75 78 $(AR) q $@ `$(LORDER) $(OBJECTS:%=$(DIR)/%)| $(TSORT)`
76 79 $(POST_PROCESS_A)
77 80
78 81
79 82 BLTDEFS= msg.h
80 83 BLTDATA= msg.c
81 84 BLTMESG= $(SGSMSGDIR)/libelf
82 85
83 86 BLTFILES= $(BLTDEFS) $(BLTDATA) $(BLTMESG)
84 87
85 88 SGSMSGCOM= ../common/libelf.msg
86 89 SGSMSG32= ../common/libelf.32.msg
87 90 SGSMSGTARG= $(SGSMSGCOM)
88 91 SGSMSGALL= $(SGSMSGCOM) $(SGSMSG32)
89 92
90 93 SGSMSGFLAGS1= $(SGSMSGFLAGS) -m $(BLTMESG)
91 94 SGSMSGFLAGS2= $(SGSMSGFLAGS) -h $(BLTDEFS) -d $(BLTDATA) -n libelf_msg
92 95
93 96 BLTSRCS= $(BLTOBJS:%.o=%.c)
94 97 LIBSRCS= $(COMOBJS:%.o=../common/%.c) $(MISCOBJS:%.o=../misc/%.c) \
95 98 $(MACHOBJS:%.o=%.c) $(BLTSRCS)
96 99 SRCS= ../common/llib-lelf
97 100 LINTSRCS= $(LIBSRCS) ../common/lintsup.c
98 101
99 102 ROOTFS_DYNLIB= $(DYNLIB:%=$(ROOTFS_LIBDIR)/%)
100 103 ROOTFS_LINTLIB= $(LINTLIB:%=$(ROOTFS_LIBDIR)/%)
101 104
102 105 ROOTFS_DYNLIB64= $(DYNLIB:%=$(ROOTFS_LIBDIR64)/%)
103 106 ROOTFS_LINTLIB64= $(LINTLIB:%=$(ROOTFS_LIBDIR64)/%)
104 107
105 108 $(ROOTFS_DYNLIB) := FILEMODE= 755
106 109 $(ROOTFS_DYNLIB64) := FILEMODE= 755
107 110
108 111 LIBS = $(DYNLIB) $(LINTLIB)
109 112
110 113 CLEANFILES += $(LINTOUTS) $(BLTSRCS) $(BLTFILES)
111 114
112 115 .PARALLEL: $(LIBS)
↓ open down ↓ |
29 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX