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