xref: /titanic_51/usr/src/cmd/sgs/libconv/Makefile.com (revision c13de8f6a88563211bd4432ca11ca38ed3bf0fc0)
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#
235aefb655Srie# Copyright 2006 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 \
365aefb655Srie		symbols32.o		symbols_sparc32.o
375aefb655Srie
385aefb655SrieCOMOBJS64 =	cap64.o			dynamic64.o \
395aefb655Srie		elf64.o			globals64.o \
405aefb655Srie		phdr64.o		\
415aefb655Srie		relocate_i38664.o	relocate_amd6464.o \
425aefb655Srie		relocate_sparc64.o	sections64.o \
435aefb655Srie		symbols64.o		symbols_sparc64.o
445aefb655Srie
455aefb655SrieCOMOBJS=	arch.o			config.o \
467c478bd9Sstevel@tonic-gate		data.o			deftag.o \
475aefb655Srie		demangle.o		dl.o \
485aefb655Srie		dwarf_ehe.o		group.o	\
495aefb655Srie		lddstub.o		segments.o \
507c478bd9Sstevel@tonic-gate		version.o
517c478bd9Sstevel@tonic-gate
525aefb655SrieCOMOBJS_NOMSG =	tokens.o
535aefb655Srie
545aefb655SrieCOMOBJS_NOMSG32 = \
555aefb655Srie		relocate32.o
565aefb655SrieCOMOBJS_NOMSG64 = \
575aefb655Srie		relocate64.o
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gateELFCAP_OBJS=	elfcap.o
607c478bd9Sstevel@tonic-gate
617c478bd9Sstevel@tonic-gateASOBJS=		vernote.o
627c478bd9Sstevel@tonic-gate
635aefb655SrieOBJECTS =	$(COMOBJS) $(COMOBJS32) $(COMOBJS64) $(COMOBJS_NOMSG) \
645aefb655Srie		$(COMOBJS_NOMSG32) $(COMOBJS_NOMSG64) $(ELFCAP_OBJS) $(ASOBJS)
657c478bd9Sstevel@tonic-gate
667c478bd9Sstevel@tonic-gateELFCAP=		$(SRC)/common/elfcap
677c478bd9Sstevel@tonic-gate
687c478bd9Sstevel@tonic-gate#
697c478bd9Sstevel@tonic-gate# This library is unusual since it's a static archive of PIC objects.
707c478bd9Sstevel@tonic-gate# Since static archives should never contain CTF data (regardless of
717c478bd9Sstevel@tonic-gate# whether the object code is position-independent), we disable CTF.
727c478bd9Sstevel@tonic-gate#
737c478bd9Sstevel@tonic-gateNOCTFOBJS =	$(OBJECTS)
747c478bd9Sstevel@tonic-gateCTFMERGE_LIB =	:
757c478bd9Sstevel@tonic-gate
767c478bd9Sstevel@tonic-gateinclude 	$(SRC)/lib/Makefile.lib
777c478bd9Sstevel@tonic-gateinclude 	$(SRC)/cmd/sgs/Makefile.com
787c478bd9Sstevel@tonic-gate
797c478bd9Sstevel@tonic-gateCTFCONVERT_O=
807c478bd9Sstevel@tonic-gate
817c478bd9Sstevel@tonic-gateONLDREADME=	../../packages/common/SUNWonld-README
827c478bd9Sstevel@tonic-gate
837c478bd9Sstevel@tonic-gatePICS=		$(OBJECTS:%=pics/%)
847c478bd9Sstevel@tonic-gate
85*c13de8f6Sab196087CPPFLAGS +=	-I$(SRCBASE)/lib/libc/inc -I$(ELFCAP) \
86*c13de8f6Sab196087		-I$(SRC)/common/sgsrtcid $(VAR_LIBCONV_CPPFLAGS)
87*c13de8f6Sab196087
887c478bd9Sstevel@tonic-gateARFLAGS=	cr
897c478bd9Sstevel@tonic-gate
907c478bd9Sstevel@tonic-gateAS_CPPFLAGS=	-P -D_ASM $(CPPFLAGS)
917c478bd9Sstevel@tonic-gate
925aefb655SrieBLTDATA=	$(COMOBJS:%.o=%_msg.h) \
935aefb655Srie		    $(COMOBJS32:%.o=%_msg.h) $(COMOBJS64:%.o=%_msg.h)
947c478bd9Sstevel@tonic-gate
957c478bd9Sstevel@tonic-gateSRCS=		../common/llib-lconv
965aefb655SrieLINTSRCS=	$(COMOBJS:%.o=../common/%.c) \
977c478bd9Sstevel@tonic-gate		    $(COMOBJS_NOMSG:%.o=../common/%.c) \
985aefb655Srie		    $(ELFCOM_OBJS:%.o=$(ELFCAP)/%.c) ../common/lintsup.c
995aefb655SrieLINTSRCS32 =	$(COMOBJS32:%32.o=../common/%.c)
1005aefb655SrieLINTSRCS64 =	$(COMOBJS64:%64.o=../common/%.c)
1017c478bd9Sstevel@tonic-gate
1027c478bd9Sstevel@tonic-gateVERNOTE_DEBUG= -D
1037c478bd9Sstevel@tonic-gate$(INTERNAL_RELEASE_BUILD)VERNOTE_DEBUG=
1047c478bd9Sstevel@tonic-gate
1055aefb655SrieSGSMSGTARG=	$(COMOBJS:%.o=../common/%.msg) \
1065aefb655Srie		    $(COMOBJS32:%32.o=../common/%.msg) \
1075aefb655Srie		    $(COMOBJS64:%64.o=../common/%.msg)
1087c478bd9Sstevel@tonic-gate
1097c478bd9Sstevel@tonic-gateLINTFLAGS +=	-u
1107c478bd9Sstevel@tonic-gateLINTFLAGS64 +=	-u
1117c478bd9Sstevel@tonic-gate
1127c478bd9Sstevel@tonic-gateCLEANFILES +=	$(BLTDATA) $(LINTOUTS) bld_vernote vernote.s
1135aefb655SrieCLOBBERFILES +=	$(LINTLIBS)
114