xref: /titanic_44/usr/src/cmd/sgs/libconv/Makefile.com (revision 45916cd2fec6e79bca5dee0421bd39e3c2910d1e)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29LIBRARY =	libconv.a
30
31COMOBJS32 =	cap32.o			dynamic32.o \
32		elf32.o			globals32.o \
33		phdr32.o		\
34		relocate_i38632.o	relocate_amd6432.o \
35		relocate_sparc32.o	sections32.o \
36		symbols32.o		symbols_sparc32.o
37
38COMOBJS64 =	cap64.o			dynamic64.o \
39		elf64.o			globals64.o \
40		phdr64.o		\
41		relocate_i38664.o	relocate_amd6464.o \
42		relocate_sparc64.o	sections64.o \
43		symbols64.o		symbols_sparc64.o
44
45COMOBJS=	arch.o			config.o \
46		data.o			deftag.o \
47		demangle.o		dl.o \
48		dwarf_ehe.o		group.o	\
49		lddstub.o		segments.o \
50		version.o
51
52COMOBJS_NOMSG =	tokens.o
53
54COMOBJS_NOMSG32 = \
55		relocate32.o
56COMOBJS_NOMSG64 = \
57		relocate64.o
58
59ELFCAP_OBJS=	elfcap.o
60
61ASOBJS=		vernote.o
62
63OBJECTS =	$(COMOBJS) $(COMOBJS32) $(COMOBJS64) $(COMOBJS_NOMSG) \
64		$(COMOBJS_NOMSG32) $(COMOBJS_NOMSG64) $(ELFCAP_OBJS) $(ASOBJS)
65
66ELFCAP=		$(SRC)/common/elfcap
67
68#
69# This library is unusual since it's a static archive of PIC objects.
70# Since static archives should never contain CTF data (regardless of
71# whether the object code is position-independent), we disable CTF.
72#
73NOCTFOBJS =	$(OBJECTS)
74CTFMERGE_LIB =	:
75
76include 	$(SRC)/lib/Makefile.lib
77include 	$(SRC)/cmd/sgs/Makefile.com
78
79CTFCONVERT_O=
80
81ONLDREADME=	../../packages/common/SUNWonld-README
82
83PICS=		$(OBJECTS:%=pics/%)
84
85CPPFLAGS +=	-I$(ELFCAP) $(VAR_LIBCONV_CPPFLAGS)
86ARFLAGS=	cr
87
88AS_CPPFLAGS=	-P -D_ASM $(CPPFLAGS)
89
90BLTDATA=	$(COMOBJS:%.o=%_msg.h) \
91		    $(COMOBJS32:%.o=%_msg.h) $(COMOBJS64:%.o=%_msg.h)
92
93SRCS=		../common/llib-lconv
94LINTSRCS=	$(COMOBJS:%.o=../common/%.c) \
95		    $(COMOBJS_NOMSG:%.o=../common/%.c) \
96		    $(ELFCOM_OBJS:%.o=$(ELFCAP)/%.c) ../common/lintsup.c
97LINTSRCS32 =	$(COMOBJS32:%32.o=../common/%.c)
98LINTSRCS64 =	$(COMOBJS64:%64.o=../common/%.c)
99
100VERNOTE_DEBUG= -D
101$(INTERNAL_RELEASE_BUILD)VERNOTE_DEBUG=
102
103SGSMSGTARG=	$(COMOBJS:%.o=../common/%.msg) \
104		    $(COMOBJS32:%32.o=../common/%.msg) \
105		    $(COMOBJS64:%64.o=../common/%.msg)
106
107LINTFLAGS +=	-u
108LINTFLAGS64 +=	-u
109
110CLEANFILES +=	$(BLTDATA) $(LINTOUTS) bld_vernote vernote.s
111CLOBBERFILES +=	$(LINTLIBS)
112