xref: /titanic_41/usr/src/cmd/sgs/libconv/Makefile.com (revision 9525b14bcdeb5b5f6f95ab27c2f48f18bd2ec829)
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 2009 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26
27LIBRARY =	libconv.a
28
29COMOBJS32 =	cap_machelf32.o		dynamic_machelf32.o \
30		globals_machelf32.o 	sections_machelf32.o \
31		symbols_machelf32.o	symbols_sparc_machelf32.o
32
33COMOBJS64 =	cap_machelf64.o		dynamic_machelf64.o \
34		globals_machelf64.o	sections_machelf64.o \
35		symbols_machelf64.o	symbols_sparc_machelf64.o
36
37COMOBJS=	arch.o			c_literal.o \
38		cap.o			config.o \
39		corenote.o 		data.o \
40		deftag.o 		demangle.o \
41		dl.o			dwarf.o \
42		dwarf_ehe.o 		dynamic.o \
43		elf.o			globals.o \
44		group.o 		lddstub.o \
45		phdr.o			relocate.o \
46 		relocate_i386.o 	relocate_amd64.o \
47 		relocate_sparc.o 	sections.o \
48   		segments.o    		strproc.o \
49		symbols.o  		syminfo.o \
50  		tokens.o  		time.o \
51		version.o
52
53ELFCAP_OBJS=	elfcap.o
54
55ASOBJS=		vernote.o
56
57BLTOBJS=	arch_msg.o		c_literal_msg.o \
58		cap_msg.o		config_msg.o \
59		corenote_msg.o		data_msg.o \
60		deftag_msg.o		demangle_msg.o \
61		dl_msg.o		dwarf_msg.o \
62		dwarf_ehe_msg.o 	dynamic_msg.o \
63		elf_msg.o 		globals_msg.o \
64		group_msg.o 		lddstub_msg.o \
65		phdr_msg.o 		relocate_amd64_msg.o \
66		relocate_i386_msg.o 	relocate_sparc_msg.o \
67		sections_msg.o 		segments_msg.o \
68		symbols_msg.o 		symbols_sparc_msg.o \
69		syminfo_msg.o 		time_msg.o \
70		version_msg.o
71
72
73OBJECTS =	$(COMOBJS) $(COMOBJS32) $(COMOBJS64) $(ELFCAP_OBJS) \
74		$(ASOBJS) $(BLTOBJS)
75
76ELFCAP=		$(SRC)/common/elfcap
77
78#
79# This library is unusual since it's a static archive of PIC objects.
80# Since static archives should never contain CTF data (regardless of
81# whether the object code is position-independent), we disable CTF.
82#
83NOCTFOBJS =	$(OBJECTS)
84CTFMERGE_LIB =	:
85
86include 	$(SRC)/lib/Makefile.lib
87include 	$(SRC)/cmd/sgs/Makefile.com
88
89CTFCONVERT_O=
90
91README_REVISION=../../packages/common/readme_revision
92ONLDREADME=	../../packages/common/SUNWonld-README
93
94PICS=		$(OBJECTS:%=pics/%)
95
96CPPFLAGS +=	-I$(SRCBASE)/lib/libc/inc -I$(ELFCAP) \
97		-I$(SRC)/common/sgsrtcid $(VAR_LIBCONV_CPPFLAGS)
98
99ARFLAGS=	cr
100
101AS_CPPFLAGS=	-P -D_ASM $(CPPFLAGS)
102
103BLTDATA=	$(BLTOBJS:%.o=%.c) $(BLTOBJS:%.o=%.h) report_bufsize.h
104
105SRCS=		../common/llib-lconv
106LINTSRCS=	$(COMOBJS:%.o=../common/%.c) \
107		    $(COMOBJS_NOMSG:%.o=../common/%.c) \
108		    $(ELFCOM_OBJS:%.o=$(ELFCAP)/%.c) ../common/lintsup.c
109LINTSRCS32 =	$(COMOBJS32:%32.o=../common/%.c)
110LINTSRCS64 =	$(COMOBJS64:%64.o=../common/%.c)
111
112# INTERNAL_RELEASE_BUILD is defined by standard full builds (nightly),
113# but not for sgs builds we do for development. The result of these
114# two lines is that dev builds pass -d to the readme_revision script,
115# generating a more detailed version string for the linker components
116# that includes the workspace, user, CR, and date. Official builds get
117# a simpler uncluttered version string.
118VERNOTE_DEBUG= -d
119$(INTERNAL_RELEASE_BUILD)VERNOTE_DEBUG=
120
121SGSMSGTARG=	$(BLTOBJS:%_msg.o=../common/%.msg)
122
123LINTFLAGS +=	-u
124LINTFLAGS64 +=	-u
125
126CLEANFILES +=	$(BLTDATA) $(LINTOUTS) bld_vernote vernote.s
127CLOBBERFILES +=	$(LINTLIBS)
128