4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 #
22 # Copyright 2015 Gary Mills
23 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
24 #
25
26 LIBRARY= libelf.a
27 VERS= .1
28
29 MACHOBJS=
30 COMOBJS= ar.o begin.o cntl.o cook.o \
31 data.o end.o fill.o flag.o \
32 getarhdr.o getarsym.o getbase.o getdata.o \
33 getehdr.o getident.o getphdr.o getscn.o \
34 getshdr.o \
35 getphnum.o getshnum.o getshstrndx.o \
36 hash.o input.o kind.o \
37 ndxscn.o newdata.o newehdr.o newphdr.o \
38 newscn.o next.o nextscn.o output.o \
39 rand.o rawdata.o rawfile.o rawput.o \
40 strptr.o update.o error.o gelf.o \
41 clscook.o checksum.o
42 CLASSOBJS= clscook64.o newehdr64.o newphdr64.o update64.o \
43 checksum64.o
54
55 DEMOFILES= Makefile 00README acom.c dcom.c \
56 pcom.c tpcom.c dispsyms.c
57 DEMOFILESRCDIR= ../demo
58 ROOTDEMODIRBASE=$(ROOT)/usr/demo/ELF
59 ROOTDEMODIRS= $(ROOTDEMODIRBASE)
60
61 include $(SRC)/cmd/sgs/Makefile.com
62
63 MAPFILES = ../common/mapfile-vers
64
65 DYNFLAGS += $(VERSREF)
66 LDLIBS += $(CONVLIBDIR) $(CONV_LIB) -lc
67
68 LINTFLAGS += -u -erroff=E_BAD_PTR_CAST_ALIGN
69 LINTFLAGS64 += -u -erroff=E_CAST_INT_TO_SMALL_INT
70
71 CERRWARN += -_gcc=-Wno-parentheses
72 CERRWARN += -_gcc=-Wno-uninitialized
73
74 BUILD.AR= $(RM) $@ ; \
75 $(AR) q $@ `$(LORDER) $(OBJECTS:%=$(DIR)/%)| $(TSORT)`
76 $(POST_PROCESS_A)
77
78
79 BLTDEFS= msg.h
80 BLTDATA= msg.c
81 BLTMESG= $(SGSMSGDIR)/libelf
82
83 BLTFILES= $(BLTDEFS) $(BLTDATA) $(BLTMESG)
84
85 SGSMSGCOM= ../common/libelf.msg
86 SGSMSG32= ../common/libelf.32.msg
87 SGSMSGTARG= $(SGSMSGCOM)
88 SGSMSGALL= $(SGSMSGCOM) $(SGSMSG32)
89
90 SGSMSGFLAGS1= $(SGSMSGFLAGS) -m $(BLTMESG)
91 SGSMSGFLAGS2= $(SGSMSGFLAGS) -h $(BLTDEFS) -d $(BLTDATA) -n libelf_msg
92
93 BLTSRCS= $(BLTOBJS:%.o=%.c)
|
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 #
22 # Copyright 2015 Gary Mills
23 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2018, Joyent, Inc.
25 #
26
27 LIBRARY= libelf.a
28 VERS= .1
29
30 MACHOBJS=
31 COMOBJS= ar.o begin.o cntl.o cook.o \
32 data.o end.o fill.o flag.o \
33 getarhdr.o getarsym.o getbase.o getdata.o \
34 getehdr.o getident.o getphdr.o getscn.o \
35 getshdr.o \
36 getphnum.o getshnum.o getshstrndx.o \
37 hash.o input.o kind.o \
38 ndxscn.o newdata.o newehdr.o newphdr.o \
39 newscn.o next.o nextscn.o output.o \
40 rand.o rawdata.o rawfile.o rawput.o \
41 strptr.o update.o error.o gelf.o \
42 clscook.o checksum.o
43 CLASSOBJS= clscook64.o newehdr64.o newphdr64.o update64.o \
44 checksum64.o
55
56 DEMOFILES= Makefile 00README acom.c dcom.c \
57 pcom.c tpcom.c dispsyms.c
58 DEMOFILESRCDIR= ../demo
59 ROOTDEMODIRBASE=$(ROOT)/usr/demo/ELF
60 ROOTDEMODIRS= $(ROOTDEMODIRBASE)
61
62 include $(SRC)/cmd/sgs/Makefile.com
63
64 MAPFILES = ../common/mapfile-vers
65
66 DYNFLAGS += $(VERSREF)
67 LDLIBS += $(CONVLIBDIR) $(CONV_LIB) -lc
68
69 LINTFLAGS += -u -erroff=E_BAD_PTR_CAST_ALIGN
70 LINTFLAGS64 += -u -erroff=E_CAST_INT_TO_SMALL_INT
71
72 CERRWARN += -_gcc=-Wno-parentheses
73 CERRWARN += -_gcc=-Wno-uninitialized
74
75 SMOFF += indenting
76
77 BUILD.AR= $(RM) $@ ; \
78 $(AR) q $@ `$(LORDER) $(OBJECTS:%=$(DIR)/%)| $(TSORT)`
79 $(POST_PROCESS_A)
80
81
82 BLTDEFS= msg.h
83 BLTDATA= msg.c
84 BLTMESG= $(SGSMSGDIR)/libelf
85
86 BLTFILES= $(BLTDEFS) $(BLTDATA) $(BLTMESG)
87
88 SGSMSGCOM= ../common/libelf.msg
89 SGSMSG32= ../common/libelf.32.msg
90 SGSMSGTARG= $(SGSMSGCOM)
91 SGSMSGALL= $(SGSMSGCOM) $(SGSMSG32)
92
93 SGSMSGFLAGS1= $(SGSMSGFLAGS) -m $(BLTMESG)
94 SGSMSGFLAGS2= $(SGSMSGFLAGS) -h $(BLTDEFS) -d $(BLTDATA) -n libelf_msg
95
96 BLTSRCS= $(BLTOBJS:%.o=%.c)
|