Mercurial > illumos > onarm
annotate usr/src/cmd/mdb/demo/Makefile @ 4:1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
author | Koji Uno <koji.uno@sun.com> |
---|---|
date | Mon, 31 Aug 2009 14:38:03 +0900 |
parents | c9caec207d52 |
children |
rev | line source |
---|---|
0 | 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, Version 1.0 only | |
6 # (the "License"). You may not use this file except in compliance | |
7 # with the License. | |
8 # | |
9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE | |
10 # or http://www.opensolaris.org/os/licensing. | |
11 # See the License for the specific language governing permissions | |
12 # and limitations under the License. | |
13 # | |
14 # When distributing Covered Code, include this CDDL HEADER in each | |
15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. | |
16 # If applicable, add the following below this CDDL HEADER, with the | |
17 # fields enclosed by brackets "[]" replaced with your own identifying | |
18 # information: Portions Copyright [yyyy] [name of copyright owner] | |
19 # | |
20 # CDDL HEADER END | |
21 # | |
22 # | |
23 # Copyright 2005 Sun Microsystems, Inc. All rights reserved. | |
24 # Use is subject to license terms. | |
25 # | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
26 #ident "%Z%%M% %I% %E% SMI" |
0 | 27 |
28 # | |
29 # Note that this Makefile is *not* the Makefile that is installed in the proto | |
30 # area's /usr/demo/mdb directory -- that file is Makefile.demo. This Makefile | |
31 # copies Makefile.demo and the other files in this directory to /usr/demo/mdb. | |
32 # | |
33 | |
34 include ../../Makefile.cmd | |
35 | |
36 DEMOFILES = \ | |
37 common/example1.c \ | |
38 common/example2.c \ | |
39 Makefile \ | |
40 Makefile.common \ | |
41 Makefile.i386 \ | |
42 Makefile.amd64 \ | |
43 Makefile.sparc \ | |
44 Makefile.sparcv9 \ | |
45 README | |
46 | |
47 DEMOSUBDIRS = common i386 amd64 sparc sparcv9 | |
48 | |
49 ROOTDEMODIR = $(ROOT)/usr/demo/mdb | |
50 ROOTDEMOFILES = $(DEMOFILES:%=$(ROOTDEMODIR)/%) | |
51 ROOTDEMOSUBDIRS = $(DEMOSUBDIRS:%=$(ROOTDEMODIR)/%) | |
52 | |
53 all clean.lint clean clobber dmods install_h lint: | |
54 | |
55 install: $(ROOTDEMOFILES) | |
56 | |
57 $(ROOTDEMODIR): | |
58 $(INS.dir) | |
59 | |
60 $(ROOTDEMOSUBDIRS): | |
61 $(INS.dir) | |
62 | |
63 $(ROOTDEMODIR)/%: %.demo | |
64 $(INS.rename) | |
65 | |
66 $(ROOTDEMODIR)/%: % | |
67 $(INS.file) | |
68 | |
69 $(ROOTDEMOFILES): $(ROOTDEMOSUBDIRS) | |
70 | |
71 $(ROOTDEMOSUBDIRS): $(ROOTDEMODIR) | |
72 | |
73 $(ROOTDEMODIR) := OWNER = root | |
74 $(ROOTDEMODIR) := GROUP = bin | |
75 $(ROOTDEMODIR) := DIRMODE = 755 | |
76 | |
77 $(ROOTDEMOSUBDIRS) := OWNER = root | |
78 $(ROOTDEMOSUBDIRS) := GROUP = bin | |
79 $(ROOTDEMOSUBDIRS) := DIRMODE = 755 | |
80 | |
81 $(ROOTDEMOFILES) := OWNER = root | |
82 $(ROOTDEMOFILES) := GROUP = bin | |
83 $(ROOTDEMOFILES) := FILEMODE = 644 |