1*12426Sgdamore@opensolaris.org# 2*12426Sgdamore@opensolaris.org# CDDL HEADER START 3*12426Sgdamore@opensolaris.org# 4*12426Sgdamore@opensolaris.org# The contents of this file are subject to the terms of the 5*12426Sgdamore@opensolaris.org# Common Development and Distribution License (the "License"). 6*12426Sgdamore@opensolaris.org# You may not use this file except in compliance with the License. 7*12426Sgdamore@opensolaris.org# 8*12426Sgdamore@opensolaris.org# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*12426Sgdamore@opensolaris.org# or http://www.opensolaris.org/os/licensing. 10*12426Sgdamore@opensolaris.org# See the License for the specific language governing permissions 11*12426Sgdamore@opensolaris.org# and limitations under the License. 12*12426Sgdamore@opensolaris.org# 13*12426Sgdamore@opensolaris.org# When distributing Covered Code, include this CDDL HEADER in each 14*12426Sgdamore@opensolaris.org# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*12426Sgdamore@opensolaris.org# If applicable, add the following below this CDDL HEADER, with the 16*12426Sgdamore@opensolaris.org# fields enclosed by brackets "[]" replaced with your own identifying 17*12426Sgdamore@opensolaris.org# information: Portions Copyright [yyyy] [name of copyright owner] 18*12426Sgdamore@opensolaris.org# 19*12426Sgdamore@opensolaris.org# CDDL HEADER END 20*12426Sgdamore@opensolaris.org# 21*12426Sgdamore@opensolaris.org 22*12426Sgdamore@opensolaris.org# 23*12426Sgdamore@opensolaris.org# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. 24*12426Sgdamore@opensolaris.org# 25*12426Sgdamore@opensolaris.org 26*12426Sgdamore@opensolaris.org# 27*12426Sgdamore@opensolaris.org# This makefile drives the production of the blkdev driver 28*12426Sgdamore@opensolaris.org# 29*12426Sgdamore@opensolaris.org 30*12426Sgdamore@opensolaris.org# 31*12426Sgdamore@opensolaris.org# Paths to the base of the uts directory trees 32*12426Sgdamore@opensolaris.org# 33*12426Sgdamore@opensolaris.orgUTSBASE = ../.. 34*12426Sgdamore@opensolaris.org 35*12426Sgdamore@opensolaris.org# 36*12426Sgdamore@opensolaris.org# Define the module and object file sets. 37*12426Sgdamore@opensolaris.org# 38*12426Sgdamore@opensolaris.orgMODULE = blkdev 39*12426Sgdamore@opensolaris.orgOBJECTS = $(BLKDEV_OBJS:%=$(OBJS_DIR)/%) 40*12426Sgdamore@opensolaris.orgLINTS = $(BLKDEV_OBJS:%.o=$(LINTS_DIR)/%.ln) 41*12426Sgdamore@opensolaris.orgROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 42*12426Sgdamore@opensolaris.org 43*12426Sgdamore@opensolaris.org# 44*12426Sgdamore@opensolaris.org# Include common rules. 45*12426Sgdamore@opensolaris.org# 46*12426Sgdamore@opensolaris.orginclude $(UTSBASE)/intel/Makefile.intel 47*12426Sgdamore@opensolaris.org 48*12426Sgdamore@opensolaris.org# 49*12426Sgdamore@opensolaris.org# Define targets. 50*12426Sgdamore@opensolaris.org# 51*12426Sgdamore@opensolaris.orgALL_TARGET = $(BINARY) 52*12426Sgdamore@opensolaris.orgLINT_TARGET = $(MODULE).lint 53*12426Sgdamore@opensolaris.orgINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 54*12426Sgdamore@opensolaris.org 55*12426Sgdamore@opensolaris.org# 56*12426Sgdamore@opensolaris.org# Note dependancy on misc/scsi. 57*12426Sgdamore@opensolaris.org# 58*12426Sgdamore@opensolaris.orgLDFLAGS += -dy -Nmisc/cmlb 59*12426Sgdamore@opensolaris.org 60*12426Sgdamore@opensolaris.org# 61*12426Sgdamore@opensolaris.org# Default build targets. 62*12426Sgdamore@opensolaris.org# 63*12426Sgdamore@opensolaris.org.KEEP_STATE: 64*12426Sgdamore@opensolaris.org 65*12426Sgdamore@opensolaris.orgdef: $(DEF_DEPS) 66*12426Sgdamore@opensolaris.org 67*12426Sgdamore@opensolaris.orgall: $(ALL_DEPS) 68*12426Sgdamore@opensolaris.org 69*12426Sgdamore@opensolaris.orgclean: $(CLEAN_DEPS) 70*12426Sgdamore@opensolaris.org 71*12426Sgdamore@opensolaris.orgclobber: $(CLOBBER_DEPS) 72*12426Sgdamore@opensolaris.org 73*12426Sgdamore@opensolaris.orglint: $(LINT_DEPS) 74*12426Sgdamore@opensolaris.org 75*12426Sgdamore@opensolaris.orgmodlintlib: $(MODLINTLIB_DEPS) 76*12426Sgdamore@opensolaris.org 77*12426Sgdamore@opensolaris.orgclean.lint: $(CLEAN_LINT_DEPS) 78*12426Sgdamore@opensolaris.org 79*12426Sgdamore@opensolaris.orginstall: $(INSTALL_DEPS) 80*12426Sgdamore@opensolaris.org 81*12426Sgdamore@opensolaris.org# 82*12426Sgdamore@opensolaris.org# Include common targets. 83*12426Sgdamore@opensolaris.org# 84*12426Sgdamore@opensolaris.orginclude $(UTSBASE)/intel/Makefile.targ 85