1facf4a8dSllai1# 2facf4a8dSllai1# CDDL HEADER START 3facf4a8dSllai1# 4facf4a8dSllai1# The contents of this file are subject to the terms of the 5facf4a8dSllai1# Common Development and Distribution License (the "License"). 6facf4a8dSllai1# You may not use this file except in compliance with the License. 7facf4a8dSllai1# 8facf4a8dSllai1# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9facf4a8dSllai1# or http://www.opensolaris.org/os/licensing. 10facf4a8dSllai1# See the License for the specific language governing permissions 11facf4a8dSllai1# and limitations under the License. 12facf4a8dSllai1# 13facf4a8dSllai1# When distributing Covered Code, include this CDDL HEADER in each 14facf4a8dSllai1# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15facf4a8dSllai1# If applicable, add the following below this CDDL HEADER, with the 16facf4a8dSllai1# fields enclosed by brackets "[]" replaced with your own identifying 17facf4a8dSllai1# information: Portions Copyright [yyyy] [name of copyright owner] 18facf4a8dSllai1# 19facf4a8dSllai1# CDDL HEADER END 20facf4a8dSllai1# 21facf4a8dSllai1# uts/intel/dev/Makefile 22facf4a8dSllai1# 23681d9761SEric Taylor# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24facf4a8dSllai1# Use is subject to license terms. 25facf4a8dSllai1# 26facf4a8dSllai1# This makefile drives the production of the dev file system 27facf4a8dSllai1# kernel module. 28facf4a8dSllai1# 29facf4a8dSllai1# intel architecture dependent 30facf4a8dSllai1# 31facf4a8dSllai1 32facf4a8dSllai1# 33facf4a8dSllai1# Path to the base of the uts directory tree (usually /usr/src/uts). 34facf4a8dSllai1# 35facf4a8dSllai1UTSBASE = ../.. 36facf4a8dSllai1 37facf4a8dSllai1# 38facf4a8dSllai1# Define the module and object file sets. 39facf4a8dSllai1# 40facf4a8dSllai1MODULE = dev 41facf4a8dSllai1OBJECTS = $(DEV_OBJS:%=$(OBJS_DIR)/%) 42facf4a8dSllai1LINTS = $(DEV_OBJS:%.o=$(LINTS_DIR)/%.ln) 43facf4a8dSllai1ROOTMODULE = $(ROOT_FS_DIR)/$(MODULE) 44facf4a8dSllai1 45facf4a8dSllai1# 46facf4a8dSllai1# Include common rules. 47facf4a8dSllai1# 48facf4a8dSllai1include $(UTSBASE)/intel/Makefile.intel 49facf4a8dSllai1 50facf4a8dSllai1# 51facf4a8dSllai1# Define targets 52facf4a8dSllai1# 53facf4a8dSllai1ALL_TARGET = $(BINARY) 54facf4a8dSllai1LINT_TARGET = $(MODULE).lint 55facf4a8dSllai1INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 56facf4a8dSllai1 57facf4a8dSllai1# 58facf4a8dSllai1# Override defaults to build a unique, local modstubs.o. 59facf4a8dSllai1# 60facf4a8dSllai1MODSTUBS_DIR = $(OBJS_DIR) 61bb25c06cSjgCFLAGS += $(CCVERBOSE) 62d62bc4baSyz147064LDFLAGS += -dy -Nfs/devfs -Nmisc/dls 63681d9761SEric TaylorINC_PATH += -I$(UTSBASE)/common/fs/zfs 640a0e9771SDarren ReedINC_PATH += -I$(UTSBASE)/common/io/bpf 65facf4a8dSllai1 66*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 67*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 68*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 69*7014882cSRichard Lowe 70facf4a8dSllai1# 71facf4a8dSllai1# Default build targets. 72facf4a8dSllai1# 73facf4a8dSllai1.KEEP_STATE: 74facf4a8dSllai1 75facf4a8dSllai1def: $(DEF_DEPS) 76facf4a8dSllai1 77facf4a8dSllai1all: $(ALL_DEPS) 78facf4a8dSllai1 79facf4a8dSllai1clean: $(CLEAN_DEPS) 80facf4a8dSllai1 81facf4a8dSllai1clobber: $(CLOBBER_DEPS) 82facf4a8dSllai1 83facf4a8dSllai1lint: $(LINT_DEPS) 84facf4a8dSllai1 85facf4a8dSllai1modlintlib: $(MODLINTLIB_DEPS) 86facf4a8dSllai1 87facf4a8dSllai1clean.lint: $(CLEAN_LINT_DEPS) 88facf4a8dSllai1 89facf4a8dSllai1install: $(INSTALL_DEPS) 90facf4a8dSllai1 91facf4a8dSllai1# 92facf4a8dSllai1# Include common targets. 93facf4a8dSllai1# 94facf4a8dSllai1include $(UTSBASE)/intel/Makefile.targ 95