xref: /titanic_44/usr/src/cmd/sgs/libconv/Makefile.com (revision 749f21d359d8fbd020c974a1a5227316221bfc9c)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
26# Use is subject to license terms.
27#
28
29LIBRARY=	libconv.a
30
31COMOBJS_MSG=	arch.o			config.o \
32		data.o			deftag.o \
33		dl.o			dynamic.o \
34		elf.o			globals.o \
35		dwarf_ehe.o \
36		cap.o			group.o \
37		relocate_amd64.o \
38		lddstub.o		phdr.o \
39		relocate_i386.o		relocate_sparc.o \
40		sections.o		segments.o \
41		symbols.o		symbols_sparc.o \
42		version.o
43
44COMOBJS_NOMSG=	relocate.o		tokens.o
45
46ELFCAP_OBJS=	elfcap.o
47
48ASOBJS=		vernote.o
49
50OBJECTS=	$(COMOBJS_MSG) $(COMOBJS_NOMSG) $(ELFCAP_OBJS) $(ASOBJS)
51
52ELFCAP=		$(SRC)/common/elfcap
53
54#
55# This library is unusual since it's a static archive of PIC objects.
56# Since static archives should never contain CTF data (regardless of
57# whether the object code is position-independent), we disable CTF.
58#
59NOCTFOBJS=	$(OBJECTS)
60CTFMERGE_LIB=	:
61
62include 	$(SRC)/lib/Makefile.lib
63include 	$(SRC)/cmd/sgs/Makefile.com
64
65CTFCONVERT_O=
66
67ONLDREADME=	../../packages/common/SUNWonld-README
68
69PICS=		$(OBJECTS:%=pics/%)
70
71CPPFLAGS +=	-I$(ELFCAP) $(VAR_LIBCONV_CPPFLAGS)
72ARFLAGS=	cr
73
74AS_CPPFLAGS=	-P -D_ASM $(CPPFLAGS)
75
76BLTDATA=	$(COMOBJS_MSG:%.o=%_msg.h)
77
78SRCS=		../common/llib-lconv
79LINTSRCS=	$(COMOBJS_MSG:%.o=../common/%.c) \
80		$(COMOBJS_NOMSG:%.o=../common/%.c) \
81		$(ELFCOM_OBJS:%.o=$(ELFCAP)/%.c) \
82		../common/lintsup.c
83
84VERNOTE_DEBUG= -D
85$(INTERNAL_RELEASE_BUILD)VERNOTE_DEBUG=
86
87SGSMSGTARG=	$(COMOBJS_MSG:%.o=../common/%.msg)
88
89LINTFLAGS +=	-u
90LINTFLAGS64 +=	-u
91
92CLEANFILES +=	$(BLTDATA) $(LINTOUTS) bld_vernote vernote.s
93CLOBBERFILES +=	$(LINTLIB)
94