10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*3066Sjg# Common Development and Distribution License (the "License"). 6*3066Sjg# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 210Sstevel@tonic-gate# 22*3066Sjg# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 230Sstevel@tonic-gate# Use is subject to license terms. 240Sstevel@tonic-gate# 250Sstevel@tonic-gate#ident "%Z%%M% %I% %E% SMI" 260Sstevel@tonic-gate# 270Sstevel@tonic-gate# This makefile drives the production of the object file system 280Sstevel@tonic-gate# kernel module. 290Sstevel@tonic-gate# 300Sstevel@tonic-gate# intel implementation architecture dependent 310Sstevel@tonic-gate# 320Sstevel@tonic-gate 330Sstevel@tonic-gate# 340Sstevel@tonic-gate# Path to the base of the uts directory tree (usually /usr/src/uts). 350Sstevel@tonic-gate# 360Sstevel@tonic-gateUTSBASE = ../.. 370Sstevel@tonic-gate 380Sstevel@tonic-gate# 390Sstevel@tonic-gate# Define the module and object file sets. 400Sstevel@tonic-gate# 410Sstevel@tonic-gateMODULE = objfs 420Sstevel@tonic-gateOBJECTS = $(OBJFS_OBJS:%=$(OBJS_DIR)/%) 430Sstevel@tonic-gateLINTS = $(OBJFS_OBJS:%.o=$(LINTS_DIR)/%.ln) 440Sstevel@tonic-gateROOTMODULE = $(ROOT_FS_DIR)/$(MODULE) 450Sstevel@tonic-gate 460Sstevel@tonic-gate# 470Sstevel@tonic-gate# Include common rules. 480Sstevel@tonic-gate# 490Sstevel@tonic-gateinclude $(UTSBASE)/intel/Makefile.intel 500Sstevel@tonic-gate 510Sstevel@tonic-gate# 520Sstevel@tonic-gate# Define targets 530Sstevel@tonic-gate# 540Sstevel@tonic-gateALL_TARGET = $(BINARY) 550Sstevel@tonic-gateLINT_TARGET = $(MODULE).lint 560Sstevel@tonic-gateINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 570Sstevel@tonic-gate 580Sstevel@tonic-gate# 590Sstevel@tonic-gate# Overrides. 600Sstevel@tonic-gate# 610Sstevel@tonic-gateCFLAGS += $(CCVERBOSE) 620Sstevel@tonic-gate 630Sstevel@tonic-gate# 64*3066Sjg# For now, disable these lint checks; maintainers should endeavor 65*3066Sjg# to investigate and remove these for maximum lint coverage. 66*3066Sjg# Please do not carry these forward to new Makefiles. 67*3066Sjg# 68*3066SjgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 69*3066SjgLINTTAGS += -erroff=E_STATIC_UNUSED 70*3066Sjg 71*3066Sjg# 720Sstevel@tonic-gate# Default build targets. 730Sstevel@tonic-gate# 740Sstevel@tonic-gate.KEEP_STATE: 750Sstevel@tonic-gate 760Sstevel@tonic-gatedef: $(DEF_DEPS) 770Sstevel@tonic-gate 780Sstevel@tonic-gateall: $(ALL_DEPS) 790Sstevel@tonic-gate 800Sstevel@tonic-gateclean: $(CLEAN_DEPS) 810Sstevel@tonic-gate 820Sstevel@tonic-gateclobber: $(CLOBBER_DEPS) 830Sstevel@tonic-gate 840Sstevel@tonic-gatelint: $(LINT_DEPS) 850Sstevel@tonic-gate 860Sstevel@tonic-gatemodlintlib: $(MODLINTLIB_DEPS) 870Sstevel@tonic-gate 880Sstevel@tonic-gateclean.lint: $(CLEAN_LINT_DEPS) 890Sstevel@tonic-gate 900Sstevel@tonic-gateinstall: $(INSTALL_DEPS) 910Sstevel@tonic-gate 920Sstevel@tonic-gate# 930Sstevel@tonic-gate# Include common targets. 940Sstevel@tonic-gate# 950Sstevel@tonic-gateinclude $(UTSBASE)/intel/Makefile.targ 96