17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 55aefb655Srie# Common Development and Distribution License (the "License"). 65aefb655Srie# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 215aefb655Srie 225aefb655Srie# 237e16fca0SAli Bahrami# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 245aefb655Srie# Use is subject to license terms. 257c478bd9Sstevel@tonic-gate# 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gateLIBRARY = libconv.a 287c478bd9Sstevel@tonic-gate 294f680cc6SAli BahramiCOMOBJS32 = cap_machelf32.o dynamic_machelf32.o \ 304f680cc6SAli Bahrami globals_machelf32.o sections_machelf32.o \ 314f680cc6SAli Bahrami symbols_machelf32.o symbols_sparc_machelf32.o 325aefb655Srie 334f680cc6SAli BahramiCOMOBJS64 = cap_machelf64.o dynamic_machelf64.o \ 344f680cc6SAli Bahrami globals_machelf64.o sections_machelf64.o \ 354f680cc6SAli Bahrami symbols_machelf64.o symbols_sparc_machelf64.o 365aefb655Srie 37c6c9aed4Sab196087COMOBJS= arch.o c_literal.o \ 384f680cc6SAli Bahrami cap.o config.o \ 394f680cc6SAli Bahrami corenote.o data.o \ 404f680cc6SAli Bahrami deftag.o demangle.o \ 414f680cc6SAli Bahrami dl.o dwarf.o \ 424f680cc6SAli Bahrami dwarf_ehe.o dynamic.o \ 434f680cc6SAli Bahrami elf.o globals.o \ 447e16fca0SAli Bahrami group.o lddstub.o \ 454f680cc6SAli Bahrami phdr.o relocate.o \ 464f680cc6SAli Bahrami relocate_i386.o relocate_amd64.o \ 474f680cc6SAli Bahrami relocate_sparc.o sections.o \ 48e23c41c9SAli Bahrami segments.o strproc.o \ 49e23c41c9SAli Bahrami symbols.o syminfo.o \ 50*2017c965SRod Evans tokens.o time.o \ 51*2017c965SRod Evans version.o 527c478bd9Sstevel@tonic-gate 537c478bd9Sstevel@tonic-gateELFCAP_OBJS= elfcap.o 547c478bd9Sstevel@tonic-gate 557c478bd9Sstevel@tonic-gateASOBJS= vernote.o 567c478bd9Sstevel@tonic-gate 574f680cc6SAli BahramiBLTOBJS= arch_msg.o c_literal_msg.o \ 584f680cc6SAli Bahrami cap_msg.o config_msg.o \ 594f680cc6SAli Bahrami corenote_msg.o data_msg.o \ 604f680cc6SAli Bahrami deftag_msg.o demangle_msg.o \ 614f680cc6SAli Bahrami dl_msg.o dwarf_msg.o \ 624f680cc6SAli Bahrami dwarf_ehe_msg.o dynamic_msg.o \ 634f680cc6SAli Bahrami elf_msg.o globals_msg.o \ 644f680cc6SAli Bahrami group_msg.o lddstub_msg.o \ 654f680cc6SAli Bahrami phdr_msg.o relocate_amd64_msg.o \ 664f680cc6SAli Bahrami relocate_i386_msg.o relocate_sparc_msg.o \ 674f680cc6SAli Bahrami sections_msg.o segments_msg.o \ 684f680cc6SAli Bahrami symbols_msg.o symbols_sparc_msg.o \ 69*2017c965SRod Evans syminfo_msg.o time_msg.o \ 70*2017c965SRod Evans version_msg.o 714f680cc6SAli Bahrami 724f680cc6SAli Bahrami 734f680cc6SAli BahramiOBJECTS = $(COMOBJS) $(COMOBJS32) $(COMOBJS64) $(ELFCAP_OBJS) \ 744f680cc6SAli Bahrami $(ASOBJS) $(BLTOBJS) 757c478bd9Sstevel@tonic-gate 767c478bd9Sstevel@tonic-gateELFCAP= $(SRC)/common/elfcap 777c478bd9Sstevel@tonic-gate 787c478bd9Sstevel@tonic-gate# 797c478bd9Sstevel@tonic-gate# This library is unusual since it's a static archive of PIC objects. 807c478bd9Sstevel@tonic-gate# Since static archives should never contain CTF data (regardless of 817c478bd9Sstevel@tonic-gate# whether the object code is position-independent), we disable CTF. 827c478bd9Sstevel@tonic-gate# 837c478bd9Sstevel@tonic-gateNOCTFOBJS = $(OBJECTS) 847c478bd9Sstevel@tonic-gateCTFMERGE_LIB = : 857c478bd9Sstevel@tonic-gate 867c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.lib 877c478bd9Sstevel@tonic-gateinclude $(SRC)/cmd/sgs/Makefile.com 887c478bd9Sstevel@tonic-gate 897c478bd9Sstevel@tonic-gateCTFCONVERT_O= 907c478bd9Sstevel@tonic-gate 913edf445cSab196087README_REVISION=../../packages/common/readme_revision 927c478bd9Sstevel@tonic-gateONLDREADME= ../../packages/common/SUNWonld-README 937c478bd9Sstevel@tonic-gate 947c478bd9Sstevel@tonic-gatePICS= $(OBJECTS:%=pics/%) 957c478bd9Sstevel@tonic-gate 96c13de8f6Sab196087CPPFLAGS += -I$(SRCBASE)/lib/libc/inc -I$(ELFCAP) \ 97c13de8f6Sab196087 -I$(SRC)/common/sgsrtcid $(VAR_LIBCONV_CPPFLAGS) 98c13de8f6Sab196087 997c478bd9Sstevel@tonic-gateARFLAGS= cr 1007c478bd9Sstevel@tonic-gate 1017c478bd9Sstevel@tonic-gateAS_CPPFLAGS= -P -D_ASM $(CPPFLAGS) 1027c478bd9Sstevel@tonic-gate 1034f680cc6SAli BahramiBLTDATA= $(BLTOBJS:%.o=%.c) $(BLTOBJS:%.o=%.h) report_bufsize.h 1047c478bd9Sstevel@tonic-gate 1057c478bd9Sstevel@tonic-gateSRCS= ../common/llib-lconv 1065aefb655SrieLINTSRCS= $(COMOBJS:%.o=../common/%.c) \ 1077c478bd9Sstevel@tonic-gate $(COMOBJS_NOMSG:%.o=../common/%.c) \ 1085aefb655Srie $(ELFCOM_OBJS:%.o=$(ELFCAP)/%.c) ../common/lintsup.c 1095aefb655SrieLINTSRCS32 = $(COMOBJS32:%32.o=../common/%.c) 1105aefb655SrieLINTSRCS64 = $(COMOBJS64:%64.o=../common/%.c) 1117c478bd9Sstevel@tonic-gate 1123edf445cSab196087# INTERNAL_RELEASE_BUILD is defined by standard full builds (nightly), 1133edf445cSab196087# but not for sgs builds we do for development. The result of these 1143edf445cSab196087# two lines is that dev builds pass -d to the readme_revision script, 1153edf445cSab196087# generating a more detailed version string for the linker components 1163edf445cSab196087# that includes the workspace, user, CR, and date. Official builds get 1173edf445cSab196087# a simpler uncluttered version string. 1183edf445cSab196087VERNOTE_DEBUG= -d 1197c478bd9Sstevel@tonic-gate$(INTERNAL_RELEASE_BUILD)VERNOTE_DEBUG= 1207c478bd9Sstevel@tonic-gate 1214f680cc6SAli BahramiSGSMSGTARG= $(BLTOBJS:%_msg.o=../common/%.msg) 1227c478bd9Sstevel@tonic-gate 1237c478bd9Sstevel@tonic-gateLINTFLAGS += -u 1247c478bd9Sstevel@tonic-gateLINTFLAGS64 += -u 1257c478bd9Sstevel@tonic-gate 1267c478bd9Sstevel@tonic-gateCLEANFILES += $(BLTDATA) $(LINTOUTS) bld_vernote vernote.s 1275aefb655SrieCLOBBERFILES += $(LINTLIBS) 128