1*291a2b48SSukumar Swaminathan# 2*291a2b48SSukumar Swaminathan# CDDL HEADER START 3*291a2b48SSukumar Swaminathan# 4*291a2b48SSukumar Swaminathan# The contents of this file are subject to the terms of the 5*291a2b48SSukumar Swaminathan# Common Development and Distribution License (the "License"). 6*291a2b48SSukumar Swaminathan# You may not use this file except in compliance with the License. 7*291a2b48SSukumar Swaminathan# 8*291a2b48SSukumar Swaminathan# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*291a2b48SSukumar Swaminathan# or http://www.opensolaris.org/os/licensing. 10*291a2b48SSukumar Swaminathan# See the License for the specific language governing permissions 11*291a2b48SSukumar Swaminathan# and limitations under the License. 12*291a2b48SSukumar Swaminathan# 13*291a2b48SSukumar Swaminathan# When distributing Covered Code, include this CDDL HEADER in each 14*291a2b48SSukumar Swaminathan# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*291a2b48SSukumar Swaminathan# If applicable, add the following below this CDDL HEADER, with the 16*291a2b48SSukumar Swaminathan# fields enclosed by brackets "[]" replaced with your own identifying 17*291a2b48SSukumar Swaminathan# information: Portions Copyright [yyyy] [name of copyright owner] 18*291a2b48SSukumar Swaminathan# 19*291a2b48SSukumar Swaminathan# CDDL HEADER END 20*291a2b48SSukumar Swaminathan# 21*291a2b48SSukumar Swaminathan# 22*291a2b48SSukumar Swaminathan# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23*291a2b48SSukumar Swaminathan# Use is subject to license terms. 24*291a2b48SSukumar Swaminathan# 25*291a2b48SSukumar Swaminathan# This makefile drives the production of emlxs_fw firmware module. 26*291a2b48SSukumar Swaminathan# 27*291a2b48SSukumar Swaminathan# Path to the base of the uts directory tree (usually /usr/src/uts). 28*291a2b48SSukumar Swaminathan# 29*291a2b48SSukumar SwaminathanUTSBASE = ../.. 30*291a2b48SSukumar Swaminathan 31*291a2b48SSukumar Swaminathan# 32*291a2b48SSukumar Swaminathan# Define the module and object file sets. 33*291a2b48SSukumar Swaminathan# 34*291a2b48SSukumar SwaminathanMODULE = emlxs_fw 35*291a2b48SSukumar SwaminathanOBJECTS = $(EMLXS_FW_OBJS:%=$(OBJS_DIR)/%) 36*291a2b48SSukumar SwaminathanLINTS = $(EMLXS_FW_OBJS:%.o=$(LINTS_DIR)/%.ln) 37*291a2b48SSukumar SwaminathanROOTMODULE = $(ROOT_EMLXS_FW_DIR)/$(MODULE) 38*291a2b48SSukumar SwaminathanCONF_SRCDIR = $(UTSBASE)/common/io/fibre-channel/fca/emlxs 39*291a2b48SSukumar Swaminathan 40*291a2b48SSukumar Swaminathan# 41*291a2b48SSukumar Swaminathan# Include common rules. 42*291a2b48SSukumar Swaminathan# 43*291a2b48SSukumar Swaminathaninclude $(UTSBASE)/Makefile.uts 44*291a2b48SSukumar Swaminathaninclude $(UTSBASE)/sparc/Makefile.sparc 45*291a2b48SSukumar Swaminathan 46*291a2b48SSukumar Swaminathan# 47*291a2b48SSukumar Swaminathan# Define targets 48*291a2b48SSukumar Swaminathan# 49*291a2b48SSukumar SwaminathanALL_TARGET = $(BINARY) $(CONFMOD) $(ITUMOD) 50*291a2b48SSukumar SwaminathanLINT_TARGET = $(MODULE).lint 51*291a2b48SSukumar SwaminathanINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 52*291a2b48SSukumar Swaminathan 53*291a2b48SSukumar SwaminathanEMLXS_FLAGS = -DEMLXS_SPARC 54*291a2b48SSukumar SwaminathanEMLXS_FLAGS += -DS11 55*291a2b48SSukumar SwaminathanEMLXS_FLAGS += -DVERSION=\"11\" 56*291a2b48SSukumar SwaminathanEMLXS_FLAGS += -DMACH=\"$(MACH)\" 57*291a2b48SSukumar SwaminathanEMLXS_CFLAGS = $(EMLXS_FLAGS) 58*291a2b48SSukumar SwaminathanEMLXS_LFLAGS = $(EMLXS_FLAGS) 59*291a2b48SSukumar SwaminathanCFLAGS += $(EMLXS_CFLAGS) -DEMLXS_ARCH=\"$(CLASS)\" 60*291a2b48SSukumar SwaminathanLINTTAGS += $(EMLXS_LFLAGS) -DEMLXS_ARCH=\"$(CLASS)\" 61*291a2b48SSukumar Swaminathan 62*291a2b48SSukumar SwaminathanINC_PATH += -I$(UTSBASE)/common/sys/fibre-channel/fca/emlxs 63*291a2b48SSukumar Swaminathan 64*291a2b48SSukumar SwaminathanLDFLAGS += -dy -Nmisc/fctl 65*291a2b48SSukumar Swaminathan 66*291a2b48SSukumar Swaminathan# 67*291a2b48SSukumar Swaminathan# Lint tags 68*291a2b48SSukumar Swaminathan# 69*291a2b48SSukumar SwaminathanLINTTAGS += -DUNIQUE_FW_NAME 70*291a2b48SSukumar SwaminathanLINTTAGS += -DFW_VERSION_STRING=\"2.01.145\" 71*291a2b48SSukumar Swaminathan 72*291a2b48SSukumar Swaminathan# 73*291a2b48SSukumar Swaminathan# Default build targets. 74*291a2b48SSukumar Swaminathan# 75*291a2b48SSukumar Swaminathan.KEEP_STATE: 76*291a2b48SSukumar Swaminathan 77*291a2b48SSukumar Swaminathandef: $(DEF_DEPS) 78*291a2b48SSukumar Swaminathan 79*291a2b48SSukumar Swaminathanall: $(ALL_DEPS) 80*291a2b48SSukumar Swaminathan 81*291a2b48SSukumar Swaminathanclean: $(CLEAN_DEPS) 82*291a2b48SSukumar Swaminathan 83*291a2b48SSukumar Swaminathanclobber: $(CLOBBER_DEPS) 84*291a2b48SSukumar Swaminathan 85*291a2b48SSukumar Swaminathanlint: $(LINT_DEPS) 86*291a2b48SSukumar Swaminathan 87*291a2b48SSukumar Swaminathanmodlintlib: $(MODLINTLIB_DEPS) 88*291a2b48SSukumar Swaminathan 89*291a2b48SSukumar Swaminathanclean.lint: $(CLEAN_LINT_DEPS) 90*291a2b48SSukumar Swaminathan 91*291a2b48SSukumar Swaminathaninstall: $(INSTALL_DEPS) 92*291a2b48SSukumar Swaminathan 93*291a2b48SSukumar Swaminathan# 94*291a2b48SSukumar Swaminathan# Include common targets. 95*291a2b48SSukumar Swaminathan# 96*291a2b48SSukumar Swaminathaninclude $(UTSBASE)/sparc/Makefile.targ 97