xref: /titanic_51/usr/src/cmd/sgs/libconv/Makefile.com (revision 3edf445cce90224c4218c6987d6709e8481cae58)
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#
23*3edf445cSab196087# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
245aefb655Srie# Use is subject to license terms.
257c478bd9Sstevel@tonic-gate#
267c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
277c478bd9Sstevel@tonic-gate#
287c478bd9Sstevel@tonic-gate
297c478bd9Sstevel@tonic-gateLIBRARY =	libconv.a
307c478bd9Sstevel@tonic-gate
315aefb655SrieCOMOBJS32 =	cap32.o			dynamic32.o \
325aefb655Srie		elf32.o			globals32.o \
335aefb655Srie		phdr32.o		\
345aefb655Srie		relocate_i38632.o	relocate_amd6432.o \
355aefb655Srie		relocate_sparc32.o	sections32.o \
36d29b2c44Sab196087		symbols32.o		symbols_sparc32.o \
37d29b2c44Sab196087		syminfo32.o
385aefb655Srie
395aefb655SrieCOMOBJS64 =	cap64.o			dynamic64.o \
405aefb655Srie		elf64.o			globals64.o \
415aefb655Srie		phdr64.o		\
425aefb655Srie		relocate_i38664.o	relocate_amd6464.o \
435aefb655Srie		relocate_sparc64.o	sections64.o \
44d29b2c44Sab196087		symbols64.o		symbols_sparc64.o \
45d29b2c44Sab196087		syminfo64.o
465aefb655Srie
475aefb655SrieCOMOBJS=	arch.o			config.o \
487c478bd9Sstevel@tonic-gate		data.o			deftag.o \
495aefb655Srie		demangle.o		dl.o \
505aefb655Srie		dwarf_ehe.o		group.o	\
515aefb655Srie		lddstub.o		segments.o \
527c478bd9Sstevel@tonic-gate		version.o
537c478bd9Sstevel@tonic-gate
545aefb655SrieCOMOBJS_NOMSG =	tokens.o
555aefb655Srie
565aefb655SrieCOMOBJS_NOMSG32 = \
575aefb655Srie		relocate32.o
585aefb655SrieCOMOBJS_NOMSG64 = \
595aefb655Srie		relocate64.o
607c478bd9Sstevel@tonic-gate
617c478bd9Sstevel@tonic-gateELFCAP_OBJS=	elfcap.o
627c478bd9Sstevel@tonic-gate
637c478bd9Sstevel@tonic-gateASOBJS=		vernote.o
647c478bd9Sstevel@tonic-gate
655aefb655SrieOBJECTS =	$(COMOBJS) $(COMOBJS32) $(COMOBJS64) $(COMOBJS_NOMSG) \
665aefb655Srie		$(COMOBJS_NOMSG32) $(COMOBJS_NOMSG64) $(ELFCAP_OBJS) $(ASOBJS)
677c478bd9Sstevel@tonic-gate
687c478bd9Sstevel@tonic-gateELFCAP=		$(SRC)/common/elfcap
697c478bd9Sstevel@tonic-gate
707c478bd9Sstevel@tonic-gate#
717c478bd9Sstevel@tonic-gate# This library is unusual since it's a static archive of PIC objects.
727c478bd9Sstevel@tonic-gate# Since static archives should never contain CTF data (regardless of
737c478bd9Sstevel@tonic-gate# whether the object code is position-independent), we disable CTF.
747c478bd9Sstevel@tonic-gate#
757c478bd9Sstevel@tonic-gateNOCTFOBJS =	$(OBJECTS)
767c478bd9Sstevel@tonic-gateCTFMERGE_LIB =	:
777c478bd9Sstevel@tonic-gate
787c478bd9Sstevel@tonic-gateinclude 	$(SRC)/lib/Makefile.lib
797c478bd9Sstevel@tonic-gateinclude 	$(SRC)/cmd/sgs/Makefile.com
807c478bd9Sstevel@tonic-gate
817c478bd9Sstevel@tonic-gateCTFCONVERT_O=
827c478bd9Sstevel@tonic-gate
83*3edf445cSab196087README_REVISION=../../packages/common/readme_revision
847c478bd9Sstevel@tonic-gateONLDREADME=	../../packages/common/SUNWonld-README
857c478bd9Sstevel@tonic-gate
867c478bd9Sstevel@tonic-gatePICS=		$(OBJECTS:%=pics/%)
877c478bd9Sstevel@tonic-gate
88c13de8f6Sab196087CPPFLAGS +=	-I$(SRCBASE)/lib/libc/inc -I$(ELFCAP) \
89c13de8f6Sab196087		-I$(SRC)/common/sgsrtcid $(VAR_LIBCONV_CPPFLAGS)
90c13de8f6Sab196087
917c478bd9Sstevel@tonic-gateARFLAGS=	cr
927c478bd9Sstevel@tonic-gate
937c478bd9Sstevel@tonic-gateAS_CPPFLAGS=	-P -D_ASM $(CPPFLAGS)
947c478bd9Sstevel@tonic-gate
955aefb655SrieBLTDATA=	$(COMOBJS:%.o=%_msg.h) \
965aefb655Srie		    $(COMOBJS32:%.o=%_msg.h) $(COMOBJS64:%.o=%_msg.h)
977c478bd9Sstevel@tonic-gate
987c478bd9Sstevel@tonic-gateSRCS=		../common/llib-lconv
995aefb655SrieLINTSRCS=	$(COMOBJS:%.o=../common/%.c) \
1007c478bd9Sstevel@tonic-gate		    $(COMOBJS_NOMSG:%.o=../common/%.c) \
1015aefb655Srie		    $(ELFCOM_OBJS:%.o=$(ELFCAP)/%.c) ../common/lintsup.c
1025aefb655SrieLINTSRCS32 =	$(COMOBJS32:%32.o=../common/%.c)
1035aefb655SrieLINTSRCS64 =	$(COMOBJS64:%64.o=../common/%.c)
1047c478bd9Sstevel@tonic-gate
105*3edf445cSab196087# INTERNAL_RELEASE_BUILD is defined by standard full builds (nightly),
106*3edf445cSab196087# but not for sgs builds we do for development. The result of these
107*3edf445cSab196087# two lines is that dev builds pass -d to the readme_revision script,
108*3edf445cSab196087# generating a more detailed version string for the linker components
109*3edf445cSab196087# that includes the workspace, user, CR, and date. Official builds get
110*3edf445cSab196087# a simpler uncluttered version string.
111*3edf445cSab196087VERNOTE_DEBUG= -d
1127c478bd9Sstevel@tonic-gate$(INTERNAL_RELEASE_BUILD)VERNOTE_DEBUG=
1137c478bd9Sstevel@tonic-gate
1145aefb655SrieSGSMSGTARG=	$(COMOBJS:%.o=../common/%.msg) \
1155aefb655Srie		    $(COMOBJS32:%32.o=../common/%.msg) \
1165aefb655Srie		    $(COMOBJS64:%64.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