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 28include $(SRC)/Makefile.master 29 30.KEEP_STATE: 31 32sparc_MACHDIR = sparc 33i386_MACHDIR = intel 34 35sparc_SUBDIRS = sparc sun4u sun4v 36i386_SUBDIRS = intel i86pc 37 38MACHDIR = $($(MACH)_MACHDIR) 39SUBDIRS = tools $($(MACH)_SUBDIRS) demo 40TARGET = 41 42$($(MACH)_SUBDIRS): tools 43 44all := TARGET = all 45clean.lint := TARGET = clean.lint 46clean := TARGET = clean 47clobber := TARGET = clobber 48dmods := TARGET = dmods 49install := TARGET = install 50install_h := TARGET = install_h 51lint := TARGET = lint 52 53all lint: $(SUBDIRS) 54 55dmods install: install_h $(SUBDIRS) 56 57install_h: FRC 58 @cd common/mdb; pwd; $(MAKE) install_h 59 60clean.lint clean: $(SUBDIRS) packages 61 62clobber: $(SUBDIRS) packages 63 64$(SUBDIRS): FRC 65 @cd $@; pwd; $(MAKE) $(TARGET) 66 67pkg: install tools 68 @cd packages; pwd; $(MAKE) install 69 70FRC: 71 72# 73# Cross-reference customization: build the cross-reference only over the 74# source directories, and ignore Makefiles and machine-generated source. 75# 76XRDIRS = common $(sparc_SUBDIRS) $(i386_SUBDIRS) 77XRDEL = mdb_lex.c mdb_grammar.c Makefile* 78