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# 264ba5b961SDan Kimmel# Copyright (c) 2016 by Delphix. All rights reserved. 274ba5b961SDan Kimmel# 28facf4a8dSllai1# This makefile drives the production of the dev file system 29facf4a8dSllai1# kernel module. 30facf4a8dSllai1# 31facf4a8dSllai1# intel architecture dependent 32facf4a8dSllai1# 33facf4a8dSllai1 34facf4a8dSllai1# 35facf4a8dSllai1# Path to the base of the uts directory tree (usually /usr/src/uts). 36facf4a8dSllai1# 37facf4a8dSllai1UTSBASE = ../.. 38facf4a8dSllai1 39facf4a8dSllai1# 40facf4a8dSllai1# Define the module and object file sets. 41facf4a8dSllai1# 42facf4a8dSllai1MODULE = dev 43facf4a8dSllai1OBJECTS = $(DEV_OBJS:%=$(OBJS_DIR)/%) 44facf4a8dSllai1ROOTMODULE = $(ROOT_FS_DIR)/$(MODULE) 45facf4a8dSllai1 46facf4a8dSllai1# 47facf4a8dSllai1# Include common rules. 48facf4a8dSllai1# 49facf4a8dSllai1include $(UTSBASE)/intel/Makefile.intel 50facf4a8dSllai1 51facf4a8dSllai1# 52facf4a8dSllai1# Define targets 53facf4a8dSllai1# 54facf4a8dSllai1ALL_TARGET = $(BINARY) 55facf4a8dSllai1INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 56facf4a8dSllai1 57facf4a8dSllai1# 58*41e0a469SRichard Lowe# Overrides 59facf4a8dSllai1# 60bb25c06cSjgCFLAGS += $(CCVERBOSE) 6182d0151aSRichard LoweLDFLAGS += -Nfs/devfs -Nmisc/dls 62681d9761SEric TaylorINC_PATH += -I$(UTSBASE)/common/fs/zfs 630a0e9771SDarren ReedINC_PATH += -I$(UTSBASE)/common/io/bpf 64facf4a8dSllai1 654ba5b961SDan Kimmel 667014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 677014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 68d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 69f8927fa6SRobert MustacchiCERRWARN += -_gcc=-Wno-unused-function 707014882cSRichard Lowe 71facf4a8dSllai1# 72facf4a8dSllai1# Default build targets. 73facf4a8dSllai1# 74facf4a8dSllai1.KEEP_STATE: 75facf4a8dSllai1 76facf4a8dSllai1def: $(DEF_DEPS) 77facf4a8dSllai1 78facf4a8dSllai1all: $(ALL_DEPS) 79facf4a8dSllai1 80facf4a8dSllai1clean: $(CLEAN_DEPS) 81facf4a8dSllai1 82facf4a8dSllai1clobber: $(CLOBBER_DEPS) 83facf4a8dSllai1 84facf4a8dSllai1install: $(INSTALL_DEPS) 85facf4a8dSllai1 86facf4a8dSllai1# 87facf4a8dSllai1# Include common targets. 88facf4a8dSllai1# 89facf4a8dSllai1include $(UTSBASE)/intel/Makefile.targ 90