1291a2b48SSukumar Swaminathan# 2291a2b48SSukumar Swaminathan# CDDL HEADER START 3291a2b48SSukumar Swaminathan# 4291a2b48SSukumar Swaminathan# The contents of this file are subject to the terms of the 5291a2b48SSukumar Swaminathan# Common Development and Distribution License (the "License"). 6291a2b48SSukumar Swaminathan# You may not use this file except in compliance with the License. 7291a2b48SSukumar Swaminathan# 8291a2b48SSukumar Swaminathan# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9291a2b48SSukumar Swaminathan# or http://www.opensolaris.org/os/licensing. 10291a2b48SSukumar Swaminathan# See the License for the specific language governing permissions 11291a2b48SSukumar Swaminathan# and limitations under the License. 12291a2b48SSukumar Swaminathan# 13291a2b48SSukumar Swaminathan# When distributing Covered Code, include this CDDL HEADER in each 14291a2b48SSukumar Swaminathan# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15291a2b48SSukumar Swaminathan# If applicable, add the following below this CDDL HEADER, with the 16291a2b48SSukumar Swaminathan# fields enclosed by brackets "[]" replaced with your own identifying 17291a2b48SSukumar Swaminathan# information: Portions Copyright [yyyy] [name of copyright owner] 18291a2b48SSukumar Swaminathan# 19291a2b48SSukumar Swaminathan# CDDL HEADER END 20291a2b48SSukumar Swaminathan# 21291a2b48SSukumar Swaminathan# 22291a2b48SSukumar Swaminathan# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23291a2b48SSukumar Swaminathan# Use is subject to license terms. 24291a2b48SSukumar Swaminathan# 25291a2b48SSukumar Swaminathan# This makefile drives the production of emlxs_fw firmware module. 26291a2b48SSukumar Swaminathan# 27291a2b48SSukumar Swaminathan# Path to the base of the uts directory tree (usually /usr/src/uts). 28291a2b48SSukumar Swaminathan# 29291a2b48SSukumar SwaminathanUTSBASE = ../.. 30291a2b48SSukumar Swaminathan 31291a2b48SSukumar Swaminathan# 32291a2b48SSukumar Swaminathan# Define the module and object file sets. 33291a2b48SSukumar Swaminathan# 34291a2b48SSukumar SwaminathanMODULE = emlxs_fw 35291a2b48SSukumar SwaminathanOBJECTS = $(EMLXS_FW_OBJS:%=$(OBJS_DIR)/%) 36291a2b48SSukumar SwaminathanROOTMODULE = $(ROOT_EMLXS_FW_DIR)/$(MODULE) 37291a2b48SSukumar SwaminathanCONF_SRCDIR = $(UTSBASE)/common/io/fibre-channel/fca/emlxs 38291a2b48SSukumar Swaminathan 39291a2b48SSukumar Swaminathan 40291a2b48SSukumar Swaminathan# 41291a2b48SSukumar Swaminathan# Include common rules. 42291a2b48SSukumar Swaminathan# 43291a2b48SSukumar Swaminathaninclude $(UTSBASE)/Makefile.uts 44291a2b48SSukumar Swaminathaninclude $(UTSBASE)/intel/Makefile.intel 45291a2b48SSukumar Swaminathan 46291a2b48SSukumar Swaminathan# 47291a2b48SSukumar Swaminathan# Define targets 48291a2b48SSukumar Swaminathan# 49291a2b48SSukumar SwaminathanALL_TARGET = $(BINARY) $(CONFMOD) $(ITUMOD) 50291a2b48SSukumar SwaminathanINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 51291a2b48SSukumar Swaminathan 52291a2b48SSukumar SwaminathanEMLXS_FLAGS = -DEMLXS_I386 53291a2b48SSukumar SwaminathanEMLXS_FLAGS += -DS11 54291a2b48SSukumar SwaminathanEMLXS_FLAGS += -DVERSION=\"11\" 55291a2b48SSukumar SwaminathanEMLXS_FLAGS += -DMACH=\"$(MACH)\" 56291a2b48SSukumar SwaminathanEMLXS_CFLAGS = $(EMLXS_FLAGS) 57291a2b48SSukumar SwaminathanEMLXS_LFLAGS = $(EMLXS_FLAGS) 58291a2b48SSukumar SwaminathanCFLAGS += $(EMLXS_CFLAGS) -DEMLXS_ARCH=\"$(CLASS)\" 59291a2b48SSukumar Swaminathan 60291a2b48SSukumar SwaminathanINC_PATH += -I$(UTSBASE)/common/sys/fibre-channel/fca/emlxs 61291a2b48SSukumar Swaminathan 62*82d0151aSRichard LoweLDFLAGS += -Nmisc/fctl 63291a2b48SSukumar Swaminathan 64291a2b48SSukumar Swaminathan# 65291a2b48SSukumar Swaminathan# Default build targets. 66291a2b48SSukumar Swaminathan# 67291a2b48SSukumar Swaminathan.KEEP_STATE: 68291a2b48SSukumar Swaminathan 69291a2b48SSukumar Swaminathandef: $(DEF_DEPS) 70291a2b48SSukumar Swaminathan 71291a2b48SSukumar Swaminathanall: $(ALL_DEPS) 72291a2b48SSukumar Swaminathan 73291a2b48SSukumar Swaminathanclean: $(CLEAN_DEPS) 74291a2b48SSukumar Swaminathan 75291a2b48SSukumar Swaminathanclobber: $(CLOBBER_DEPS) 76291a2b48SSukumar Swaminathan 77291a2b48SSukumar Swaminathaninstall: $(INSTALL_DEPS) 78291a2b48SSukumar Swaminathan 79291a2b48SSukumar Swaminathan# 80291a2b48SSukumar Swaminathan# Include common targets. 81291a2b48SSukumar Swaminathan# 82291a2b48SSukumar Swaminathaninclude $(UTSBASE)/intel/Makefile.targ 83