Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi#
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi# CDDL HEADER START
cd24dc2196f7480d4793ca5d5f9f8d70741bc103Aki Tuomi#
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi# The contents of this file are subject to the terms of the
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi# Common Development and Distribution License (the "License").
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi# You may not use this file except in compliance with the License.
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi#
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi# or http://www.opensolaris.org/os/licensing.
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi# See the License for the specific language governing permissions
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi# and limitations under the License.
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi#
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi# When distributing Covered Code, include this CDDL HEADER in each
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi# If applicable, add the following below this CDDL HEADER, with the
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi# fields enclosed by brackets "[]" replaced with your own identifying
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi# information: Portions Copyright [yyyy] [name of copyright owner]
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi#
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi# CDDL HEADER END
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi#
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi# uts/sparc/fcsm/Makefile
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi#
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi# Use is subject to license terms.
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi#
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi# This makefile drives the production of fcsm driver kernel module.
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi#
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi# i86pc architecture dependent
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi#
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi#
85670e21578f822cae7aac9d11430b6358cf90f5Aki Tuomi# Path to the base of the uts directory tree (usually /usr/src/uts).
85670e21578f822cae7aac9d11430b6358cf90f5Aki Tuomi#
85670e21578f822cae7aac9d11430b6358cf90f5Aki TuomiUTSBASE = ../..
85670e21578f822cae7aac9d11430b6358cf90f5Aki Tuomi
85670e21578f822cae7aac9d11430b6358cf90f5Aki Tuomi#
85670e21578f822cae7aac9d11430b6358cf90f5Aki Tuomi# Define the module and object file sets.
85670e21578f822cae7aac9d11430b6358cf90f5Aki Tuomi#
85670e21578f822cae7aac9d11430b6358cf90f5Aki TuomiMODULE = fcsm
85670e21578f822cae7aac9d11430b6358cf90f5Aki TuomiOBJECTS = $(FCSM_OBJS:%=$(OBJS_DIR)/%)
0793a1dbdfc369b60ad8aa16f4ee58cc1c238f5cPaul HowarthLINTS = $(FCSM_OBJS:%.o=$(LINTS_DIR)/%.ln)
0793a1dbdfc369b60ad8aa16f4ee58cc1c238f5cPaul HowarthROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
0793a1dbdfc369b60ad8aa16f4ee58cc1c238f5cPaul HowarthCONF_SRCDIR = $(UTSBASE)/common/io/fibre-channel/ulp/
0793a1dbdfc369b60ad8aa16f4ee58cc1c238f5cPaul Howarth
0793a1dbdfc369b60ad8aa16f4ee58cc1c238f5cPaul Howarth#
0793a1dbdfc369b60ad8aa16f4ee58cc1c238f5cPaul Howarth# Include common rules.
0793a1dbdfc369b60ad8aa16f4ee58cc1c238f5cPaul Howarth#
0793a1dbdfc369b60ad8aa16f4ee58cc1c238f5cPaul Howarthinclude $(UTSBASE)/Makefile.uts
0793a1dbdfc369b60ad8aa16f4ee58cc1c238f5cPaul Howarthinclude $(UTSBASE)/sparc/Makefile.sparc
0793a1dbdfc369b60ad8aa16f4ee58cc1c238f5cPaul Howarth
0793a1dbdfc369b60ad8aa16f4ee58cc1c238f5cPaul Howarth#
0793a1dbdfc369b60ad8aa16f4ee58cc1c238f5cPaul Howarth# Define targets
0793a1dbdfc369b60ad8aa16f4ee58cc1c238f5cPaul Howarth#
0793a1dbdfc369b60ad8aa16f4ee58cc1c238f5cPaul HowarthALL_TARGET = $(BINARY) $(CONFMOD) $(ITUMOD)
0793a1dbdfc369b60ad8aa16f4ee58cc1c238f5cPaul HowarthLINT_TARGET = $(MODULE).lint
0793a1dbdfc369b60ad8aa16f4ee58cc1c238f5cPaul HowarthINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
0793a1dbdfc369b60ad8aa16f4ee58cc1c238f5cPaul Howarth
0793a1dbdfc369b60ad8aa16f4ee58cc1c238f5cPaul Howarth#
0793a1dbdfc369b60ad8aa16f4ee58cc1c238f5cPaul Howarth# header file directories
0793a1dbdfc369b60ad8aa16f4ee58cc1c238f5cPaul Howarth#
0793a1dbdfc369b60ad8aa16f4ee58cc1c238f5cPaul HowarthINC_PATH += -I$(ROOT)/usr/include
0793a1dbdfc369b60ad8aa16f4ee58cc1c238f5cPaul Howarth
c4d66e8ccbb8440622f1a70791ed2a8f99659af1Juha KohoLDFLAGS += -dy -Nmisc/fctl
c4d66e8ccbb8440622f1a70791ed2a8f99659af1Juha Koho
c4d66e8ccbb8440622f1a70791ed2a8f99659af1Juha Koho#
c4d66e8ccbb8440622f1a70791ed2a8f99659af1Juha Koho# Lint tags
c4d66e8ccbb8440622f1a70791ed2a8f99659af1Juha Koho#
c4d66e8ccbb8440622f1a70791ed2a8f99659af1Juha KohoLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
c4d66e8ccbb8440622f1a70791ed2a8f99659af1Juha Koho
c4d66e8ccbb8440622f1a70791ed2a8f99659af1Juha KohoCERRWARN += -_gcc=-Wno-parentheses
c4d66e8ccbb8440622f1a70791ed2a8f99659af1Juha KohoCERRWARN += -_gcc=-Wno-uninitialized
c4d66e8ccbb8440622f1a70791ed2a8f99659af1Juha Koho
c4d66e8ccbb8440622f1a70791ed2a8f99659af1Juha Koho#
c4d66e8ccbb8440622f1a70791ed2a8f99659af1Juha Koho# Default build targets.
c4d66e8ccbb8440622f1a70791ed2a8f99659af1Juha Koho#
c4d66e8ccbb8440622f1a70791ed2a8f99659af1Juha Koho.KEEP_STATE:
c4d66e8ccbb8440622f1a70791ed2a8f99659af1Juha Koho
c4d66e8ccbb8440622f1a70791ed2a8f99659af1Juha Kohodef: $(DEF_DEPS)
c4d66e8ccbb8440622f1a70791ed2a8f99659af1Juha Koho
c4d66e8ccbb8440622f1a70791ed2a8f99659af1Juha Kohoall: $(ALL_DEPS)
c4d66e8ccbb8440622f1a70791ed2a8f99659af1Juha Koho
c4d66e8ccbb8440622f1a70791ed2a8f99659af1Juha Kohoclean: $(CLEAN_DEPS)
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomiclobber: $(CLOBBER_DEPS)
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomilint: $(LINT_DEPS)
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomiwarlock:
f3904862b2f1f869ffad80ad556f2019b9b2121aTimo Sirainen @echo warlock is not supported
f3904862b2f1f869ffad80ad556f2019b9b2121aTimo Sirainen
f3904862b2f1f869ffad80ad556f2019b9b2121aTimo Sirainenmodlintlib: $(MODLINTLIB_DEPS)
74feb39854e50b644a070b27e952037353722932Timo Sirainen
74feb39854e50b644a070b27e952037353722932Timo Sirainenclean.lint: $(CLEAN_LINT_DEPS)
74feb39854e50b644a070b27e952037353722932Timo Sirainen
13479101da29577f7789d6f61faa1da3e2f7434aTimo Siraineninstall: $(INSTALL_DEPS)
13479101da29577f7789d6f61faa1da3e2f7434aTimo Sirainen
13479101da29577f7789d6f61faa1da3e2f7434aTimo Sirainen#
5546faab383f222004796a8170bc8baafa35c5bfPaul Howarth# Include common targets.
5546faab383f222004796a8170bc8baafa35c5bfPaul Howarth#
5546faab383f222004796a8170bc8baafa35c5bfPaul Howarthinclude $(UTSBASE)/sparc/Makefile.targ
5546faab383f222004796a8170bc8baafa35c5bfPaul Howarth