1f52228b8SJoe Beteta# 2f52228b8SJoe Beteta# CDDL HEADER START 3f52228b8SJoe Beteta# 4f52228b8SJoe Beteta# This file and its contents are supplied under the terms of the 5f52228b8SJoe Beteta# Common Development and Distribution License ("CDDL"), version 1.0. 6f52228b8SJoe Beteta# You may only use this file in accordance with the terms of version 7f52228b8SJoe Beteta# 1.0 of the CDDL. 8f52228b8SJoe Beteta# 9f52228b8SJoe Beteta# A full copy of the text of the CDDL should have accompanied this 10f52228b8SJoe Beteta# source. A copy of the CDDL is also available via the Internet at 11f52228b8SJoe Beteta# http://www.illumos.org/license/CDDL. 12f52228b8SJoe Beteta# 13f52228b8SJoe Beteta# CDDL HEADER END 14f52228b8SJoe Beteta# 15f52228b8SJoe Beteta# 16*4ba35b4bSHans Rosenfeld# Copyright 2015 Nexenta Systems, Inc. All rights reserved. 17f52228b8SJoe Beteta# 18f52228b8SJoe Beteta# uts/intel/skd/Makefile 19f52228b8SJoe Beteta# 20f52228b8SJoe Beteta# This makefile drives the production of the skd module, which supports 21f52228b8SJoe Beteta# the sTec S112x PCIe SSD card. 22f52228b8SJoe Beteta# 23f52228b8SJoe Beteta# intel architecture dependent 24f52228b8SJoe Beteta# 25f52228b8SJoe Beteta 26f52228b8SJoe Beteta# 27f52228b8SJoe Beteta# Paths to the base of the uts directory trees 28f52228b8SJoe Beteta# 29f52228b8SJoe BetetaUTSBASE = ../.. 30f52228b8SJoe Beteta 31f52228b8SJoe Beteta# 32f52228b8SJoe Beteta# Define the module and object file sets. 33f52228b8SJoe Beteta# 34f52228b8SJoe BetetaMODULE = skd 35f52228b8SJoe BetetaOBJECTS = $(SKD_OBJS:%=$(OBJS_DIR)/%) 36f52228b8SJoe BetetaLINTS = $(SKD_OBJS:%.o=$(LINTS_DIR)/%.ln) 37f52228b8SJoe BetetaROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 38f52228b8SJoe BetetaCONF_SRCDIR = $(UTSBASE)/common/io/skd 39f52228b8SJoe Beteta 40f52228b8SJoe Beteta# 41f52228b8SJoe Beteta# Include common rules. 42f52228b8SJoe Beteta# 43f52228b8SJoe Betetainclude $(UTSBASE)/intel/Makefile.intel 44f52228b8SJoe Beteta 45f52228b8SJoe Beteta# 46f52228b8SJoe Beteta# Define targets 47f52228b8SJoe Beteta# 48f52228b8SJoe BetetaALL_TARGET = $(BINARY) $(CONFMOD) 49f52228b8SJoe BetetaLINT_TARGET = $(MODULE).lint 50f52228b8SJoe BetetaINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 51f52228b8SJoe Beteta 52f52228b8SJoe Beteta# 53f52228b8SJoe Beteta# Driver depends on blkdev 54f52228b8SJoe Beteta# 55f52228b8SJoe BetetaLDFLAGS += -dy -N drv/blkdev 56f52228b8SJoe Beteta 57f52228b8SJoe Beteta# 58*4ba35b4bSHans Rosenfeld# Overrides 59*4ba35b4bSHans Rosenfeld# 60*4ba35b4bSHans Rosenfeld# For now, disable these compiler warnigns; maintainers should endeavor 61*4ba35b4bSHans Rosenfeld# to investigate and remove these for maximum lint coverage. 62*4ba35b4bSHans Rosenfeld# Please do not carry these forward to new Makefiles. 63*4ba35b4bSHans RosenfeldCERRWARN += -_gcc=-Wno-format 64*4ba35b4bSHans RosenfeldCERRWARN += -_gcc=-Wno-format-extra-args 65*4ba35b4bSHans Rosenfeld 66*4ba35b4bSHans Rosenfeld# 67f52228b8SJoe Beteta# Default build targets. 68f52228b8SJoe Beteta# 69f52228b8SJoe Beteta.KEEP_STATE: 70f52228b8SJoe Beteta 71f52228b8SJoe Betetadef: $(DEF_DEPS) 72f52228b8SJoe Beteta 73f52228b8SJoe Betetaall: $(ALL_DEPS) 74f52228b8SJoe Beteta 75f52228b8SJoe Betetaclean: $(CLEAN_DEPS) 76f52228b8SJoe Beteta 77f52228b8SJoe Betetaclobber: $(CLOBBER_DEPS) 78f52228b8SJoe Beteta 79f52228b8SJoe Betetalint: $(LINT_DEPS) 80f52228b8SJoe Beteta 81f52228b8SJoe Betetamodlintlib: $(MODLINTLIB_DEPS) 82f52228b8SJoe Beteta 83f52228b8SJoe Betetaclean.lint: $(CLEAN_LINT_DEPS) 84f52228b8SJoe Beteta 85f52228b8SJoe Betetainstall: $(INSTALL_DEPS) 86f52228b8SJoe Beteta 87f52228b8SJoe Beteta# 88f52228b8SJoe Beteta# Include common targets. 89f52228b8SJoe Beteta# 90f52228b8SJoe Betetainclude $(UTSBASE)/intel/Makefile.targ 91