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 (c) 1999 by Sun Microsystems, Inc. 24# All rights reserved. 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.sparc \ 43 Makefile.sparcv9 \ 44 README 45 46DEMOSUBDIRS = common i386 sparc sparcv9 47 48ROOTDEMODIR = $(ROOT)/usr/demo/mdb 49ROOTDEMOFILES = $(DEMOFILES:%=$(ROOTDEMODIR)/%) 50ROOTDEMOSUBDIRS = $(DEMOSUBDIRS:%=$(ROOTDEMODIR)/%) 51 52all clean.lint clean clobber dmods install_h lint: 53 54install: $(ROOTDEMOFILES) 55 56$(ROOTDEMODIR): 57 $(INS.dir) 58 59$(ROOTDEMOSUBDIRS): 60 $(INS.dir) 61 62$(ROOTDEMODIR)/%: %.demo 63 $(INS.rename) 64 65$(ROOTDEMODIR)/%: % 66 $(INS.file) 67 68$(ROOTDEMOFILES): $(ROOTDEMOSUBDIRS) 69 70$(ROOTDEMOSUBDIRS): $(ROOTDEMODIR) 71 72$(ROOTDEMODIR) := OWNER = root 73$(ROOTDEMODIR) := GROUP = bin 74$(ROOTDEMODIR) := DIRMODE = 755 75 76$(ROOTDEMOSUBDIRS) := OWNER = root 77$(ROOTDEMOSUBDIRS) := GROUP = bin 78$(ROOTDEMOSUBDIRS) := DIRMODE = 755 79 80$(ROOTDEMOFILES) := OWNER = root 81$(ROOTDEMOFILES) := GROUP = bin 82$(ROOTDEMOFILES) := FILEMODE = 644 83