Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# CDDL HEADER START
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# The contents of this file are subject to the terms of the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Common Development and Distribution License (the "License").
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# You may not use this file except in compliance with the License.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# or http://www.opensolaris.org/os/licensing.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# See the License for the specific language governing permissions
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# and limitations under the License.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# When distributing Covered Code, include this CDDL HEADER in each
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# If applicable, add the following below this CDDL HEADER, with the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# fields enclosed by brackets "[]" replaced with your own identifying
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# information: Portions Copyright [yyyy] [name of copyright owner]
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# CDDL HEADER END
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Use is subject to license terms.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# This makefile drives the production of unix (and unix.o).
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# i86pc implementation architecture dependent
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Path to the base of the uts directory tree (usually /usr/src/uts).
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesUTSBASE = ../..
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Define the module and object file sets.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesUNIX = unix
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesDBOOT = dboot
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesMULTIBOOT = multiboot
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesOBJECTS = $(SPECIAL_OBJS:%=$(OBJS_DIR)/%) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(CORE_OBJS:%=$(OBJS_DIR)/%) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(KRTLD_OBJS:%=$(OBJS_DIR)/%) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(MACH_NOT_YET_KMODS:%=$(OBJS_DIR)/%)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLINTS = $(SPECIAL_OBJS:%.o=$(LINTS_DIR)/%.ln) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(CORE_OBJS:%.o=$(LINTS_DIR)/%.ln) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(KRTLD_OBJS:%.o=$(LINTS_DIR)/%.ln) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(MACH_NOT_YET_KMODS:%.o=$(LINTS_DIR)/%.ln) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(LINTS_DIR)/vers.ln \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(LINTS_DIR)/modstubs.ln
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesROOTMODULE = $(ROOT_PSM_KERN_DIR)/$(UNIX)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesROOT_MULTIBOOT = $(ROOT_PSM_DIR)/$(MULTIBOOT)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesUNIX_BIN = $(OBJS_DIR)/$(UNIX)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLIBS = $(GENLIB)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesGENUNIX = genunix
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesGENUNIX_DIR = ../../intel/$(GENUNIX)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLIBOPTS = -L $(GENUNIX_DIR)/$(OBJS_DIR) -l $(GENUNIX)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCTFEXTRAOBJS = $(OBJS_DIR)/vers.o
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesDBOOT_OBJS_DIR = dboot/$(OBJS_DIR)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesDBOOT_OBJECTS = $(DBOOT_OBJS:%=$(DBOOT_OBJS_DIR)/%)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesDBOOT_BIN = $(DBOOT_OBJS_DIR)/$(DBOOT)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesDBOOT_O = $(OBJS_DIR)/$(DBOOT).o
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesDBOOT_S = $(DBOOT_O:%.o=%.s)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesDBOOT_LINTS = $(DBOOT_OBJS:%.o=$(DBOOT_OBJS_DIR)/%.ln)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesDBOOT_LINT = $(i386_LINT)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesDBOOT_LINTTAGS = -erroff=E_STATIC_UNUSED
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Include common rules.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude $(UTSBASE)/i86pc/Makefile.i86pc
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Define targets
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesALL_TARGET = $(UNIX_BIN) $(MULTIBOOT)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLINT_TARGET = $(LINT_LIB) $(DBOOT_LINT_LIB)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesINSTALL_TARGET = $(UNIX_BIN) $(MULTIBOOT) $(ROOTMODULE) $(ROOT_MULTIBOOT)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# This is UNIX_DIR. Use a short path.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesUNIX_DIR = .
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Overrides
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCLEANFILES += \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(UNIX_O) $(MODSTUBS_O) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(OBJS_DIR)/vers.c $(OBJS_DIR)/vers.o \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(DTRACESTUBS_O) $(DTRACESTUBS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCLEANFILES += \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(DBOOT_O) $(DBOOT_S) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(DBOOT_OBJECTS) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(OBJS_DIR)/bios_call_src.o \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(OBJS_DIR)/bios_call_src \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(OBJS_DIR)/bios_call.s \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(DBOOT_BIN)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCLEANFILES += \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(OBJS_DIR)/fb_swtch_src.o \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(OBJS_DIR)/fb_swtch_src \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(OBJS_DIR)/fb_swtch.s
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCLOBBERFILES = $(CLEANFILES) $(UNIX_BIN) $(MULTIBOOT)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCLEANLINTFILES += $(LINT_LIB) $(DBOOT_LINT_LIB) $(DBOOT_LINTS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# instr_size needs a special header
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(OBJS_DIR)/instr_size.o := EXTRA_OPTIONS = -I$(SRC)/common/dis/i386
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(OBJS_DIR)/instr_size.ln := EXTRA_OPTIONS = -I$(SRC)/common/dis/i386
0a39e7683f6611d66c55712f50bb240428d832a1bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCFLAGS += -DDIS_MEM
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# For now, disable these lint checks; maintainers should endeavor
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# to investigate and remove these for maximum lint coverage.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Please do not carry these forward to new Makefiles.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLINTTAGS += -erroff=E_STATIC_UNUSED
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCERRWARN += -_gcc=-Wno-parentheses
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCERRWARN += -_gcc=-Wno-uninitialized
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCERRWARN += -_gcc=-Wno-char-subscripts
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCERRWARN += -_gcc=-Wno-unused-variable
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCERRWARN += -_gcc=-Wno-unused-function
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCERRWARN += -_gcc=-Wno-unused-label
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCERRWARN += -_gcc=-Wno-type-limits
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCERRWARN += -_gcc=-Wno-clobbered
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCERRWARN += -_gcc=-Wno-empty-body
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCERRWARN += -_gcc=-Wno-unused-value
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Ensure that lint sees 'struct cpu' containing a fully declared
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# embedded 'struct machcpu'
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLINTFLAGS += -D_MACHDEP -I../../i86pc
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Default build targets.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes.KEEP_STATE:
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesdef: $(DEF_DEPS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesall: $(ALL_DEPS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesclean: $(CLEAN_DEPS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesclobber: $(CLOBBER_DEPS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholeslint: $(LINT_DEPS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesclean.lint: $(CLEAN_LINT_DEPS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinstall: $(INSTALL_DEPS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesMAPFILE_32 = $(MAPFILE)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesMAPFILE_64 = $(MAPFILE).amd64
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesMAPFILE_NAME = $(MAPFILE_$(CLASS))
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(UNIX_BIN): $(UNIX_O) $(MODSTUBS_O) $(MAPFILE_NAME) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(GENLIB) $(DTRACESTUBS) $(DBOOT_O)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(LD) -dy -b -o $@ -e dboot_image -znointerp -M $(MAPFILE_NAME) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(UNIX_O) $(DBOOT_O) $(MODSTUBS_O) $(LIBOPTS) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(DTRACESTUBS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(MBH_PATCH) $(UNIX_BIN)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(CTFMERGE_UNIQUIFY_AGAINST_GENUNIX)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(POST_PROCESS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(UNIX_O): $(OBJECTS) $(OBJS_DIR)/vers.o
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(LD) -r -o $@ $(OBJECTS) $(OBJS_DIR)/vers.o
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(DBOOT_BIN): $(DBOOT_OBJS_DIR) $(DBOOT_OBJECTS) dboot/Mapfile.dboot
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(LD) -dn -e _start -M dboot/Mapfile.dboot \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes -o $(DBOOT_BIN) $(DBOOT_OBJECTS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(DBOOT_O): $(DBOOT_BIN)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @echo " .data" > $(DBOOT_S)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @echo " .globl dboot_image" >> $(DBOOT_S)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @echo "dboot_image:" >> $(DBOOT_S)
4f935de4900dc064a1e145be5e48f6af77ac24fcbnicholes $(ELFEXTRACT) $(DBOOT_BIN) >> $(DBOOT_S)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(COMPILE.s) -o $(DBOOT_O) $(DBOOT_S)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(DBOOT_OBJS_DIR):
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes -@mkdir -p $@ 2> /dev/null
e961abd49ab1b184b356f63591d37083a5651451bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# dboot is built as an intermediate target in dboot.o, so just make
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# dboot.o the dependency here.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(MULTIBOOT): $(DBOOT_O)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(CP) $(DBOOT_BIN) $(MULTIBOOT)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(POST_PROCESS)
e961abd49ab1b184b356f63591d37083a5651451bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Special rules for generating assym.h for inclusion in assembly files.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(DSF_DIR)/$(OBJS_DIR)/assym.h $(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h: FRC
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @cd $(DSF_DIR); $(MAKE) all.targ
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# The global lint target builds the kernel lint library (llib-lunix.ln)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# which is equivalent to a lint of /unix.o. Then all kernel modules for
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# this architecture are linted against the kernel lint library.
440cda576ca9ff6476e4a04bdb253c5023da15eejerenkrantz#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Note: lint errors in the kernel lint library will be repeated for
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# each module. It is important that the kernel lint library
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# be clean to keep the textual output to a reasonable level.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(LINT_LIB): $(LINT_LIB_DIR) $(LINTS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @pwd
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @-$(ECHO) "\n$(UNIX): (library construction):"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @$(LINT) -o$(UNIX) $(LINTFLAGS) $(LINTS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @$(MV) $(@F) $@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(DBOOT_LINT_LIB): $(LINT_LIB_DIR) $(DBOOT_LINTS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @pwd
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @-$(ECHO) "\n$(DBOOT): (library construction):"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @$(LINT) -o$(DBOOT) $(DBOOT_LINTFLAGS) $(DBOOT_LINTS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @$(MV) $(@F) $@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholeslintlib: $(LINT_DEPS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Include common targets.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude $(UTSBASE)/i86pc/Makefile.targ
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes