xref: /titanic_52/usr/src/cmd/sgs/librtld_db/demo/Makefile (revision 20c1c3551cb3b3117591ae38463d16aada597c48)
1*20c1c355SRod Evans#
2*20c1c355SRod Evans# CDDL HEADER START
3*20c1c355SRod Evans#
4*20c1c355SRod Evans# The contents of this file are subject to the terms of the
5*20c1c355SRod Evans# Common Development and Distribution License (the "License").
6*20c1c355SRod Evans# You may not use this file except in compliance with the License.
7*20c1c355SRod Evans#
8*20c1c355SRod Evans# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*20c1c355SRod Evans# or http://www.opensolaris.org/os/licensing.
10*20c1c355SRod Evans# See the License for the specific language governing permissions
11*20c1c355SRod Evans# and limitations under the License.
12*20c1c355SRod Evans#
13*20c1c355SRod Evans# When distributing Covered Code, include this CDDL HEADER in each
14*20c1c355SRod Evans# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*20c1c355SRod Evans# If applicable, add the following below this CDDL HEADER, with the
16*20c1c355SRod Evans# fields enclosed by brackets "[]" replaced with your own identifying
17*20c1c355SRod Evans# information: Portions Copyright [yyyy] [name of copyright owner]
18*20c1c355SRod Evans#
19*20c1c355SRod Evans# CDDL HEADER END
20*20c1c355SRod Evans#
21*20c1c355SRod Evans# Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
22*20c1c355SRod Evans
23*20c1c355SRod Evansinclude		$(SRC)/Makefile.master
24*20c1c355SRod Evans
25*20c1c355SRod EvansMACHDEMOFILES= \
26*20c1c355SRod Evans		i386/regs.c \
27*20c1c355SRod Evans		i386/m_utils.c \
28*20c1c355SRod Evans		i386/rdb_mach.h \
29*20c1c355SRod Evans		i386/Makefile \
30*20c1c355SRod Evans		amd64/regs.c \
31*20c1c355SRod Evans		amd64/rdb_mach.h \
32*20c1c355SRod Evans		amd64/Makefile \
33*20c1c355SRod Evans		sparc/regs.c \
34*20c1c355SRod Evans		sparc/m_utils.c \
35*20c1c355SRod Evans		sparc/rdb_mach.h \
36*20c1c355SRod Evans		sparc/Makefile \
37*20c1c355SRod Evans		sparcv9/regs.c \
38*20c1c355SRod Evans		sparcv9/m_utils.c \
39*20c1c355SRod Evans		sparcv9/rdb_mach.h \
40*20c1c355SRod Evans		sparcv9/Makefile
41*20c1c355SRod Evans
42*20c1c355SRod EvansDEMOFILES= \
43*20c1c355SRod Evans		00README \
44*20c1c355SRod Evans		Makefile.com \
45*20c1c355SRod Evans		Makefile.targ \
46*20c1c355SRod Evans		common/bpt.c \
47*20c1c355SRod Evans		common/dis.c \
48*20c1c355SRod Evans		common/disasm.c \
49*20c1c355SRod Evans		common/disasm.h \
50*20c1c355SRod Evans		common/main.c \
51*20c1c355SRod Evans		common/ps.c \
52*20c1c355SRod Evans		common/gram.y \
53*20c1c355SRod Evans		common/lex.l \
54*20c1c355SRod Evans		common/globals.c \
55*20c1c355SRod Evans		common/help.c \
56*20c1c355SRod Evans		common/utils.c \
57*20c1c355SRod Evans		common/maps.c \
58*20c1c355SRod Evans		common/syms.c \
59*20c1c355SRod Evans		common/callstack.c \
60*20c1c355SRod Evans		common/rdb.h \
61*20c1c355SRod Evans		common/rdb.man \
62*20c1c355SRod Evans		tests/breaks \
63*20c1c355SRod Evans		tests/loadmaps \
64*20c1c355SRod Evans		tests/object_padding_maps \
65*20c1c355SRod Evans		tests/plt_skip \
66*20c1c355SRod Evans		tests/steps \
67*20c1c355SRod Evans		tests/test-sparc-regs \
68*20c1c355SRod Evans		tests/simp.c \
69*20c1c355SRod Evans		tests/sub.c \
70*20c1c355SRod Evans		$(MACHDEMOFILES)
71*20c1c355SRod Evans
72*20c1c355SRod EvansROOTDEMODIRBASE=	$(ROOT)/usr/demo/librtld_db
73*20c1c355SRod Evans
74*20c1c355SRod EvansROOTDEMODIRS=	$(ROOTDEMODIRBASE) \
75*20c1c355SRod Evans		$(ROOTDEMODIRBASE)/common \
76*20c1c355SRod Evans		$(ROOTDEMODIRBASE)/tests \
77*20c1c355SRod Evans		$(ROOTDEMODIRBASE)/i386 \
78*20c1c355SRod Evans		$(ROOTDEMODIRBASE)/amd64 \
79*20c1c355SRod Evans		$(ROOTDEMODIRBASE)/sparc \
80*20c1c355SRod Evans		$(ROOTDEMODIRBASE)/sparcv9
81*20c1c355SRod Evans
82*20c1c355SRod EvansROOTDEMOFILES=	$(DEMOFILES:%=$(ROOTDEMODIRBASE)/%)
83*20c1c355SRod Evans
84*20c1c355SRod Evans$(ROOTDEMODIRS) :=	DIRMODE =	755
85*20c1c355SRod Evans
86*20c1c355SRod EvansSED=		sed -e "/DEMO DELETE START/,/DEMO DELETE END/d"
87*20c1c355SRod Evans
88*20c1c355SRod EvansCLEANFILES=	*.demo */*.demo
89*20c1c355SRod Evans
90*20c1c355SRod Evans.KEEP_STATE:
91*20c1c355SRod Evans.PARALLEL:	$(ROOTDEMOFILES)
92*20c1c355SRod Evans
93*20c1c355SRod Evansall catalog chkmsg lint:
94*20c1c355SRod Evans
95*20c1c355SRod Evansinstall:	$(ROOTDEMODIRS) .WAIT $(ROOTDEMOFILES)
96*20c1c355SRod Evans
97*20c1c355SRod Evansclean clobber: FRC
98*20c1c355SRod Evans		$(RM) $(CLEANFILES)
99*20c1c355SRod Evans
100*20c1c355SRod Evans$(ROOTDEMODIRS):
101*20c1c355SRod Evans		$(INS.dir)
102*20c1c355SRod Evans
103*20c1c355SRod Evans$(ROOTDEMODIRBASE)/Makefile.%: Makefile.%.demo
104*20c1c355SRod Evans		$(INS.rename)
105*20c1c355SRod Evans
106*20c1c355SRod Evans$(ROOTDEMODIRBASE)/%/Makefile: %/Makefile.demo
107*20c1c355SRod Evans		$(INS.rename)
108*20c1c355SRod Evans
109*20c1c355SRod EvansMakefile.%.demo: Makefile.%
110*20c1c355SRod Evans		$(SED) < $< > $@
111*20c1c355SRod Evans
112*20c1c355SRod Evans%/Makefile.demo: %/Makefile
113*20c1c355SRod Evans		$(SED) < $< > $@
114*20c1c355SRod Evans
115*20c1c355SRod Evans$(ROOTDEMODIRBASE)/%: %
116*20c1c355SRod Evans		$(INS.file)
117*20c1c355SRod Evans
118*20c1c355SRod Evans$(ROOTDEMODIRBASE)/common/%:	common/%
119*20c1c355SRod Evans		$(INS.file)
120*20c1c355SRod Evans
121*20c1c355SRod Evans$(ROOTDEMODIRBASE)/tests/%:	tests/%
122*20c1c355SRod Evans		$(INS.file)
123*20c1c355SRod Evans
124*20c1c355SRod Evans$(ROOTDEMODIRBASE)/sparc/%:	sparc/%
125*20c1c355SRod Evans		$(INS.file)
126*20c1c355SRod Evans
127*20c1c355SRod Evans$(ROOTDEMODIRBASE)/sparcv9/%:	sparcv9/%
128*20c1c355SRod Evans		$(INS.file)
129*20c1c355SRod Evans
130*20c1c355SRod Evans$(ROOTDEMODIRBASE)/i386/%:	i386/%
131*20c1c355SRod Evans		$(INS.file)
132*20c1c355SRod Evans
133*20c1c355SRod EvansFRC:
134