17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5dc0093f4Seschrock# Common Development and Distribution License (the "License"). 6dc0093f4Seschrock# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gate# 2224fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 252a12f85aSJeremy Jones# Copyright (c) 2013 by Delphix. All rights reserved. 26799823bbSRobert Mustacchi# Copyright 2015, Joyent, Inc. 272a12f85aSJeremy Jones# 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gate.KEEP_STATE: 307c478bd9Sstevel@tonic-gate.SUFFIXES: 317c478bd9Sstevel@tonic-gate 327c478bd9Sstevel@tonic-gateinclude $(SRC)/cmd/mdb/Makefile.tools 337c478bd9Sstevel@tonic-gate 342fb4439dSAlexander Pyhalov# 352fb4439dSAlexander Pyhalov# Make sure we're getting a consistent execution environment for the 362fb4439dSAlexander Pyhalov# embedded scripts. 372fb4439dSAlexander Pyhalov# 382fb4439dSAlexander PyhalovSHELL= /usr/bin/ksh93 392fb4439dSAlexander Pyhalov 407c478bd9Sstevel@tonic-gate$(KMOD_SOURCES_DIFFERENT)KMODSRCS = $(MODSRCS) 41799823bbSRobert Mustacchi$(KMOD_SOURCES_DIFFERENT)KMODASMSRCS = $(MODASMSRCS) 427c478bd9Sstevel@tonic-gate 43799823bbSRobert MustacchiMODOBJS = $(MODSRCS:%.c=dmod/%.o) $(MODASMSRCS:%.s=dmod/%.o) 44799823bbSRobert MustacchiKMODOBJS = $(KMODSRCS:%.c=kmod/%.o) $(KMODASMSRCS:%.s=kmod/%.o) 457c478bd9Sstevel@tonic-gate 462fb4439dSAlexander PyhalovMODNAME_cmd = if [ -n "$(MODULE_NAME)" ]; then print $(MODULE_NAME); else print $(MODULE)| sed -e 's:\.so$$::'; fi 472fb4439dSAlexander PyhalovMODNAME = $(MODNAME_cmd:sh) 487c478bd9Sstevel@tonic-gateKMODULE = $(MODNAME) 497c478bd9Sstevel@tonic-gate 507c478bd9Sstevel@tonic-gateMODFILE = dmod/$(MODULE) 517c478bd9Sstevel@tonic-gateKMODFILE = kmod/$(KMODULE) 527c478bd9Sstevel@tonic-gate 537c478bd9Sstevel@tonic-gate# 547c478bd9Sstevel@tonic-gate# The mess below is designed to pick the right set of objects to build and/or 557c478bd9Sstevel@tonic-gate# lint. We have three flavors: 567c478bd9Sstevel@tonic-gate# 571a7c1b72Smws# 1. proc and raw modules. Only $(MODOBJS) are built. 587c478bd9Sstevel@tonic-gate# 2. kvm modules for systems without kmdb. Only $(MODOBJS) are built. 597c478bd9Sstevel@tonic-gate# 3. kvm modules for systems with kmdb. $(MODOBJS) and $(KMODOBJS) are built. 607c478bd9Sstevel@tonic-gate# 617c478bd9Sstevel@tonic-gate# Complicating matters, we'd like to make the distinction between 2 and 3 before 627c478bd9Sstevel@tonic-gate# this Makefile is loaded. By default, we'll assume that all kvm modules should 637c478bd9Sstevel@tonic-gate# be built for kmdb. If, however, the user sets $(MODULE_BUILD_TYPE) to `mdb', 647c478bd9Sstevel@tonic-gate# the kmdb variant of the module won't be built. 657c478bd9Sstevel@tonic-gate# 667c478bd9Sstevel@tonic-gate 677c478bd9Sstevel@tonic-gate# Which flavors are to be built? 687c478bd9Sstevel@tonic-gateTARGETS_kvm_type_ = both # Build both if $(MODULE_BUILD_TYPE) is unset 697c478bd9Sstevel@tonic-gateTARGETS_kvm_type_kmdb = both 707c478bd9Sstevel@tonic-gateTARGETS_kvm_type_mdb = mdb 717c478bd9Sstevel@tonic-gateTARGETS_kvm_type = $(TARGETS_kvm_type_$(MODULE_BUILD_TYPE)) 727c478bd9Sstevel@tonic-gate 737c478bd9Sstevel@tonic-gate# What should we build? 747c478bd9Sstevel@tonic-gateTARGETS_kvm_kmdb = $(KMODFILE) 757c478bd9Sstevel@tonic-gateTARGETS_kvm_mdb = $(MODFILE) 767c478bd9Sstevel@tonic-gateTARGETS_kvm_both = $(TARGETS_kvm_mdb) $(TARGETS_kvm_kmdb) 777c478bd9Sstevel@tonic-gateTARGETS_kvm = $(TARGETS_kvm_$(TARGETS_kvm_type)) 787c478bd9Sstevel@tonic-gateTARGETS_proc = $(MODFILE) 791a7c1b72SmwsTARGETS_raw = $(MODFILE) 807c478bd9Sstevel@tonic-gateTARGETS = $(TARGETS_$(MDBTGT)) 817c478bd9Sstevel@tonic-gate 827c478bd9Sstevel@tonic-gate# Where should we install that which we've built? 837c478bd9Sstevel@tonic-gateROOTTGTS_kvm_type = $(TARGETS_kvm_type) # overridden by mdb_ks 847c478bd9Sstevel@tonic-gateROOTTGTS_kvm_kmdb = $(ROOTKMOD)/$(KMODULE) 857c478bd9Sstevel@tonic-gateROOTTGTS_kvm_mdb = $(ROOTMOD)/$(MODULE) 867c478bd9Sstevel@tonic-gateROOTTGTS_kvm_both = $(ROOTTGTS_kvm_mdb) $(ROOTTGTS_kvm_kmdb) 877c478bd9Sstevel@tonic-gateROOTTGTS_kvm = $(ROOTTGTS_kvm_$(ROOTTGTS_kvm_type)) 887c478bd9Sstevel@tonic-gateROOTTGTS_proc = $(ROOTMOD)/$(MODULE) 891a7c1b72SmwsROOTTGTS_raw = $(ROOTMOD)/$(MODULE) 907c478bd9Sstevel@tonic-gateROOTTGTS = $(ROOTTGTS_$(MDBTGT)) 917c478bd9Sstevel@tonic-gate 927c478bd9Sstevel@tonic-gate# What should we lint? 937c478bd9Sstevel@tonic-gateKLINTOBJS = $(KMODOBJS:%.o=%.ln) 947c478bd9Sstevel@tonic-gateLINTOBJS = $(MODOBJS:%.o=%.ln) 957c478bd9Sstevel@tonic-gate 967c478bd9Sstevel@tonic-gateLINTFILES_kvm_type = $(TARGETS_kvm_type) 977c478bd9Sstevel@tonic-gateLINTFILES_kvm_both = $(KLINTOBJS) $(LINTOBJS) 987c478bd9Sstevel@tonic-gateLINTFILES_kvm_mdb = $(LINTOBJS) 997c478bd9Sstevel@tonic-gateLINTFILES_kvm = $(LINTFILES_kvm_$(LINTFILES_kvm_type)) 1007c478bd9Sstevel@tonic-gateLINTFILES_proc = $(LINTOBJS) 1011a7c1b72SmwsLINTFILES_raw = $(LINTOBJS) 1027c478bd9Sstevel@tonic-gateLINTFILES = $(LINTFILES_$(MDBTGT)) 1037c478bd9Sstevel@tonic-gate 104*69b0e260SRobert Mustacchi# 105*69b0e260SRobert Mustacchi# Python specific flags. To try and make life easier for folks how are 106*69b0e260SRobert Mustacchi# building with an LFS python, we attempt to use -isystem when it's 107*69b0e260SRobert Mustacchi# available. 108*69b0e260SRobert Mustacchi# 109*69b0e260SRobert MustacchiPYCPPFLAGS = -_gcc=-isystem -_gcc=$(ADJUNCT_PROTO)/usr/include/python$(PYTHON_VERSION) 110*69b0e260SRobert MustacchiPYCPPFLAGS += -_cc=-I$(ADJUNCT_PROTO)/usr/include/python$(PYTHON_VERSION) 111*69b0e260SRobert MustacchiPYLNFLAGS = -I$(ADJUNCT_PROTO)/usr/include/python$(PYTHON_VERSION) 112*69b0e260SRobert Mustacchi 1137c478bd9Sstevel@tonic-gatekvm_TGTFLAGS = -D_KERNEL 1147c478bd9Sstevel@tonic-gateproc_TGTFLAGS = -D_USER 1157c478bd9Sstevel@tonic-gate 1162a12f85aSJeremy JonesC99MODE = $(C99_ENABLE) 1172a12f85aSJeremy Jones 1187c478bd9Sstevel@tonic-gateCFLAGS += $(CCVERBOSE) 1197c478bd9Sstevel@tonic-gateCFLAGS64 += $(CCVERBOSE) 120*69b0e260SRobert MustacchiCPPFLAGS += $($(MDBTGT)_TGTFLAGS) -I../../../common 12167e3a03eSrieLDFLAGS += $(ZTEXT) 12267e3a03eSrieLDFLAGS64 += $(ZTEXT) 123799823bbSRobert MustacchiASFLAGS += -P 124799823bbSRobert MustacchiAS_CPPFLAGS += -D_ASM 1257c478bd9Sstevel@tonic-gate 1267c478bd9Sstevel@tonic-gate# Module type-specific compiler flags 1277c478bd9Sstevel@tonic-gate$(MODOBJS) := CFLAGS += $(C_BIGPICFLAGS) $(XREGSFLAG) 1287c478bd9Sstevel@tonic-gate$(MODOBJS) := CFLAGS64 += $(C_BIGPICFLAGS) $(XREGSFLAG) 1297c478bd9Sstevel@tonic-gate$(KMODOBJS) $(KLINTOBJS) := CPPFLAGS += -D_KMDB 1307c478bd9Sstevel@tonic-gate$(KMODOBJS) := V9CODESIZE = $(CCABS32) 1317c478bd9Sstevel@tonic-gate$(KMODOBJS) := DTS_ERRNO = 1327c478bd9Sstevel@tonic-gate 1337c478bd9Sstevel@tonic-gate# Modules aren't allowed to export symbols 1347c478bd9Sstevel@tonic-gateMAPFILE = $(SRC)/cmd/mdb/common/modules/conf/mapfile 1357c478bd9Sstevel@tonic-gate 13667e3a03eSrie# Modules typically make external references. To provide for -zdefs use 13767e3a03eSrie# and clean ldd(1) processing, explicitly define all external references. 13867e3a03eSrieMAPFILE-EXT = $(SRC)/cmd/mdb/common/modules/conf/mapfile-extern 13967e3a03eSrie 1407c478bd9Sstevel@tonic-gate# 1417c478bd9Sstevel@tonic-gate# kmdb is a kernel module, so we'll use the kernel's build flags. 1427c478bd9Sstevel@tonic-gate$(KMODOBJS) := CFLAGS64 += $(STAND_FLAGS_64) 1437c478bd9Sstevel@tonic-gate 1447c478bd9Sstevel@tonic-gate# 1457c478bd9Sstevel@tonic-gate# Override this to pull source files from another directory 1467c478bd9Sstevel@tonic-gate# 1477c478bd9Sstevel@tonic-gateMODSRCS_DIR = ../../../common/modules/genunix 1487c478bd9Sstevel@tonic-gate 1497c478bd9Sstevel@tonic-gateall: $$(TARGETS) 1507c478bd9Sstevel@tonic-gate 1517c478bd9Sstevel@tonic-gateinstall: all $$(ROOTTGTS) 1527c478bd9Sstevel@tonic-gate 1537c478bd9Sstevel@tonic-gatedmods: install 1547c478bd9Sstevel@tonic-gate 1557c478bd9Sstevel@tonic-gateclean.lint: 156b6805bf7SGordon Ross $(RM) $(LINTFILES) $(MODSRCS:.c=.ln) 1577c478bd9Sstevel@tonic-gate 1587c478bd9Sstevel@tonic-gateclean: 1591a7c1b72Smws $(RM) $(MODOBJS) $(KMODOBJS) $(CLEANFILES) 1607c478bd9Sstevel@tonic-gate 1617c478bd9Sstevel@tonic-gateclobber: clean clean.lint 1621a7c1b72Smws $(RM) $(MODFILE) $(KMODFILE) $(CLOBBERFILES) 1637c478bd9Sstevel@tonic-gate 1647c478bd9Sstevel@tonic-gatelint: $$(LINTFILES) 1657c478bd9Sstevel@tonic-gate 1667c478bd9Sstevel@tonic-gate.NO_PARALLEL: 1677c478bd9Sstevel@tonic-gate.PARALLEL: $(MODOBJS) $(KMODOBJS) mdb_tgt kmdb_tgt dmod kmod \ 1687c478bd9Sstevel@tonic-gate $(TARGETS) $(LINTFILES) 1697c478bd9Sstevel@tonic-gate 17067e3a03eSrie$(MODFILE): dmod .WAIT $(MODOBJS) $$(MAPFILE-EXT) 17167e3a03eSrie $(LINK.c) $(ZDEFS) $(ZIGNORE) $(MAPFILE-EXT:%=-M%) $(GSHARED) \ 17267e3a03eSrie $(MODOBJS) -o $@ $(LDLIBS) -lc 1737c478bd9Sstevel@tonic-gate $(CTFMERGE) -L VERSION -o $@ $(MODOBJS) 1747c478bd9Sstevel@tonic-gate $(POST_PROCESS_SO) 1757c478bd9Sstevel@tonic-gate 1767c478bd9Sstevel@tonic-gate# 1777c478bd9Sstevel@tonic-gate# kmdb dmods must *not* stray from the module API. To ensure that they don't, 1787c478bd9Sstevel@tonic-gate# we try to link them, at build time, against an object that exports the symbols 1797c478bd9Sstevel@tonic-gate# that they can legally use. The link test object is, however, only built when 1807c478bd9Sstevel@tonic-gate# kmdb itself is built. Requiring module developers to build kmdb first would 1817c478bd9Sstevel@tonic-gate# be painful, so by default, module-level builds don't do the link test (the 1827c478bd9Sstevel@tonic-gate# $(POUND_SIGN) assignment below takes care of that). Builds of the entire 1837c478bd9Sstevel@tonic-gate# tree can, however, guarantee the construction of kmdb first, and as such can 1847c478bd9Sstevel@tonic-gate# override the setting of $(KMDB_LINKTEST_ENABLE). This override causes the 1857c478bd9Sstevel@tonic-gate# link test to be run. 1867c478bd9Sstevel@tonic-gate# 1877c478bd9Sstevel@tonic-gate# Developers wanting to force a link test for a single module can use the 1887c478bd9Sstevel@tonic-gate# `linktest' target from within a module directory. 1897c478bd9Sstevel@tonic-gate# 1907c478bd9Sstevel@tonic-gateLINKTESTOBJ = $(KMDBDIR)/kmdb_modlinktest.o 1917c478bd9Sstevel@tonic-gate 1927c478bd9Sstevel@tonic-gateKMDB_LINKTEST = \ 193dc0093f4Seschrock $(LD) $(ZDEFS) -dy -r -o $@.linktest $(KMODOBJS) \ 194dc0093f4Seschrock $(STANDOBJS) $(LINKTESTOBJ) && \ 1957c478bd9Sstevel@tonic-gate $(RM) $@.linktest 1967c478bd9Sstevel@tonic-gate 1977c478bd9Sstevel@tonic-gateKMDB_LINKTEST_ENABLE=$(POUND_SIGN) 1987c478bd9Sstevel@tonic-gate$(KMDB_LINKTEST_ENABLE)KMDB_LINKTEST_CMD = $(KMDB_LINKTEST) 1997c478bd9Sstevel@tonic-gate 2007c478bd9Sstevel@tonic-gate# 2017c478bd9Sstevel@tonic-gate# Ensure that dmods don't use floating point 2027c478bd9Sstevel@tonic-gate# 2037c478bd9Sstevel@tonic-gateKMDB_FPTEST_CMD = $(KMDB_FPTEST) 2047c478bd9Sstevel@tonic-gate 2057c478bd9Sstevel@tonic-gate$(KMODFILE): kmod .WAIT $(KMODOBJS) $(MAPFILE) 206dc0093f4Seschrock $(LD) -dy -r $(MAPFILE:%=-M%) -Nmisc/kmdbmod -o $@ $(KMODOBJS) \ 207dc0093f4Seschrock $(STANDOBJS) 2087c478bd9Sstevel@tonic-gate $(KMDB_LINKTEST_CMD) 2097c478bd9Sstevel@tonic-gate $(KMDB_FPTEST_CMD) 2105ae68c69Sjohnlev $(CTFMERGE) -f -L VERSION -o $@ $(KMODOBJS) 2116ddb3373SRichard Lowe $(POST_PROCESS) 2127c478bd9Sstevel@tonic-gate $(SETDYNFLAG) -f DF_1_NOKSYMS $@ 2137c478bd9Sstevel@tonic-gate 2147c478bd9Sstevel@tonic-gatelinktest: linktest_check .WAIT kmod .WAIT $(KMODOBJS) 2157c478bd9Sstevel@tonic-gate $(KMDB_LINKTEST) 2167c478bd9Sstevel@tonic-gate 2177c478bd9Sstevel@tonic-gatelinktest_check: 218dc0093f4Seschrock @if [ "$(MDBTGT)" != "kvm" ] ; then \ 2197c478bd9Sstevel@tonic-gate echo "ERROR: linktest is not supported non-kvm/disasm dmods" \ 2207c478bd9Sstevel@tonic-gate >&2 ; \ 2217c478bd9Sstevel@tonic-gate exit 1 ; \ 2227c478bd9Sstevel@tonic-gate fi 2237c478bd9Sstevel@tonic-gate 2247c478bd9Sstevel@tonic-gate# 2257c478bd9Sstevel@tonic-gate# Dynamic rules for object construction 2267c478bd9Sstevel@tonic-gate# 2277c478bd9Sstevel@tonic-gatedmod/%.o kmod/%.o: %.c 2287c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 2297c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 2307c478bd9Sstevel@tonic-gate 231799823bbSRobert Mustacchidmod/%.o kmod%.o: %.s 232799823bbSRobert Mustacchi $(COMPILE.s) -o $@ $< 233799823bbSRobert Mustacchi $(CTFCONVERT_O) 234799823bbSRobert Mustacchi 2357c478bd9Sstevel@tonic-gatedmod/%.o kmod/%.o: ../%.c 2367c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 2377c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 2387c478bd9Sstevel@tonic-gate 239799823bbSRobert Mustacchidmod/%.o kmod%.o: ../%.s 240799823bbSRobert Mustacchi $(COMPILE.s) -o $@ $< 241799823bbSRobert Mustacchi $(CTFCONVERT_O) 242799823bbSRobert Mustacchi 2437c478bd9Sstevel@tonic-gatedmod/%.o kmod/%.o: ../../../common/modules/$(MODNAME)/%.c 2447c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 2457c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 2467c478bd9Sstevel@tonic-gate 247799823bbSRobert Mustacchidmod/%.o kmod%.o: ../../../common/modules/$(MODNAME)/%.s 248799823bbSRobert Mustacchi $(COMPILE.s) -o $@ $< 249799823bbSRobert Mustacchi $(CTFCONVERT_O) 250799823bbSRobert Mustacchi 2517c478bd9Sstevel@tonic-gatedmod/%.o kmod/%.o: $$(MODSRCS_DIR)/%.c 2527c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 2537c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 2547c478bd9Sstevel@tonic-gate 255799823bbSRobert Mustacchidmod/%.o kmod%.o: $$(MODSRCS_DIR)/%.s 256799823bbSRobert Mustacchi $(COMPILE.s) -o $@ $< 257799823bbSRobert Mustacchi $(CTFCONVERT_O) 258799823bbSRobert Mustacchi 2597c478bd9Sstevel@tonic-gate# 2607c478bd9Sstevel@tonic-gate# Lint 2617c478bd9Sstevel@tonic-gate# 2627c478bd9Sstevel@tonic-gatedmod/%.ln kmod/%.ln: %.c 2637c478bd9Sstevel@tonic-gate $(LINT.c) -dirout=$(@D) -c $< 2647c478bd9Sstevel@tonic-gate 265799823bbSRobert Mustacchidmod/%.ln kmod/%.ln: %.s 266799823bbSRobert Mustacchi $(LINT.s) -dirout=$(@D) -c $< 267799823bbSRobert Mustacchi 2687c478bd9Sstevel@tonic-gatedmod/%.ln kmod/%.ln: ../%.c 2697c478bd9Sstevel@tonic-gate $(LINT.c) -dirout=$(@D) -c $< 2707c478bd9Sstevel@tonic-gate 271799823bbSRobert Mustacchidmod/%.ln kmod/%.ln: ../%.s 272799823bbSRobert Mustacchi $(LINT.s) -dirout=$(@D) -c $< 273799823bbSRobert Mustacchi 2747c478bd9Sstevel@tonic-gatedmod/%.ln kmod/%.ln: ../../../common/modules/$(MODNAME)/%.c 2757c478bd9Sstevel@tonic-gate $(LINT.c) -dirout=$(@D) -c $< 2767c478bd9Sstevel@tonic-gate 277799823bbSRobert Mustacchidmod/%.ln kmod/%.ln: ../../../common/modules/$(MODNAME)/%.s 278799823bbSRobert Mustacchi $(LINT.s) -dirout=$(@D) -c $< 279799823bbSRobert Mustacchi 2807c478bd9Sstevel@tonic-gatedmod/%.ln kmod/%.ln: $$(MODSRCS_DIR)/%.c 2817c478bd9Sstevel@tonic-gate $(LINT.c) -dirout=$(@D) -c $< 2827c478bd9Sstevel@tonic-gate 283799823bbSRobert Mustacchidmod/%.ln kmod/%.ln: $$(MODSRCS_DIR)/%.s 284799823bbSRobert Mustacchi $(LINT.s) -dirout=$(@D) -c $< 285799823bbSRobert Mustacchi 2867c478bd9Sstevel@tonic-gate# 2877c478bd9Sstevel@tonic-gate# Installation targets 2887c478bd9Sstevel@tonic-gate# 2897c478bd9Sstevel@tonic-gate 2907c478bd9Sstevel@tonic-gate$(ROOT)/usr/lib/mdb/$(MDBTGT): $(ROOT)/usr/lib/mdb 2917c478bd9Sstevel@tonic-gate $(INS.dir) 2927c478bd9Sstevel@tonic-gate 2937c478bd9Sstevel@tonic-gate$(ROOT)/usr/lib/mdb: 2947c478bd9Sstevel@tonic-gate $(INS.dir) 2957c478bd9Sstevel@tonic-gate 2967c478bd9Sstevel@tonic-gate$(ROOT)/kernel/kmdb: 2977c478bd9Sstevel@tonic-gate $(INS.dir) 2987c478bd9Sstevel@tonic-gate 2997c478bd9Sstevel@tonic-gate$(ROOTMOD)/$(MODULE): $(ROOTMOD) 3007c478bd9Sstevel@tonic-gate 3017c478bd9Sstevel@tonic-gate$(ROOTKMOD)/$(KMODULE): $(ROOTKMOD) 3027c478bd9Sstevel@tonic-gate 3037c478bd9Sstevel@tonic-gatekmod dmod: 3047c478bd9Sstevel@tonic-gate -@mkdir -p $@ 305