1*4c3888b8SHans Rosenfeld# 2*4c3888b8SHans Rosenfeld# CDDL HEADER START 3*4c3888b8SHans Rosenfeld# 4*4c3888b8SHans Rosenfeld# The contents of this file are subject to the terms of the 5*4c3888b8SHans Rosenfeld# Common Development and Distribution License (the "License"). 6*4c3888b8SHans Rosenfeld# You may not use this file except in compliance with the License. 7*4c3888b8SHans Rosenfeld# 8*4c3888b8SHans Rosenfeld# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*4c3888b8SHans Rosenfeld# or http://www.opensolaris.org/os/licensing. 10*4c3888b8SHans Rosenfeld# See the License for the specific language governing permissions 11*4c3888b8SHans Rosenfeld# and limitations under the License. 12*4c3888b8SHans Rosenfeld# 13*4c3888b8SHans Rosenfeld# When distributing Covered Code, include this CDDL HEADER in each 14*4c3888b8SHans Rosenfeld# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*4c3888b8SHans Rosenfeld# If applicable, add the following below this CDDL HEADER, with the 16*4c3888b8SHans Rosenfeld# fields enclosed by brackets "[]" replaced with your own identifying 17*4c3888b8SHans Rosenfeld# information: Portions Copyright [yyyy] [name of copyright owner] 18*4c3888b8SHans Rosenfeld# 19*4c3888b8SHans Rosenfeld# CDDL HEADER END 20*4c3888b8SHans Rosenfeld# 21*4c3888b8SHans Rosenfeld# 22*4c3888b8SHans Rosenfeld# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23*4c3888b8SHans Rosenfeld# Use is subject to license terms. 24*4c3888b8SHans Rosenfeld# Copyright (c) 2016 Nexenta Systems, Inc. All rights reserved. 25*4c3888b8SHans Rosenfeld# 26*4c3888b8SHans Rosenfeld# This makefile drives the production of qlc_fw_2500 firmware module. 27*4c3888b8SHans Rosenfeld# 28*4c3888b8SHans Rosenfeld# Path to the base of the uts directory tree (usually /usr/src/uts). 29*4c3888b8SHans Rosenfeld# 30*4c3888b8SHans RosenfeldUTSBASE = ../.. 31*4c3888b8SHans Rosenfeld 32*4c3888b8SHans Rosenfeld# 33*4c3888b8SHans Rosenfeld# Define the module and object file sets. 34*4c3888b8SHans Rosenfeld# 35*4c3888b8SHans RosenfeldMODULE = qlc_fw_2700 36*4c3888b8SHans RosenfeldOBJECTS = $(QLC_FW_2700_OBJS:%=$(OBJS_DIR)/%) 37*4c3888b8SHans RosenfeldROOTMODULE = $(ROOT_QLC_FW_DIR)/$(MODULE) 38*4c3888b8SHans RosenfeldCONF_SRCDIR = $(UTSBASE)/common/io/fibre-channel/fca/qlc 39*4c3888b8SHans Rosenfeld 40*4c3888b8SHans Rosenfeld 41*4c3888b8SHans Rosenfeld# 42*4c3888b8SHans Rosenfeld# Include common rules. 43*4c3888b8SHans Rosenfeld# 44*4c3888b8SHans Rosenfeldinclude $(UTSBASE)/Makefile.uts 45*4c3888b8SHans Rosenfeldinclude $(UTSBASE)/intel/Makefile.intel 46*4c3888b8SHans Rosenfeld 47*4c3888b8SHans Rosenfeld# 48*4c3888b8SHans Rosenfeld# Define targets 49*4c3888b8SHans Rosenfeld# 50*4c3888b8SHans RosenfeldALL_TARGET = $(BINARY) $(CONFMOD) $(ITUMOD) 51*4c3888b8SHans RosenfeldINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 52*4c3888b8SHans Rosenfeld 53*4c3888b8SHans RosenfeldLDFLAGS += -Nmisc/fctl 54*4c3888b8SHans Rosenfeld 55*4c3888b8SHans Rosenfeld# 56*4c3888b8SHans Rosenfeld# Default build targets. 57*4c3888b8SHans Rosenfeld# 58*4c3888b8SHans Rosenfeld.KEEP_STATE: 59*4c3888b8SHans Rosenfeld 60*4c3888b8SHans Rosenfelddef: $(DEF_DEPS) 61*4c3888b8SHans Rosenfeld 62*4c3888b8SHans Rosenfeldall: $(ALL_DEPS) 63*4c3888b8SHans Rosenfeld 64*4c3888b8SHans Rosenfeldclean: $(CLEAN_DEPS) 65*4c3888b8SHans Rosenfeld 66*4c3888b8SHans Rosenfeldclobber: $(CLOBBER_DEPS) 67*4c3888b8SHans Rosenfeld 68*4c3888b8SHans Rosenfeldinstall: $(INSTALL_DEPS) 69*4c3888b8SHans Rosenfeld 70*4c3888b8SHans Rosenfeld# 71*4c3888b8SHans Rosenfeld# Include common targets. 72*4c3888b8SHans Rosenfeld# 73*4c3888b8SHans Rosenfeldinclude $(UTSBASE)/intel/Makefile.targ 74