Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
dc880d958dda393ef6fef89b419e797471b51aeaTilo Mitra#
dc880d958dda393ef6fef89b419e797471b51aeaTilo Mitra# CDDL HEADER START
dc880d958dda393ef6fef89b419e797471b51aeaTilo Mitra#
dc880d958dda393ef6fef89b419e797471b51aeaTilo Mitra# The contents of this file are subject to the terms of the
dc880d958dda393ef6fef89b419e797471b51aeaTilo Mitra# Common Development and Distribution License, Version 1.0 only
dc880d958dda393ef6fef89b419e797471b51aeaTilo Mitra# (the "License"). You may not use this file except in compliance
dc880d958dda393ef6fef89b419e797471b51aeaTilo Mitra# with the License.
dc880d958dda393ef6fef89b419e797471b51aeaTilo Mitra#
dc880d958dda393ef6fef89b419e797471b51aeaTilo Mitra# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
dc880d958dda393ef6fef89b419e797471b51aeaTilo Mitra# or http://www.opensolaris.org/os/licensing.
dc880d958dda393ef6fef89b419e797471b51aeaTilo Mitra# See the License for the specific language governing permissions
dc880d958dda393ef6fef89b419e797471b51aeaTilo Mitra# and limitations under the License.
dc880d958dda393ef6fef89b419e797471b51aeaTilo Mitra#
dc880d958dda393ef6fef89b419e797471b51aeaTilo Mitra# When distributing Covered Code, include this CDDL HEADER in each
dc880d958dda393ef6fef89b419e797471b51aeaTilo Mitra# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dc880d958dda393ef6fef89b419e797471b51aeaTilo Mitra# If applicable, add the following below this CDDL HEADER, with the
dc880d958dda393ef6fef89b419e797471b51aeaTilo Mitra# fields enclosed by brackets "[]" replaced with your own identifying
dc880d958dda393ef6fef89b419e797471b51aeaTilo Mitra# information: Portions Copyright [yyyy] [name of copyright owner]
dc880d958dda393ef6fef89b419e797471b51aeaTilo Mitra#
dc880d958dda393ef6fef89b419e797471b51aeaTilo Mitra# CDDL HEADER END
dc880d958dda393ef6fef89b419e797471b51aeaTilo Mitra#
dc880d958dda393ef6fef89b419e797471b51aeaTilo Mitra#
dc880d958dda393ef6fef89b419e797471b51aeaTilo Mitra# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
dc880d958dda393ef6fef89b419e797471b51aeaTilo Mitra# Use is subject to license terms.
#
#ident "%Z%%M% %I% %E% SMI"
#
# Build and link kmdb
#
all: $(PROG) kmdb_modlinktest.o
%.o: ../../kmdb/%.c
$(COMPILE.c) $<
$(CTFCONVERT_O)
%.o: ../../mdb/%.c
$(COMPILE.c) $<
$(CTFCONVERT_O)
%.ln: ../../kmdb/%.c
$(LINT.c) -c $<
%.ln: ../../mdb/%.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.ia32
include ../../../Makefile.kmdb
INCDIRS += $(SRC)/uts/i86pc
CPPFLAGS += -DDIS_TEXT
install: all $(ROOTMISC)
#
# 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)