xref: /onnv-gate/usr/src/cmd/mdb/Makefile (revision 11838:32bb5d254240)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
55084Sjohnlev# Common Development and Distribution License (the "License").
65084Sjohnlev# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
21*11838SLiane.Praza@Sun.COM
220Sstevel@tonic-gate#
23*11838SLiane.Praza@Sun.COM# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
240Sstevel@tonic-gate# Use is subject to license terms.
250Sstevel@tonic-gate#
260Sstevel@tonic-gate
270Sstevel@tonic-gateinclude $(SRC)/Makefile.master
280Sstevel@tonic-gate
290Sstevel@tonic-gate.KEEP_STATE:
300Sstevel@tonic-gate
310Sstevel@tonic-gatesparc_MACHDIR = sparc
320Sstevel@tonic-gatei386_MACHDIR = intel
330Sstevel@tonic-gate
340Sstevel@tonic-gatesparc_SUBDIRS = sparc sun4u sun4v
355084Sjohnlevi386_SUBDIRS = intel i86pc i86xpv
360Sstevel@tonic-gate
370Sstevel@tonic-gateMACHDIR = $($(MACH)_MACHDIR)
380Sstevel@tonic-gateSUBDIRS = tools $($(MACH)_SUBDIRS) demo
390Sstevel@tonic-gateTARGET =
400Sstevel@tonic-gate
410Sstevel@tonic-gateall := TARGET = all
420Sstevel@tonic-gateclean.lint := TARGET = clean.lint
430Sstevel@tonic-gateclean := TARGET = clean
440Sstevel@tonic-gateclobber := TARGET = clobber
450Sstevel@tonic-gatedmods := TARGET = dmods
460Sstevel@tonic-gateinstall := TARGET = install
470Sstevel@tonic-gateinstall_h := TARGET = install_h
480Sstevel@tonic-gatelint := TARGET = lint
490Sstevel@tonic-gate
500Sstevel@tonic-gateall lint: $(SUBDIRS)
510Sstevel@tonic-gate
520Sstevel@tonic-gatedmods install: install_h $(SUBDIRS)
530Sstevel@tonic-gate
540Sstevel@tonic-gateinstall_h: FRC
550Sstevel@tonic-gate	@cd common/mdb; pwd; $(MAKE) install_h
560Sstevel@tonic-gate
57*11838SLiane.Praza@Sun.COMclean.lint clean: $(SUBDIRS)
580Sstevel@tonic-gate
59*11838SLiane.Praza@Sun.COMclobber: $(SUBDIRS)
600Sstevel@tonic-gate
615084Sjohnlev$($(MACH)_SUBDIRS): tools
625084Sjohnlev
630Sstevel@tonic-gate$(SUBDIRS): FRC
640Sstevel@tonic-gate	@cd $@; pwd; $(MAKE) $(TARGET)
650Sstevel@tonic-gate
660Sstevel@tonic-gateFRC:
670Sstevel@tonic-gate
680Sstevel@tonic-gate#
690Sstevel@tonic-gate# Cross-reference customization: build the cross-reference only over the
700Sstevel@tonic-gate# source directories, and ignore Makefiles and machine-generated source.
710Sstevel@tonic-gate#
720Sstevel@tonic-gateXRDIRS = common $(sparc_SUBDIRS) $(i386_SUBDIRS)
730Sstevel@tonic-gateXRDEL = mdb_lex.c mdb_grammar.c Makefile*
74