180c94ecdSKeith M Wesolowski# 280c94ecdSKeith M Wesolowski# This file and its contents are supplied under the terms of the 380c94ecdSKeith M Wesolowski# Common Development and Distribution License ("CDDL"), version 1.0. 480c94ecdSKeith M Wesolowski# You may only use this file in accordance with the terms of version 580c94ecdSKeith M Wesolowski# 1.0 of the CDDL. 680c94ecdSKeith M Wesolowski# 780c94ecdSKeith M Wesolowski# A full copy of the text of the CDDL should have accompanied this 880c94ecdSKeith M Wesolowski# source. A copy of the CDDL is also available via the Internet at 980c94ecdSKeith M Wesolowski# http://www.illumos.org/license/CDDL. 1080c94ecdSKeith M Wesolowski# 1180c94ecdSKeith M Wesolowski 1280c94ecdSKeith M Wesolowski# 13b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 1480c94ecdSKeith M Wesolowski# 1580c94ecdSKeith M Wesolowski 1680c94ecdSKeith M Wesolowski# 1780c94ecdSKeith M Wesolowski# Path to the base of the uts directory tree 1880c94ecdSKeith M Wesolowski# 1980c94ecdSKeith M WesolowskiUTSBASE = ../.. 2080c94ecdSKeith M Wesolowski 2180c94ecdSKeith M Wesolowski# 2280c94ecdSKeith M Wesolowski# Define the module and object file sets. 2380c94ecdSKeith M Wesolowski# 2480c94ecdSKeith M WesolowskiMODULE = cpqary3 2580c94ecdSKeith M WesolowskiOBJECTS = $(CPQARY3_OBJS:%=$(OBJS_DIR)/%) 2680c94ecdSKeith M WesolowskiROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 2780c94ecdSKeith M WesolowskiCONF_SRCDIR = $(UTSBASE)/common/io/cpqary3 2880c94ecdSKeith M Wesolowski 2980c94ecdSKeith M Wesolowski# 3080c94ecdSKeith M Wesolowski# Include common rules. 3180c94ecdSKeith M Wesolowski# 3280c94ecdSKeith M Wesolowskiinclude $(UTSBASE)/intel/Makefile.intel 3380c94ecdSKeith M Wesolowski 3480c94ecdSKeith M Wesolowski# 3580c94ecdSKeith M Wesolowski# Define targets 3680c94ecdSKeith M Wesolowski# 3780c94ecdSKeith M WesolowskiALL_TARGET = $(BINARY) $(CONFMOD) 3880c94ecdSKeith M WesolowskiINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 3980c94ecdSKeith M Wesolowski 4080c94ecdSKeith M WesolowskiCPPFLAGS += -I$(UTSBASE)/common/io/cpqary3 4180c94ecdSKeith M Wesolowski 4280c94ecdSKeith M Wesolowski# 4380c94ecdSKeith M Wesolowski# Kernel Module Dependencies 4480c94ecdSKeith M Wesolowski# 45*82d0151aSRichard LoweLDFLAGS += -Nmisc/scsi 4680c94ecdSKeith M Wesolowski 47b6b206fcSJohn LevonSMATCH=off 48b6b206fcSJohn Levon 4980c94ecdSKeith M Wesolowski# 5080c94ecdSKeith M Wesolowski# Default build targets. 5180c94ecdSKeith M Wesolowski# 5280c94ecdSKeith M Wesolowski.KEEP_STATE: 5380c94ecdSKeith M Wesolowski 5480c94ecdSKeith M Wesolowskidef: $(DEF_DEPS) 5580c94ecdSKeith M Wesolowski 5680c94ecdSKeith M Wesolowskiall: $(ALL_DEPS) 5780c94ecdSKeith M Wesolowski 5880c94ecdSKeith M Wesolowskiclean: $(CLEAN_DEPS) 5980c94ecdSKeith M Wesolowski 6080c94ecdSKeith M Wesolowskiclobber: $(CLOBBER_DEPS) 6180c94ecdSKeith M Wesolowski 6280c94ecdSKeith M Wesolowskiinstall: $(INSTALL_DEPS) 6380c94ecdSKeith M Wesolowski 6480c94ecdSKeith M Wesolowski# 6580c94ecdSKeith M Wesolowski# Include common targets. 6680c94ecdSKeith M Wesolowski# 6780c94ecdSKeith M Wesolowskiinclude $(UTSBASE)/intel/Makefile.targ 68