xref: /titanic_44/usr/src/cmd/sgs/liblddbg/Makefile.com (revision c5c327a3798ec591ea25e674d3681765d2439b20)
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 (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
24#
25
26LIBRARY =	liblddbg.a
27VERS =		.4
28
29COMOBJS =	args.o		audit.o		basic.o		debug.o \
30		syminfo.o	tls.o
31
32COMOBJS32 =	bindings32.o	cap32.o		dlfcns32.o	dynamic32.o \
33		elf32.o		entry32.o	files32.o	got32.o \
34 		libs32.o	map32.o		move32.o	phdr32.o \
35		relocate32.o	sections32.o	segments32.o	shdr32.o \
36		statistics32.o	support32.o	syms32.o	unused32.o \
37		util32.o	version32.o
38
39COMOBJS64 =	bindings64.o	cap64.o		dlfcns64.o	dynamic64.o \
40		elf64.o		entry64.o	files64.o	got64.o \
41		libs64.o	map64.o		move64.o	phdr64.o \
42		relocate64.o	sections64.o	segments64.o	shdr64.o \
43		statistics64.o	support64.o	syms64.o	unused64.o \
44		util64.o	version64.o
45
46BLTOBJ =	msg.o
47
48TOOLOBJ =	alist.o
49
50OBJECTS =	$(BLTOBJ) $(COMOBJS) $(COMOBJS32) $(COMOBJS64) $(TOOLOBJ)
51
52
53include		$(SRC)/lib/Makefile.lib
54include		$(SRC)/cmd/sgs/Makefile.com
55
56SRCDIR =	../common
57
58LINTFLAGS +=	-u -D_REENTRANT
59LINTFLAGS64 +=	-u -D_REENTRANT
60
61CPPFLAGS +=	-I$(SRCBASE)/lib/libc/inc
62DYNFLAGS +=	$(VERSREF) $(CC_USE_PROTO) '-R$$ORIGIN'
63LDLIBS +=	$(CONVLIBDIR) $(CONV_LIB) -lc
64
65native :=	DYNFLAGS	+= $(CONVLIBDIR)
66
67BLTDEFS =	msg.h
68BLTDATA =	msg.c
69BLTMESG =	$(SGSMSGDIR)/liblddbg
70
71BLTFILES =	$(BLTDEFS) $(BLTDATA) $(BLTMESG)
72
73SGSMSGCOM =	../common/liblddbg.msg
74SGSMSGALL =	$(SGSMSGCOM)
75SGSMSGTARG =	$(SGSMSGCOM)
76SGSMSGFLAGS +=	-h $(BLTDEFS) -d $(BLTDATA) -m $(BLTMESG) -n liblddbg_msg
77
78CHKSRCS =	$(COMOBJS32:%32.o=../common/%.c)
79
80SRCS =		../common/llib-llddbg
81LIBSRCS =	$(COMOBJS:%.o=../common/%.c) \
82		$(TOOLOBJ:%.o=$(SGSTOOLS)/common/%.c) $(BLTDATA)
83
84LINTSRCS =	$(LIBSRCS) ../common/lintsup.c
85LINTSRCS32 =	$(COMOBJS32:%32.o=../common/%.c)
86LINTSRCS64 =	$(COMOBJS64:%64.o=../common/%.c)
87
88CLEANFILES +=	$(LINTOUTS) $(BLTFILES)
89CLOBBERFILES +=	$(DYNLIB) $(LINTLIBS) $(LIBLINKS)
90
91ROOTFS_DYNLIB =	$(DYNLIB:%=$(ROOTFS_LIBDIR)/%)
92