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