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