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# 26#ident "%Z%%M% %I% %E% SMI" 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 34include ../../Makefile.cmd 35 36DEMOFILES = \ 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 47DEMOSUBDIRS = common i386 amd64 sparc sparcv9 48 49ROOTDEMODIR = $(ROOT)/usr/demo/mdb 50ROOTDEMOFILES = $(DEMOFILES:%=$(ROOTDEMODIR)/%) 51ROOTDEMOSUBDIRS = $(DEMOSUBDIRS:%=$(ROOTDEMODIR)/%) 52 53all clean.lint clean clobber dmods install_h lint: 54 55install: $(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 84