1b1dd958fScth# 2b1dd958fScth# CDDL HEADER START 3b1dd958fScth# 4b1dd958fScth# The contents of this file are subject to the terms of the 5*bb25c06cSjg# Common Development and Distribution License (the "License"). 6*bb25c06cSjg# You may not use this file except in compliance with the License. 7b1dd958fScth# 8b1dd958fScth# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9b1dd958fScth# or http://www.opensolaris.org/os/licensing. 10b1dd958fScth# See the License for the specific language governing permissions 11b1dd958fScth# and limitations under the License. 12b1dd958fScth# 13b1dd958fScth# When distributing Covered Code, include this CDDL HEADER in each 14b1dd958fScth# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15b1dd958fScth# If applicable, add the following below this CDDL HEADER, with the 16b1dd958fScth# fields enclosed by brackets "[]" replaced with your own identifying 17b1dd958fScth# information: Portions Copyright [yyyy] [name of copyright owner] 18b1dd958fScth# 19b1dd958fScth# CDDL HEADER END 20b1dd958fScth# 21*bb25c06cSjg# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 22b1dd958fScth# Use is subject to license terms. 23b1dd958fScth# 24b1dd958fScth#ident "%Z%%M% %I% %E% SMI" 25b1dd958fScth# 26b1dd958fScth# This makefile drives the production of the emul64 kernel 27b1dd958fScth# driver to testing hotplugging operations 28b1dd958fScth# 29b1dd958fScth 30b1dd958fScth# 31b1dd958fScth# Path to the base of the uts directory tree (usually /usr/src/uts). 32b1dd958fScth# 33b1dd958fScthUTSBASE = ../.. 34b1dd958fScth 35b1dd958fScth# 36b1dd958fScth# Define the module and object file sets. 37b1dd958fScth# 38b1dd958fScthMODULE = emul64 39b1dd958fScthOBJECTS = $(EMUL64_OBJS:%=$(OBJS_DIR)/%) 40b1dd958fScthLINTS = $(EMUL64_OBJS:%.o=$(LINTS_DIR)/%.ln) 41b1dd958fScthROOTMODULE = $(USR_DRV_DIR)/$(MODULE) 42b1dd958fScthCONF_SRCDIR = $(UTSBASE)/common/io 43b1dd958fScth 44b1dd958fScth# 45b1dd958fScth# Include common rules. 46b1dd958fScth# 47b1dd958fScthinclude $(UTSBASE)/intel/Makefile.intel 48b1dd958fScth 49b1dd958fScthCLOBBERFILES += $(MODULE) 50b1dd958fScthCFLAGS += $(CCVERBOSE) 51b1dd958fScth 52b1dd958fScth# 53b1dd958fScth# Define targets 54b1dd958fScth# 55b1dd958fScthALL_TARGET = $(BINARY) $(SRC_CONFFILE) 56b1dd958fScthLINT_TARGET = $(MODULE).lint 57b1dd958fScthINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 58b1dd958fScth 59b1dd958fScth# 60b1dd958fScth# lint pass one enforcement 61b1dd958fScth# 62b1dd958fScthCFLAGS += $(CCVERBOSE) 63b1dd958fScth 64b1dd958fScth# 65*bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor 66*bb25c06cSjg# to investigate and remove these for maximum lint coverage. 67*bb25c06cSjg# Please do not carry these forward to new Makefiles. 68*bb25c06cSjg# 69*bb25c06cSjgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 70*bb25c06cSjg 71*bb25c06cSjg# 72b1dd958fScth# Default build targets. 73b1dd958fScth# 74b1dd958fScth.KEEP_STATE: 75b1dd958fScth 76b1dd958fScthdef: $(DEF_DEPS) 77b1dd958fScth 78b1dd958fScthall: $(ALL_DEPS) 79b1dd958fScth 80b1dd958fScthclean: $(CLEAN_DEPS) 81b1dd958fScth 82b1dd958fScthclobber: $(CLOBBER_DEPS) 83b1dd958fScth 84b1dd958fScthlint: $(LINT_DEPS) 85b1dd958fScth 86b1dd958fScthmodlintlib: $(MODLINTLIB_DEPS) 87b1dd958fScth 88b1dd958fScthclean.lint: $(CLEAN_LINT_DEPS) 89b1dd958fScth 90b1dd958fScthinstall: $(INSTALL_DEPS) 91b1dd958fScth 92b1dd958fScth# 93b1dd958fScth# Include common targets. 94b1dd958fScth# 95b1dd958fScthinclude $(UTSBASE)/intel/Makefile.targ 96