1*80c94ecdSKeith M Wesolowski# 2*80c94ecdSKeith M Wesolowski# This file and its contents are supplied under the terms of the 3*80c94ecdSKeith M Wesolowski# Common Development and Distribution License ("CDDL"), version 1.0. 4*80c94ecdSKeith M Wesolowski# You may only use this file in accordance with the terms of version 5*80c94ecdSKeith M Wesolowski# 1.0 of the CDDL. 6*80c94ecdSKeith M Wesolowski# 7*80c94ecdSKeith M Wesolowski# A full copy of the text of the CDDL should have accompanied this 8*80c94ecdSKeith M Wesolowski# source. A copy of the CDDL is also available via the Internet at 9*80c94ecdSKeith M Wesolowski# http://www.illumos.org/license/CDDL. 10*80c94ecdSKeith M Wesolowski# 11*80c94ecdSKeith M Wesolowski 12*80c94ecdSKeith M Wesolowski# 13*80c94ecdSKeith M Wesolowski# Copyright 2013 Joyent, Inc. All rights reserved. 14*80c94ecdSKeith M Wesolowski# 15*80c94ecdSKeith M Wesolowski 16*80c94ecdSKeith M Wesolowski# 17*80c94ecdSKeith M Wesolowski# Path to the base of the uts directory tree 18*80c94ecdSKeith M Wesolowski# 19*80c94ecdSKeith M WesolowskiUTSBASE = ../.. 20*80c94ecdSKeith M Wesolowski 21*80c94ecdSKeith M Wesolowski# 22*80c94ecdSKeith M Wesolowski# Define the module and object file sets. 23*80c94ecdSKeith M Wesolowski# 24*80c94ecdSKeith M WesolowskiMODULE = cpqary3 25*80c94ecdSKeith M WesolowskiOBJECTS = $(CPQARY3_OBJS:%=$(OBJS_DIR)/%) 26*80c94ecdSKeith M WesolowskiLINTS = $(CPQARY3_OBJS:%.o=$(LINTS_DIR)/%.ln) 27*80c94ecdSKeith M WesolowskiROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 28*80c94ecdSKeith M WesolowskiCONF_SRCDIR = $(UTSBASE)/common/io/cpqary3 29*80c94ecdSKeith M Wesolowski 30*80c94ecdSKeith M Wesolowski# 31*80c94ecdSKeith M Wesolowski# Include common rules. 32*80c94ecdSKeith M Wesolowski# 33*80c94ecdSKeith M Wesolowskiinclude $(UTSBASE)/intel/Makefile.intel 34*80c94ecdSKeith M Wesolowski 35*80c94ecdSKeith M Wesolowski# 36*80c94ecdSKeith M Wesolowski# Define targets 37*80c94ecdSKeith M Wesolowski# 38*80c94ecdSKeith M WesolowskiALL_TARGET = $(BINARY) $(CONFMOD) 39*80c94ecdSKeith M WesolowskiLINT_TARGET = $(MODULE).lint 40*80c94ecdSKeith M WesolowskiINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 41*80c94ecdSKeith M Wesolowski 42*80c94ecdSKeith M WesolowskiCPPFLAGS += -I$(UTSBASE)/common/io/cpqary3 43*80c94ecdSKeith M Wesolowski 44*80c94ecdSKeith M Wesolowski# 45*80c94ecdSKeith M Wesolowski# Kernel Module Dependencies 46*80c94ecdSKeith M Wesolowski# 47*80c94ecdSKeith M WesolowskiLDFLAGS += -dy -Nmisc/scsi 48*80c94ecdSKeith M Wesolowski 49*80c94ecdSKeith M Wesolowski# 50*80c94ecdSKeith M Wesolowski# Default build targets. 51*80c94ecdSKeith M Wesolowski# 52*80c94ecdSKeith M Wesolowski.KEEP_STATE: 53*80c94ecdSKeith M Wesolowski 54*80c94ecdSKeith M Wesolowskidef: $(DEF_DEPS) 55*80c94ecdSKeith M Wesolowski 56*80c94ecdSKeith M Wesolowskiall: $(ALL_DEPS) 57*80c94ecdSKeith M Wesolowski 58*80c94ecdSKeith M Wesolowskiclean: $(CLEAN_DEPS) 59*80c94ecdSKeith M Wesolowski 60*80c94ecdSKeith M Wesolowskiclobber: $(CLOBBER_DEPS) 61*80c94ecdSKeith M Wesolowski 62*80c94ecdSKeith M Wesolowskilint: $(LINT_DEPS) 63*80c94ecdSKeith M Wesolowski 64*80c94ecdSKeith M Wesolowskimodlintlib: $(MODLINTLIB_DEPS) 65*80c94ecdSKeith M Wesolowski 66*80c94ecdSKeith M Wesolowskiclean.lint: $(CLEAN_LINT_DEPS) 67*80c94ecdSKeith M Wesolowski 68*80c94ecdSKeith M Wesolowskiinstall: $(INSTALL_DEPS) 69*80c94ecdSKeith M Wesolowski 70*80c94ecdSKeith M Wesolowski# 71*80c94ecdSKeith M Wesolowski# Include common targets. 72*80c94ecdSKeith M Wesolowski# 73*80c94ecdSKeith M Wesolowskiinclude $(UTSBASE)/intel/Makefile.targ 74