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 (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21 22# 23# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26# Copyright 2022 Garrett D'Amore 27# 28 29include $(SRC)/Makefile.master 30 31.KEEP_STATE: 32 33i386_MACHDIR = intel 34 35i386_SUBDIRS = intel i86pc i86xpv 36 37MACHDIR = $($(MACH)_MACHDIR) 38SUBDIRS = tools $($(MACH)_SUBDIRS) demo 39TARGET = 40 41all := TARGET = all 42clean := TARGET = clean 43clobber := TARGET = clobber 44dmods := TARGET = dmods 45install := TARGET = install 46install_h := TARGET = install_h 47 48all: $(SUBDIRS) 49 50dmods install: install_h $(SUBDIRS) 51 52install_h: FRC 53 @cd common/mdb; pwd; $(MAKE) install_h 54 55clean: $(SUBDIRS) 56 57clobber: $(SUBDIRS) 58 59$($(MACH)_SUBDIRS): tools 60 61$(SUBDIRS): FRC 62 @cd $@; pwd; $(MAKE) $(TARGET) 63 64FRC: 65 66# 67# Cross-reference customization: build the cross-reference only over the 68# source directories, and ignore Makefiles and machine-generated source. 69# 70XRDIRS = common $(i386_SUBDIRS) 71XRDEL = mdb_lex.c mdb_grammar.c Makefile* 72