xref: /titanic_51/usr/src/cmd/sgs/libconv/Makefile.com (revision 5aefb6555731130ca4fd295960123d71f2d21fe8)
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
5*5aefb655Srie# Common Development and Distribution License (the "License").
6*5aefb655Srie# 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#
21*5aefb655Srie
22*5aefb655Srie#
23*5aefb655Srie# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24*5aefb655Srie# 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
31*5aefb655SrieCOMOBJS32 =	cap32.o			dynamic32.o \
32*5aefb655Srie		elf32.o			globals32.o \
33*5aefb655Srie		phdr32.o		\
34*5aefb655Srie		relocate_i38632.o	relocate_amd6432.o \
35*5aefb655Srie		relocate_sparc32.o	sections32.o \
36*5aefb655Srie		symbols32.o		symbols_sparc32.o
37*5aefb655Srie
38*5aefb655SrieCOMOBJS64 =	cap64.o			dynamic64.o \
39*5aefb655Srie		elf64.o			globals64.o \
40*5aefb655Srie		phdr64.o		\
41*5aefb655Srie		relocate_i38664.o	relocate_amd6464.o \
42*5aefb655Srie		relocate_sparc64.o	sections64.o \
43*5aefb655Srie		symbols64.o		symbols_sparc64.o
44*5aefb655Srie
45*5aefb655SrieCOMOBJS=	arch.o			config.o \
467c478bd9Sstevel@tonic-gate		data.o			deftag.o \
47*5aefb655Srie		demangle.o		dl.o \
48*5aefb655Srie		dwarf_ehe.o		group.o	\
49*5aefb655Srie		lddstub.o		segments.o \
507c478bd9Sstevel@tonic-gate		version.o
517c478bd9Sstevel@tonic-gate
52*5aefb655SrieCOMOBJS_NOMSG =	tokens.o
53*5aefb655Srie
54*5aefb655SrieCOMOBJS_NOMSG32 = \
55*5aefb655Srie		relocate32.o
56*5aefb655SrieCOMOBJS_NOMSG64 = \
57*5aefb655Srie		relocate64.o
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gateELFCAP_OBJS=	elfcap.o
607c478bd9Sstevel@tonic-gate
617c478bd9Sstevel@tonic-gateASOBJS=		vernote.o
627c478bd9Sstevel@tonic-gate
63*5aefb655SrieOBJECTS =	$(COMOBJS) $(COMOBJS32) $(COMOBJS64) $(COMOBJS_NOMSG) \
64*5aefb655Srie		$(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
857c478bd9Sstevel@tonic-gateCPPFLAGS +=	-I$(ELFCAP) $(VAR_LIBCONV_CPPFLAGS)
867c478bd9Sstevel@tonic-gateARFLAGS=	cr
877c478bd9Sstevel@tonic-gate
887c478bd9Sstevel@tonic-gateAS_CPPFLAGS=	-P -D_ASM $(CPPFLAGS)
897c478bd9Sstevel@tonic-gate
90*5aefb655SrieBLTDATA=	$(COMOBJS:%.o=%_msg.h) \
91*5aefb655Srie		    $(COMOBJS32:%.o=%_msg.h) $(COMOBJS64:%.o=%_msg.h)
927c478bd9Sstevel@tonic-gate
937c478bd9Sstevel@tonic-gateSRCS=		../common/llib-lconv
94*5aefb655SrieLINTSRCS=	$(COMOBJS:%.o=../common/%.c) \
957c478bd9Sstevel@tonic-gate		    $(COMOBJS_NOMSG:%.o=../common/%.c) \
96*5aefb655Srie		    $(ELFCOM_OBJS:%.o=$(ELFCAP)/%.c) ../common/lintsup.c
97*5aefb655SrieLINTSRCS32 =	$(COMOBJS32:%32.o=../common/%.c)
98*5aefb655SrieLINTSRCS64 =	$(COMOBJS64:%64.o=../common/%.c)
997c478bd9Sstevel@tonic-gate
1007c478bd9Sstevel@tonic-gateVERNOTE_DEBUG= -D
1017c478bd9Sstevel@tonic-gate$(INTERNAL_RELEASE_BUILD)VERNOTE_DEBUG=
1027c478bd9Sstevel@tonic-gate
103*5aefb655SrieSGSMSGTARG=	$(COMOBJS:%.o=../common/%.msg) \
104*5aefb655Srie		    $(COMOBJS32:%32.o=../common/%.msg) \
105*5aefb655Srie		    $(COMOBJS64:%64.o=../common/%.msg)
1067c478bd9Sstevel@tonic-gate
1077c478bd9Sstevel@tonic-gateLINTFLAGS +=	-u
1087c478bd9Sstevel@tonic-gateLINTFLAGS64 +=	-u
1097c478bd9Sstevel@tonic-gate
1107c478bd9Sstevel@tonic-gateCLEANFILES +=	$(BLTDATA) $(LINTOUTS) bld_vernote vernote.s
111*5aefb655SrieCLOBBERFILES +=	$(LINTLIBS)
112