Makefile revision 48bc00d6814e04ff3edb32cafe7d1bc580baff68
0N/A#
5879N/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.
2362N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2362N/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
0N/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
0N/A#
2362N/A#
2362N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
2362N/A# Use is subject to license terms.
0N/A#
0N/A
0N/A#
0N/A# Build and link kmdb
0N/A#
0N/Aall: $(PROG) kmdb_modlinktest.o
0N/A
0N/A%.o: ../../kmdb/%.c
0N/A $(COMPILE.c) $<
0N/A $(CTFCONVERT_O)
0N/A
0N/A%.o: ../../mdb/%.c
1966N/A $(COMPILE.c) $<
1966N/A $(CTFCONVERT_O)
1966N/A
1966N/A%.o: $(SRC)/common/dis/i386/%.c
1966N/A $(COMPILE.c) $<
0N/A $(CTFCONVERT_O)
0N/A
0N/A%.ln: ../../kmdb/%.c
0N/A $(LINT.c) -c $<
0N/A
0N/A%.ln: ../../mdb/%.c
1966N/A $(LINT.c) -c $<
1966N/A
1696N/A%.ln: $(SRC)/common/dis/i386/%.c
0N/A $(LINT.c) -c $<
1045N/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)
6323N/AROOTMISC64 = $(ROOT_MISC_DIR_64)/$(PROG)
0N/A
1045N/Ainclude ../../../../Makefile.cmd
1045N/Ainclude ../../../../Makefile.cmd.64
0N/A
216N/Ainclude ../../Makefile.amd64
0N/Ainclude ../../../Makefile.kmdb
1696N/A
1696N/ASTANDLIBS += $(ROOT)/usr/lib/amd64/libstanddisasm.so
1696N/A
1696N/AINCDIRS += $(SRC)/uts/i86pc $(SRC)/common/dis/i386
1696N/A
0N/ACPPFLAGS += -DDIS_TEXT
0N/A
0N/Ainstall: all $(ROOTMISC64)
0N/A
0N/A#
0N/A# lint rules
0N/A#
0N/A
0N/A.PARALLEL: lintkmdb lintprom lintkctl
0N/A
0N/Alint: lintkmdb lintprom lintkctl
0N/A $(LINT) $(ALLLINTFLAGS) $(KMDBOBJS:%.o=%.ln) $(PROMOBJS:%.o=%.ln)
0N/A
0N/Alintkmdb: $(KMDBOBJS:%.o=%.ln)
0N/A $(LINT) $(LINTFLAGS) $(KMDBOBJS:%.o=%.ln)
0N/A
0N/Alintprom: $(PROMOBJS:%.o=%.ln)
0N/A $(LINT) $(LINTFLAGS) $(PROMOBJS:%.o=%.ln)
0N/A
0N/Alintkctl: $(KCTLOBJS:%.o=%.ln)
0N/A $(LINT) $(ALLLINTFLAGS) $(KCTLOBJS:%.o=%.ln)
0N/A
0N/Akmdb_context_off.h: ../../kmdb/kmdb_context_off.in
0N/A $(OFFSETS_CREATE) <../../kmdb/kmdb_context_off.in >$@
0N/A
0N/A#
0N/A# Installation targets
0N/A#
1966N/A
1966N/A$(ROOT_MISC_DIR) $(ROOT_MISC_DIR_64):
0N/A -$(INS.dir)
0N/A
0N/A$(ROOT_MISC_DIR)/%: % $(ROOT_MISC_DIR)
0N/A $(INS.file)
0N/A
0N/A$(ROOT_MISC_DIR_64)/%: % $(ROOT_MISC_DIR_64)
0N/A $(INS.file)
1971N/A