80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski#
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski# This file and its contents are supplied under the terms of the
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski# Common Development and Distribution License ("CDDL"), version 1.0.
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski# You may only use this file in accordance with the terms of version
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski# 1.0 of the CDDL.
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski#
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski# A full copy of the text of the CDDL should have accompanied this
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski# source. A copy of the CDDL is also available via the Internet at
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski# http://www.illumos.org/license/CDDL.
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski#
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski#
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski# Copyright 2013 Joyent, Inc. All rights reserved.
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski#
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski#
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski# Path to the base of the uts directory tree
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski#
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M WesolowskiUTSBASE = ../..
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski#
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski# Define the module and object file sets.
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski#
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M WesolowskiMODULE = cpqary3
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M WesolowskiOBJECTS = $(CPQARY3_OBJS:%=$(OBJS_DIR)/%)
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M WesolowskiLINTS = $(CPQARY3_OBJS:%.o=$(LINTS_DIR)/%.ln)
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M WesolowskiROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M WesolowskiCONF_SRCDIR = $(UTSBASE)/common/io/cpqary3
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski#
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski# Include common rules.
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski#
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowskiinclude $(UTSBASE)/intel/Makefile.intel
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski#
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski# Define targets
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski#
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M WesolowskiALL_TARGET = $(BINARY) $(CONFMOD)
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M WesolowskiLINT_TARGET = $(MODULE).lint
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M WesolowskiINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M WesolowskiCPPFLAGS += -I$(UTSBASE)/common/io/cpqary3
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski#
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski# Kernel Module Dependencies
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski#
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M WesolowskiLDFLAGS += -dy -Nmisc/scsi
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski#
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski# Default build targets.
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski#
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski.KEEP_STATE:
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowskidef: $(DEF_DEPS)
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowskiall: $(ALL_DEPS)
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowskiclean: $(CLEAN_DEPS)
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowskiclobber: $(CLOBBER_DEPS)
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowskilint: $(LINT_DEPS)
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowskimodlintlib: $(MODLINTLIB_DEPS)
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowskiclean.lint: $(CLEAN_LINT_DEPS)
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowskiinstall: $(INSTALL_DEPS)
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski#
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski# Include common targets.
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski#
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowskiinclude $(UTSBASE)/intel/Makefile.targ