xref: /titanic_52/usr/src/cmd/sgs/libconv/Makefile.com (revision b6c3f7863936abeae522e48a13887dddeb691a45)
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 2007 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		syminfo32.o
38
39COMOBJS64 =	cap64.o			dynamic64.o \
40		elf64.o			globals64.o \
41		phdr64.o		\
42		relocate_i38664.o	relocate_amd6464.o \
43		relocate_sparc64.o	sections64.o \
44		symbols64.o		symbols_sparc64.o \
45		syminfo64.o
46
47COMOBJS=	arch.o			config.o \
48		data.o			deftag.o \
49		demangle.o		dl.o \
50		dwarf_ehe.o		group.o	\
51		lddstub.o		segments.o \
52		version.o
53
54COMOBJS_NOMSG =	tokens.o
55
56COMOBJS_NOMSG32 = \
57		relocate32.o
58COMOBJS_NOMSG64 = \
59		relocate64.o
60
61ELFCAP_OBJS=	elfcap.o
62
63ASOBJS=		vernote.o
64
65OBJECTS =	$(COMOBJS) $(COMOBJS32) $(COMOBJS64) $(COMOBJS_NOMSG) \
66		$(COMOBJS_NOMSG32) $(COMOBJS_NOMSG64) $(ELFCAP_OBJS) $(ASOBJS)
67
68ELFCAP=		$(SRC)/common/elfcap
69
70#
71# This library is unusual since it's a static archive of PIC objects.
72# Since static archives should never contain CTF data (regardless of
73# whether the object code is position-independent), we disable CTF.
74#
75NOCTFOBJS =	$(OBJECTS)
76CTFMERGE_LIB =	:
77
78include 	$(SRC)/lib/Makefile.lib
79include 	$(SRC)/cmd/sgs/Makefile.com
80
81CTFCONVERT_O=
82
83ONLDREADME=	../../packages/common/SUNWonld-README
84
85PICS=		$(OBJECTS:%=pics/%)
86
87CPPFLAGS +=	-I$(SRCBASE)/lib/libc/inc -I$(ELFCAP) \
88		-I$(SRC)/common/sgsrtcid $(VAR_LIBCONV_CPPFLAGS)
89
90ARFLAGS=	cr
91
92AS_CPPFLAGS=	-P -D_ASM $(CPPFLAGS)
93
94BLTDATA=	$(COMOBJS:%.o=%_msg.h) \
95		    $(COMOBJS32:%.o=%_msg.h) $(COMOBJS64:%.o=%_msg.h)
96
97SRCS=		../common/llib-lconv
98LINTSRCS=	$(COMOBJS:%.o=../common/%.c) \
99		    $(COMOBJS_NOMSG:%.o=../common/%.c) \
100		    $(ELFCOM_OBJS:%.o=$(ELFCAP)/%.c) ../common/lintsup.c
101LINTSRCS32 =	$(COMOBJS32:%32.o=../common/%.c)
102LINTSRCS64 =	$(COMOBJS64:%64.o=../common/%.c)
103
104VERNOTE_DEBUG= -D
105$(INTERNAL_RELEASE_BUILD)VERNOTE_DEBUG=
106
107SGSMSGTARG=	$(COMOBJS:%.o=../common/%.msg) \
108		    $(COMOBJS32:%32.o=../common/%.msg) \
109		    $(COMOBJS64:%64.o=../common/%.msg)
110
111LINTFLAGS +=	-u
112LINTFLAGS64 +=	-u
113
114CLEANFILES +=	$(BLTDATA) $(LINTOUTS) bld_vernote vernote.s
115CLOBBERFILES +=	$(LINTLIBS)
116