Makefile revision dc0093f44ee4fac928e006850f8ed53f68277af5
0N/A#
0N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
5056N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
3516N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
3516N/A#
0N/A#
0N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
3516N/A# Use is subject to license terms.
3516N/A#
0N/A#ident "%Z%%M% %I% %E% SMI"
0N/A
0N/A#
0N/A# Build and link kmdb
0N/A#
0N/Aall: $(PROG) kmdb_modlinktest.o
3516N/A
3516N/A%.o: ../../kmdb/%.c
3516N/A $(COMPILE.c) $<
3516N/A $(CTFCONVERT_O)
3516N/A
3516N/A%.o: ../../mdb/%.c
3516N/A $(COMPILE.c) $<
3516N/A $(CTFCONVERT_O)
3516N/A
3516N/A%.o: $(SRC)/common/dis/i386/%.c
3516N/A $(COMPILE.c) $<
3516N/A $(CTFCONVERT_O)
3516N/A
3516N/A%.ln: ../../kmdb/%.c
3516N/A $(LINT.c) -c $<
3516N/A
0N/A%.ln: ../../mdb/%.c
3516N/A $(LINT.c) -c $<
3516N/A
0N/A%.ln: $(SRC)/common/dis/i386/%.c
0N/A $(LINT.c) -c $<
0N/A
0N/AROOT_MISC_DIR = $(ROOT)/kernel/misc
0N/AROOT_MISC_DIR_64 = $(ROOT_MISC_DIR)/$(SUBDIR64)
0N/A
0N/AROOTMISC = $(ROOT_MISC_DIR)/$(PROG)
0N/AROOTMISC64 = $(ROOT_MISC_DIR_64)/$(PROG)
0N/A
0N/Ainclude ../../../../Makefile.cmd
0N/Ainclude ../../../../Makefile.cmd.64
0N/A
0N/Ainclude ../../Makefile.amd64
0N/Ainclude ../../../Makefile.kmdb
0N/A
0N/ASTANDLIBS += $(ROOT)/usr/lib/amd64/libstanddisasm.so
0N/A
0N/AINCDIRS += $(SRC)/uts/i86pc $(SRC)/common/dis/i386
0N/A
0N/ACPPFLAGS += -DDIS_TEXT
0N/A
0N/Ainstall: all $(ROOTMISC64)
0N/A
0N/A#
3516N/A# lint rules
0N/A#
0N/A
0N/A.PARALLEL: lintkmdb lintprom lintkctl
3516N/A
3516N/Alint: lintkmdb lintprom lintkctl
3516N/A $(LINT) $(ALLLINTFLAGS) $(KMDBOBJS:%.o=%.ln) $(PROMOBJS:%.o=%.ln)
3516N/A
3516N/Alintkmdb: $(KMDBOBJS:%.o=%.ln)
3516N/A $(LINT) $(LINTFLAGS) $(KMDBOBJS:%.o=%.ln)
3516N/A
3516N/Alintprom: $(PROMOBJS:%.o=%.ln)
3516N/A $(LINT) $(LINTFLAGS) $(PROMOBJS:%.o=%.ln)
3516N/A
3516N/Alintkctl: $(KCTLOBJS:%.o=%.ln)
3516N/A $(LINT) $(ALLLINTFLAGS) $(KCTLOBJS:%.o=%.ln)
3516N/A
3516N/Akaif_off.h: ../../kmdb/kaif_off.in
3516N/A $(OFFSETS_CREATE) <../../kmdb/kaif_off.in >$@
3516N/A
3516N/Akmdb_context_off.h: ../../kmdb/kmdb_context_off.in
3516N/A $(OFFSETS_CREATE) <../../kmdb/kmdb_context_off.in >$@
3516N/A
3516N/A#
0N/A# Installation targets
3516N/A#
0N/A
0N/A$(ROOT_MISC_DIR) $(ROOT_MISC_DIR_64):
3516N/A -$(INS.dir.root.sys)
3516N/A
0N/A$(ROOT_MISC_DIR)/%: % $(ROOT_MISC_DIR)
0N/A $(INS.file)
0N/A
3516N/A$(ROOT_MISC_DIR_64)/%: % $(ROOT_MISC_DIR_64)
0N/A $(INS.file)
3516N/A