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.
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.
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]
23 # Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
28 COMOBJS32 = cap_machelf32.o dynamic_machelf32.o \
29 globals_machelf32.o sections_machelf32.o \
30 symbols_machelf32.o symbols_sparc_machelf32.o
32 COMOBJS64 = cap_machelf64.o dynamic_machelf64.o \
33 globals_machelf64.o sections_machelf64.o \
34 symbols_machelf64.o symbols_sparc_machelf64.o
36 COMOBJS= arch.o audit.o \
42 dwarf_ehe.o dynamic.o \
47 relocate_i386.o relocate_amd64.o \
48 relocate_sparc.o sections.o \
49 segments.o strproc.o \
58 BLTOBJS= arch_msg.o audit_msg.o \
60 cap_msg.o config_msg.o \
61 corenote_msg.o data_msg.o \
62 deftag_msg.o demangle_msg.o \
63 dl_msg.o dwarf_msg.o \
64 dwarf_ehe_msg.o dynamic_msg.o \
65 elf_msg.o entry_msg.o \
66 globals_msg.o group_msg.o \
67 map_msg.o lddstub_msg.o \
68 phdr_msg.o relocate_amd64_msg.o \
69 relocate_i386_msg.o relocate_sparc_msg.o \
70 sections_msg.o segments_msg.o \
71 symbols_msg.o symbols_sparc_msg.o \
72 syminfo_msg.o time_msg.o \
76 OBJECTS = $(COMOBJS) $(COMOBJS32) $(COMOBJS64) $(ELFCAP_OBJS) \
80 # This library is unusual since it's a static archive of PIC objects.
81 # Since static archives should never contain CTF data (regardless of
82 # whether the object code is position-independent), we disable CTF.
84 NOCTFOBJS = $(OBJECTS)
87 include $(SRC)/lib/Makefile.lib
88 include $(SRC)/cmd/sgs/Makefile.com
90 CERRWARN += -Wno-type-limits
91 CERRWARN += -Wno-switch
95 PICS= $(OBJECTS:%=pics/%) pics/demangle.o
97 CPPFLAGS += -I$(SRCBASE)/lib/libc/inc -I$(ELFCAP) \
98 -I$(SRC)/common/sgsrtcid
102 AS_CPPFLAGS= -D_ASM $(CPPFLAGS)
104 BLTDATA= $(BLTOBJS:%.o=%.c) $(BLTOBJS:%.o=%.h) report_bufsize.h
106 SRCS= ../common/llib-lconv
108 SGSMSGTARG= $(BLTOBJS:%_msg.o=../common/%.msg)
110 CLEANFILES += $(BLTDATA) bld_vernote vernote.s