xref: /titanic_50/usr/src/cmd/sgs/libconv/Makefile.com (revision 672986541be54a7a471bb088e60780c37e371d7e)
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$(SRCBASE)/lib/libc/inc -I$(ELFCAP) \
86		-I$(SRC)/common/sgsrtcid $(VAR_LIBCONV_CPPFLAGS)
87
88ARFLAGS=	cr
89
90AS_CPPFLAGS=	-P -D_ASM $(CPPFLAGS)
91
92BLTDATA=	$(COMOBJS:%.o=%_msg.h) \
93		    $(COMOBJS32:%.o=%_msg.h) $(COMOBJS64:%.o=%_msg.h)
94
95SRCS=		../common/llib-lconv
96LINTSRCS=	$(COMOBJS:%.o=../common/%.c) \
97		    $(COMOBJS_NOMSG:%.o=../common/%.c) \
98		    $(ELFCOM_OBJS:%.o=$(ELFCAP)/%.c) ../common/lintsup.c
99LINTSRCS32 =	$(COMOBJS32:%32.o=../common/%.c)
100LINTSRCS64 =	$(COMOBJS64:%64.o=../common/%.c)
101
102VERNOTE_DEBUG= -D
103$(INTERNAL_RELEASE_BUILD)VERNOTE_DEBUG=
104
105SGSMSGTARG=	$(COMOBJS:%.o=../common/%.msg) \
106		    $(COMOBJS32:%32.o=../common/%.msg) \
107		    $(COMOBJS64:%64.o=../common/%.msg)
108
109LINTFLAGS +=	-u
110LINTFLAGS64 +=	-u
111
112CLEANFILES +=	$(BLTDATA) $(LINTOUTS) bld_vernote vernote.s
113CLOBBERFILES +=	$(LINTLIBS)
114