xref: /titanic_51/usr/src/cmd/sgs/libconv/Makefile.com (revision 34ae5cdf42c9fd8bc75aedb3a91cc2fba8d5182c)
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#
232020b2b6SRod Evans# Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate
267c478bd9Sstevel@tonic-gateLIBRARY =	libconv.a
277c478bd9Sstevel@tonic-gate
284f680cc6SAli BahramiCOMOBJS32 =	cap_machelf32.o		dynamic_machelf32.o \
294f680cc6SAli Bahrami		globals_machelf32.o 	sections_machelf32.o \
304f680cc6SAli Bahrami		symbols_machelf32.o	symbols_sparc_machelf32.o
315aefb655Srie
324f680cc6SAli BahramiCOMOBJS64 =	cap_machelf64.o		dynamic_machelf64.o \
334f680cc6SAli Bahrami		globals_machelf64.o	sections_machelf64.o \
344f680cc6SAli Bahrami		symbols_machelf64.o	symbols_sparc_machelf64.o
355aefb655Srie
362020b2b6SRod EvansCOMOBJS=	arch.o			audit.o \
372020b2b6SRod Evans		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 \
4369112eddSAli Bahrami		elf.o			entry.o \
4469112eddSAli Bahrami		globals.o		group.o \
4569112eddSAli Bahrami 		lddstub.o		map.o \
464f680cc6SAli Bahrami		phdr.o			relocate.o \
474f680cc6SAli Bahrami 		relocate_i386.o		relocate_amd64.o \
484f680cc6SAli Bahrami		relocate_sparc.o	sections.o \
49e23c41c9SAli Bahrami		segments.o    		strproc.o \
50e23c41c9SAli Bahrami		symbols.o  		syminfo.o \
512017c965SRod Evans  		tokens.o  		time.o \
522017c965SRod Evans		version.o
537c478bd9Sstevel@tonic-gate
547c478bd9Sstevel@tonic-gateELFCAP_OBJS=	elfcap.o
557c478bd9Sstevel@tonic-gate
567c478bd9Sstevel@tonic-gateASOBJS=		vernote.o
577c478bd9Sstevel@tonic-gate
582020b2b6SRod EvansBLTOBJS=	arch_msg.o		audit_msg.o \
592020b2b6SRod Evans		c_literal_msg.o \
604f680cc6SAli Bahrami		cap_msg.o		config_msg.o \
614f680cc6SAli Bahrami		corenote_msg.o		data_msg.o \
624f680cc6SAli Bahrami		deftag_msg.o		demangle_msg.o \
634f680cc6SAli Bahrami		dl_msg.o		dwarf_msg.o \
644f680cc6SAli Bahrami		dwarf_ehe_msg.o 	dynamic_msg.o \
6569112eddSAli Bahrami		elf_msg.o 		entry_msg.o \
6669112eddSAli Bahrami		globals_msg.o		group_msg.o \
6769112eddSAli Bahrami 		map_msg.o		lddstub_msg.o \
684f680cc6SAli Bahrami		phdr_msg.o 		relocate_amd64_msg.o \
694f680cc6SAli Bahrami		relocate_i386_msg.o	relocate_sparc_msg.o \
704f680cc6SAli Bahrami		sections_msg.o 		segments_msg.o \
714f680cc6SAli Bahrami		symbols_msg.o 		symbols_sparc_msg.o \
722017c965SRod Evans		syminfo_msg.o 		time_msg.o \
732017c965SRod Evans		version_msg.o
744f680cc6SAli Bahrami
754f680cc6SAli Bahrami
764f680cc6SAli BahramiOBJECTS =	$(COMOBJS) $(COMOBJS32) $(COMOBJS64) $(ELFCAP_OBJS) \
774f680cc6SAli Bahrami		$(ASOBJS) $(BLTOBJS)
787c478bd9Sstevel@tonic-gate
797c478bd9Sstevel@tonic-gate#
807c478bd9Sstevel@tonic-gate# This library is unusual since it's a static archive of PIC objects.
817c478bd9Sstevel@tonic-gate# Since static archives should never contain CTF data (regardless of
827c478bd9Sstevel@tonic-gate# whether the object code is position-independent), we disable CTF.
837c478bd9Sstevel@tonic-gate#
847c478bd9Sstevel@tonic-gateNOCTFOBJS =	$(OBJECTS)
857c478bd9Sstevel@tonic-gateCTFMERGE_LIB =	:
867c478bd9Sstevel@tonic-gate
877c478bd9Sstevel@tonic-gateinclude 	$(SRC)/lib/Makefile.lib
887c478bd9Sstevel@tonic-gateinclude 	$(SRC)/cmd/sgs/Makefile.com
897c478bd9Sstevel@tonic-gate
90*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-type-limits
91*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
92*7014882cSRichard Lowe
937c478bd9Sstevel@tonic-gateCTFCONVERT_O=
947c478bd9Sstevel@tonic-gate
953edf445cSab196087README_REVISION=../../packages/common/readme_revision
967c478bd9Sstevel@tonic-gateONLDREADME=	../../packages/common/SUNWonld-README
977c478bd9Sstevel@tonic-gate
987c478bd9Sstevel@tonic-gatePICS=		$(OBJECTS:%=pics/%)
997c478bd9Sstevel@tonic-gate
100c13de8f6Sab196087CPPFLAGS +=	-I$(SRCBASE)/lib/libc/inc -I$(ELFCAP) \
10120c1c355SRod Evans		-I$(SRC)/common/sgsrtcid
102c13de8f6Sab196087
1037c478bd9Sstevel@tonic-gateARFLAGS=	cr
1047c478bd9Sstevel@tonic-gate
1057c478bd9Sstevel@tonic-gateAS_CPPFLAGS=	-P -D_ASM $(CPPFLAGS)
1067c478bd9Sstevel@tonic-gate
1074f680cc6SAli BahramiBLTDATA=	$(BLTOBJS:%.o=%.c) $(BLTOBJS:%.o=%.h) report_bufsize.h
1087c478bd9Sstevel@tonic-gate
1097c478bd9Sstevel@tonic-gateSRCS=		../common/llib-lconv
1105aefb655SrieLINTSRCS=	$(COMOBJS:%.o=../common/%.c) \
1117c478bd9Sstevel@tonic-gate		    $(COMOBJS_NOMSG:%.o=../common/%.c) \
1125aefb655Srie		    $(ELFCOM_OBJS:%.o=$(ELFCAP)/%.c) ../common/lintsup.c
1135aefb655SrieLINTSRCS32 =	$(COMOBJS32:%32.o=../common/%.c)
1145aefb655SrieLINTSRCS64 =	$(COMOBJS64:%64.o=../common/%.c)
1157c478bd9Sstevel@tonic-gate
1164f680cc6SAli BahramiSGSMSGTARG=	$(BLTOBJS:%_msg.o=../common/%.msg)
1177c478bd9Sstevel@tonic-gate
1187c478bd9Sstevel@tonic-gateLINTFLAGS +=	-u
1197c478bd9Sstevel@tonic-gateLINTFLAGS64 +=	-u
1207c478bd9Sstevel@tonic-gate
1217c478bd9Sstevel@tonic-gateCLEANFILES +=	$(BLTDATA) $(LINTOUTS) bld_vernote vernote.s
1225aefb655SrieCLOBBERFILES +=	$(LINTLIBS)
123