xref: /titanic_50/usr/src/cmd/sgs/librtld_db/demo/Makefile.com (revision f8a567bdef7790a6a2a9f6123d45d9badb78a8c8)
120c1c355SRod Evans#
220c1c355SRod Evans# CDDL HEADER START
320c1c355SRod Evans#
420c1c355SRod Evans# The contents of this file are subject to the terms of the
520c1c355SRod Evans# Common Development and Distribution License (the "License").
620c1c355SRod Evans# You may not use this file except in compliance with the License.
720c1c355SRod Evans#
820c1c355SRod Evans# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
920c1c355SRod Evans# or http://www.opensolaris.org/os/licensing.
1020c1c355SRod Evans# See the License for the specific language governing permissions
1120c1c355SRod Evans# and limitations under the License.
1220c1c355SRod Evans#
1320c1c355SRod Evans# When distributing Covered Code, include this CDDL HEADER in each
1420c1c355SRod Evans# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1520c1c355SRod Evans# If applicable, add the following below this CDDL HEADER, with the
1620c1c355SRod Evans# fields enclosed by brackets "[]" replaced with your own identifying
1720c1c355SRod Evans# information: Portions Copyright [yyyy] [name of copyright owner]
1820c1c355SRod Evans#
1920c1c355SRod Evans# CDDL HEADER END
2020c1c355SRod Evans#
2120c1c355SRod Evans# Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
2220c1c355SRod Evans
2320c1c355SRod EvansPROG=		rdb
2420c1c355SRod Evans
2520c1c355SRod Evans# DEMO DELETE START
2620c1c355SRod Evansinclude 	../../../../Makefile.cmd
2720c1c355SRod Evans# DEMO DELETE END
2820c1c355SRod Evans
2920c1c355SRod EvansMACH:sh=	uname -p
3020c1c355SRod Evans
3120c1c355SRod EvansCFLAGS +=	$(DEMOCFLAGS)
3220c1c355SRod Evans
3320c1c355SRod EvansCOMSRC=		bpt.c dis.c main.c ps.c gram.c lex.c globals.c help.c \
3420c1c355SRod Evans		utils.c maps.c syms.c callstack.c disasm.c
3520c1c355SRod EvansM_SRC=		regs.c m_utils.c
3620c1c355SRod Evans
3720c1c355SRod EvansBLTSRC=		gram.c lex.c
3820c1c355SRod EvansBLTHDR=		gram.h
3920c1c355SRod Evans
4020c1c355SRod Evans# DEMO DELETE START
4120c1c355SRod EvansONLDLIBDIR=	/opt/SUNWonld/lib
4220c1c355SRod Evans
4320c1c355SRod Evans# DEMO DELETE END
4420c1c355SRod EvansOBJDIR=		objs
4520c1c355SRod EvansOBJS =		$(COMSRC:%.c=$(OBJDIR)/%.o) $(M_SRC:%.c=$(OBJDIR)/%.o)
4620c1c355SRod Evans
4720c1c355SRod EvansSRCS =		$(COMSRC:%=../common/%) $(M_SRC)
4820c1c355SRod Evans
4920c1c355SRod EvansMV =		mv
5020c1c355SRod Evans
5120c1c355SRod Evans.PARALLEL:	$(OBJS)
5220c1c355SRod Evans
5320c1c355SRod EvansCPPFLAGS=	-I../common -I. $(CPPFLAGS.master)
5420c1c355SRod EvansLDLIBS +=	-lrtld_db -lelf -ll -ly
5520c1c355SRod Evans
5620c1c355SRod EvansCLEANFILES +=	$(BLTSRC) $(BLTHDR) simp libsub.so.1
5720c1c355SRod Evans
5820c1c355SRod Evans# DEMO DELETE START
5920c1c355SRod Evans# The following lint error suppression definitions are to remove lex errors
6020c1c355SRod Evans# we have no control over.
6120c1c355SRod EvansLINTERRS =	-erroff=E_NAME_DEF_NOT_USED2 \
6220c1c355SRod Evans		-erroff=E_FUNC_RET_ALWAYS_IGNOR2 \
6320c1c355SRod Evans		-erroff=E_FUNC_RET_MAYBE_IGNORED2 \
6420c1c355SRod Evans		-erroff=E_BLOCK_DECL_UNUSED \
6520c1c355SRod Evans		-erroff=E_EQUALITY_NOT_ASSIGNMENT
6620c1c355SRod EvansLINTFLAGS +=	$(LDLIBS) -L../../$(MACH) $(LINTERRS)
6720c1c355SRod EvansLINTFLAGS64 +=	$(LDLIBS) -L../../$(MACH) $(LINTERRS)
6820c1c355SRod EvansCLEANFILES +=	$(LINTOUT)
69*f8a567bdSRichard Lowe
70*f8a567bdSRichard LoweCERRWARN +=	-_gcc=-Wno-parentheses
71*f8a567bdSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-label
72*f8a567bdSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-variable
7320c1c355SRod Evans# DEMO DELETE END
7420c1c355SRod Evans
7520c1c355SRod Evanstest-sparc=	test-sparc-regs
7620c1c355SRod Evanstest-i386=
7720c1c355SRod EvansTESTS=		test-maps test-breaks test-steps test-plt_skip \
7820c1c355SRod Evans		    test-object-padding $(test-$(MACH))
7920c1c355SRod Evans
8020c1c355SRod Evans# DEMO DELETE START
8120c1c355SRod EvansROOTONLDBIN=		$(ROOT)/opt/SUNWonld/bin
8220c1c355SRod EvansROOTONLDBINPROG=	$(PROG:%=$(ROOTONLDBIN)/%)
8320c1c355SRod EvansROOTONLDBINPROG64=	$(PROG:%=$(ROOTONLDBIN)/$(MACH64)/%)
8420c1c355SRod Evans
8520c1c355SRod EvansFILEMODE=	0755
8620c1c355SRod Evans# DEMO DELETE END
87