Makefile revision ae115bc77f6fcde83175c75b4206dc2e50747966
5cd4555ad444fd391002ae32450572054369fd42Rob Austein#
5cd4555ad444fd391002ae32450572054369fd42Rob Austein# CDDL HEADER START
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# The contents of this file are subject to the terms of the
dde8659175c5798267fb0fdefd7576e4efe271b3Automatic Updater# Common Development and Distribution License (the "License").
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# You may not use this file except in compliance with the License.
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington#
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# or http://www.opensolaris.org/os/licensing.
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# See the License for the specific language governing permissions
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# CDDL HEADER END
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews#
c6d2578fd67bc1a427d13fd0699b25a187feec8aMark Andrews
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# Use is subject to license terms.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#ident "%Z%%M% %I% %E% SMI"
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# This makefile drives the production of unix (and unix.o).
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# i86pc implementation architecture dependent
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# Path to the base of the uts directory tree (usually /usr/src/uts).
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonUTSBASE = ../..
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Define the module and object file sets.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinUNIX = unix
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark AndrewsDBOOT = dboot
3398334b3acda24b086957286288ca9852662b12Automatic UpdaterMULTIBOOT = multiboot
dde8659175c5798267fb0fdefd7576e4efe271b3Automatic Updater
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinOBJECTS = $(SPECIAL_OBJS:%=$(OBJS_DIR)/%) \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(CORE_OBJS:%=$(OBJS_DIR)/%) \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(KRTLD_OBJS:%=$(OBJS_DIR)/%) \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(MACH_NOT_YET_KMODS:%=$(OBJS_DIR)/%)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinLINTS = $(SPECIAL_OBJS:%.o=$(LINTS_DIR)/%.ln) \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(CORE_OBJS:%.o=$(LINTS_DIR)/%.ln) \
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews $(KRTLD_OBJS:%.o=$(LINTS_DIR)/%.ln) \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(MACH_NOT_YET_KMODS:%.o=$(LINTS_DIR)/%.ln) \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(LINTS_DIR)/vers.ln \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(LINTS_DIR)/modstubs.ln
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonROOTMODULE = $(ROOT_PSM_KERN_DIR)/$(UNIX)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonROOT_MULTIBOOT = $(ROOT_PSM_DIR)/$(MULTIBOOT)
b272d38cc5d24f64c0647a9afb340c21c4b9aaf7Evan HuntBOOT_KERNEL = $(ROOT_BOOT_PSM_KERN_DIR)/$(UNIX)
b272d38cc5d24f64c0647a9afb340c21c4b9aaf7Evan Hunt
b272d38cc5d24f64c0647a9afb340c21c4b9aaf7Evan HuntUNIX_BIN = $(OBJS_DIR)/$(UNIX)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntLIBS = $(GENLIB)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonGENUNIX = genunix
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntGENUNIX_DIR = ../../intel/$(GENUNIX)
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonLIBOPTS = -L $(GENUNIX_DIR)/$(OBJS_DIR) -l $(GENUNIX)
b0c15bd9792112fb47f6d956e580e4369e92f4e7Mark Andrews
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan HuntCTFEXTRAOBJS = $(OBJS_DIR)/vers.o
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonDBOOT_OBJS_DIR = dboot/$(OBJS_DIR)
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan HuntDBOOT_OBJECTS = $(DBOOT_OBJS:%=$(DBOOT_OBJS_DIR)/%)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntDBOOT_O = $(OBJS_DIR)/$(DBOOT).o
cc3aafe737334d444781f8a34ffaf459e075bb9aMark AndrewsDBOOT_S = $(DBOOT_O:%.o=%.s)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntDBOOT_LINTS = $(DBOOT_OBJS:%.o=$(DBOOT_OBJS_DIR)/%.ln)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonDBOOT_LINT = $(i386_LINT)
c6d2578fd67bc1a427d13fd0699b25a187feec8aMark Andrews
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# Include common rules.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtoninclude $(UTSBASE)/i86pc/Makefile.i86pc
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# Define targets
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonALL_TARGET = $(UNIX_BIN) $(MULTIBOOT)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonLINT_TARGET = $(LINT_LIB) $(DBOOT_LINT_LIB)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonINSTALL_TARGET = $(UNIX_BIN) $(MULTIBOOT) $(ROOTMODULE) $(ROOT_MULTIBOOT) $(BOOT_KERNEL)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# This is UNIX_DIR. Use a short path.
561a29af8c54a216e7d30b5b4f6e0d21661654ecMark Andrews#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntUNIX_DIR = .
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
41eeb37b516d1bac073781b6ec50a39a669987dfEvan Hunt# Overrides
41eeb37b516d1bac073781b6ec50a39a669987dfEvan Hunt#
41eeb37b516d1bac073781b6ec50a39a669987dfEvan HuntCLEANFILES += \
41eeb37b516d1bac073781b6ec50a39a669987dfEvan Hunt $(UNIX_O) $(MODSTUBS_O) \
41eeb37b516d1bac073781b6ec50a39a669987dfEvan Hunt $(OBJS_DIR)/vers.c $(OBJS_DIR)/vers.o \
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington $(DTRACESTUBS_O) $(DTRACESTUBS)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonCLEANFILES += \
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington $(DBOOT_O) $(DBOOT_S) \
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington $(DBOOT_OBJECTS) \
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington $(OBJS_DIR)/bios_call_src.o \
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington $(OBJS_DIR)/bios_call_src \
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington $(OBJS_DIR)/bios_call.s \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(DBOOT_OBJS_DIR)/$(DBOOT)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntCLOBBERFILES = $(CLEANFILES) $(UNIX_BIN) $(MULTIBOOT)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntCLEANLINTFILES += $(LINT_LIB) $(DBOOT_LINT_LIB) $(DBOOT_LINTS)
cc6cddfd94e8f0c58c290317b0853dac30b1b895Evan Hunt
cc6cddfd94e8f0c58c290317b0853dac30b1b895Evan Hunt# instr_size needs a special header
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt$(OBJS_DIR)/instr_size.o := EXTRA_OPTIONS = -I$(SRC)/common/dis/i386
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt$(OBJS_DIR)/instr_size.ln := EXTRA_OPTIONS = -I$(SRC)/common/dis/i386
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntCFLAGS += -DDIS_MEM
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# For now, disable these lint checks; maintainers should endeavor
cc6cddfd94e8f0c58c290317b0853dac30b1b895Evan Hunt# to investigate and remove these for maximum lint coverage.
cc6cddfd94e8f0c58c290317b0853dac30b1b895Evan Hunt# Please do not carry these forward to new Makefiles.
cc6cddfd94e8f0c58c290317b0853dac30b1b895Evan Hunt#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
6098d364b690cb9dabf96e9664c4689c8559bd2eMark AndrewsLINTTAGS += -erroff=E_STATIC_UNUSED
6098d364b690cb9dabf96e9664c4689c8559bd2eMark AndrewsLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# Default build targets.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein.KEEP_STATE:
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtondef: $(DEF_DEPS)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtonall: $(ALL_DEPS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinclean: $(CLEAN_DEPS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
cc6cddfd94e8f0c58c290317b0853dac30b1b895Evan Huntclobber: $(CLOBBER_DEPS)
b272d38cc5d24f64c0647a9afb340c21c4b9aaf7Evan Hunt
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinlint: $(LINT_DEPS)
cc6cddfd94e8f0c58c290317b0853dac30b1b895Evan Hunt
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinclean.lint: $(CLEAN_LINT_DEPS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
b272d38cc5d24f64c0647a9afb340c21c4b9aaf7Evan Huntinstall: $(INSTALL_DEPS)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntMAPFILE_32 = $(MAPFILE)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntMAPFILE_64 = $(MAPFILE).amd64
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntMAPFILE_NAME = $(MAPFILE_$(CLASS))
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt$(UNIX_BIN): $(UNIX_O) $(MODSTUBS_O) $(MAPFILE_NAME) \
b272d38cc5d24f64c0647a9afb340c21c4b9aaf7Evan Hunt $(GENLIB) $(DTRACESTUBS) $(DBOOT_O)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(LD) -dy -b -o $@ -e dboot_image -znointerp -M $(MAPFILE_NAME) \
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington $(UNIX_O) $(DBOOT_O) $(MODSTUBS_O) $(LIBOPTS) \
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington $(DTRACESTUBS)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington $(MBH_PATCH) $(UNIX_BIN)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington $(CTFMERGE_UNIQUIFY_AGAINST_GENUNIX)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(POST_PROCESS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein$(UNIX_O): $(OBJECTS) $(OBJS_DIR)/vers.o
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(LD) -r -o $@ $(OBJECTS) $(OBJS_DIR)/vers.o
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein$(DBOOT_O): $(DBOOT_OBJS_DIR) $(DBOOT_OBJECTS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(LD) -dn -M dboot/Mapfile.dboot \
bf45f72ed319628eebce60c368177320943d001fMark Andrews -o $(DBOOT_OBJS_DIR)/$(DBOOT) $(DBOOT_OBJECTS)
bf45f72ed319628eebce60c368177320943d001fMark Andrews @echo " .data" > $(DBOOT_S)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein @echo " .globl dboot_image" >> $(DBOOT_S)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein @echo "dboot_image:" >> $(DBOOT_S)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington $(ELFEXTRACT) $(DBOOT_OBJS_DIR)/$(DBOOT) >> $(DBOOT_S)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington $(COMPILE.s) -o $(DBOOT_O) $(DBOOT_S)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt$(DBOOT_OBJS_DIR):
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt -@mkdir -p $@ 2> /dev/null
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# dboot is built as an intermediate target in dboot.o, so just make
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# dboot.o the dependency here.
cc6cddfd94e8f0c58c290317b0853dac30b1b895Evan Hunt#
cc6cddfd94e8f0c58c290317b0853dac30b1b895Evan Hunt$(MULTIBOOT): $(DBOOT_O)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt $(CP) $(DBOOT_OBJS_DIR)/$(DBOOT) $(MULTIBOOT)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt $(POST_PROCESS)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# The boot kernel is a copy of the 32-bit kernel paired with the
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# install/failsafe miniroot
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt$(BOOT_KERNEL): $(ROOTMODULE) $(ROOT_BOOT_PSM_KERN_DIR)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt $(CP) $(ROOTMODULE) $(BOOT_KERNEL)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt $(POST_PROCESS)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# Special rules for generating assym.h for inclusion in assembly files.
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt$(DSF_DIR)/$(OBJS_DIR)/assym.h $(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h: FRC
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt @cd $(DSF_DIR); $(MAKE) all.targ
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt$(GENLIB): FRC
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt @(cd $(GENLIB_DIR); pwd; $(MAKE) all.targ)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt @pwd
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# The global lint target builds the kernel lint library (llib-lunix.ln)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# which is equivalent to a lint of /unix.o. Then all kernel modules for
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# this architecture are linted against the kernel lint library.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Note: lint errors in the kernel lint library will be repeated for
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# each module. It is important that the kernel lint library
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# be clean to keep the textual output to a reasonable level.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont$(LINT_LIB): $(LINT_LIB_DIR) $(LINTS)
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont @-$(ECHO) "\n$(UNIX): (library construction):"
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont @$(LINT) -o$(UNIX) $(LINTFLAGS) $(LINTS)
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont @$(MV) $(@F) $@
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont$(DBOOT_LINT_LIB): $(LINT_LIB_DIR) $(DBOOT_LINTS)
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont @-$(ECHO) "\n$(DBOOT): (library construction):"
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont @$(LINT) -o$(DBOOT) $(DBOOT_LINTFLAGS) $(DBOOT_LINTS)
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont @$(MV) $(@F) $@
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupontlintlib: $(LINT_DEPS)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Include common targets.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude $(UTSBASE)/i86pc/Makefile.targ
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein