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