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