xref: /titanic_44/usr/src/uts/intel/smrt/Makefile (revision 11fcd16ab005c4f391f79f466d7ba5db10a6f4c5)
10823be33SJoshua M. Clulow#
20823be33SJoshua M. Clulow# This file and its contents are supplied under the terms of the
30823be33SJoshua M. Clulow# Common Development and Distribution License ("CDDL"), version 1.0.
40823be33SJoshua M. Clulow# You may only use this file in accordance with the terms of version
50823be33SJoshua M. Clulow# 1.0 of the CDDL.
60823be33SJoshua M. Clulow#
70823be33SJoshua M. Clulow# A full copy of the text of the CDDL should have accompanied this
80823be33SJoshua M. Clulow# source.  A copy of the CDDL is also available via the Internet at
90823be33SJoshua M. Clulow# http://www.illumos.org/license/CDDL.
100823be33SJoshua M. Clulow#
110823be33SJoshua M. Clulow
120823be33SJoshua M. Clulow#
13*11fcd16aSRobert Mustacchi# Copyright (c) 2017, Joyent, Inc.
140823be33SJoshua M. Clulow#
150823be33SJoshua M. Clulow
160823be33SJoshua M. Clulow#
170823be33SJoshua M. Clulow#	Path to the base of the uts directory tree
180823be33SJoshua M. Clulow#
190823be33SJoshua M. ClulowUTSBASE	= ../..
200823be33SJoshua M. Clulow
210823be33SJoshua M. Clulow#
220823be33SJoshua M. Clulow#	Define the module and object file sets.
230823be33SJoshua M. Clulow#
240823be33SJoshua M. ClulowMODULE		= smrt
250823be33SJoshua M. ClulowOBJECTS		= $(SMRT_OBJS:%=$(OBJS_DIR)/%)
260823be33SJoshua M. ClulowLINTS		= $(SMRT_OBJS:%.o=$(LINTS_DIR)/%.ln)
270823be33SJoshua M. ClulowROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
280823be33SJoshua M. ClulowCONF_SRCDIR     = $(UTSBASE)/common/io/scsi/adapters/smrt
290823be33SJoshua M. Clulow
300823be33SJoshua M. Clulow#
31*11fcd16aSRobert Mustacchi#	Include common rules.
32*11fcd16aSRobert Mustacchi#
33*11fcd16aSRobert Mustacchiinclude $(UTSBASE)/intel/Makefile.intel
34*11fcd16aSRobert Mustacchi
35*11fcd16aSRobert Mustacchi#
360823be33SJoshua M. Clulow#	Define targets
370823be33SJoshua M. Clulow#
380823be33SJoshua M. ClulowALL_TARGET	= $(BINARY) $(CONFMOD)
390823be33SJoshua M. ClulowLINT_TARGET	= $(MODULE).lint
400823be33SJoshua M. ClulowINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
410823be33SJoshua M. Clulow
420823be33SJoshua M. Clulow#
430823be33SJoshua M. Clulow# 	Kernel Module Dependencies
440823be33SJoshua M. Clulow#
450823be33SJoshua M. ClulowLDFLAGS		+= -dy -Nmisc/scsi
460823be33SJoshua M. Clulow
470823be33SJoshua M. Clulow
480823be33SJoshua M. Clulow#
490823be33SJoshua M. Clulow#	Default build targets.
500823be33SJoshua M. Clulow#
510823be33SJoshua M. Clulow.KEEP_STATE:
520823be33SJoshua M. Clulow
530823be33SJoshua M. Clulowdef:		$(DEF_DEPS)
540823be33SJoshua M. Clulow
550823be33SJoshua M. Clulowall:		$(ALL_DEPS)
560823be33SJoshua M. Clulow
570823be33SJoshua M. Clulowclean:		$(CLEAN_DEPS)
580823be33SJoshua M. Clulow
590823be33SJoshua M. Clulowclobber:	$(CLOBBER_DEPS)
600823be33SJoshua M. Clulow
610823be33SJoshua M. Clulowlint:		$(LINT_DEPS)
620823be33SJoshua M. Clulow
630823be33SJoshua M. Clulowmodlintlib:	$(MODLINTLIB_DEPS)
640823be33SJoshua M. Clulow
650823be33SJoshua M. Clulowclean.lint:	$(CLEAN_LINT_DEPS)
660823be33SJoshua M. Clulow
670823be33SJoshua M. Clulowinstall:	$(INSTALL_DEPS)
680823be33SJoshua M. Clulow
690823be33SJoshua M. Clulow#
700823be33SJoshua M. Clulow#	Include common targets.
710823be33SJoshua M. Clulow#
720823be33SJoshua M. Clulowinclude $(UTSBASE)/intel/Makefile.targ
73