1bafec742SSukumar Swaminathan# 2bafec742SSukumar Swaminathan# CDDL HEADER START 3bafec742SSukumar Swaminathan# 4bafec742SSukumar Swaminathan# The contents of this file are subject to the terms of the 5bafec742SSukumar Swaminathan# Common Development and Distribution License (the "License"). 6bafec742SSukumar Swaminathan# You may not use this file except in compliance with the License. 7bafec742SSukumar Swaminathan# 8bafec742SSukumar Swaminathan# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9bafec742SSukumar Swaminathan# or http://www.opensolaris.org/os/licensing. 10bafec742SSukumar Swaminathan# See the License for the specific language governing permissions 11bafec742SSukumar Swaminathan# and limitations under the License. 12bafec742SSukumar Swaminathan# 13bafec742SSukumar Swaminathan# When distributing Covered Code, include this CDDL HEADER in each 14bafec742SSukumar Swaminathan# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15bafec742SSukumar Swaminathan# If applicable, add the following below this CDDL HEADER, with the 16bafec742SSukumar Swaminathan# fields enclosed by brackets "[]" replaced with your own identifying 17bafec742SSukumar Swaminathan# information: Portions Copyright [yyyy] [name of copyright owner] 18bafec742SSukumar Swaminathan# 19bafec742SSukumar Swaminathan# CDDL HEADER END 20bafec742SSukumar Swaminathan# 21bafec742SSukumar Swaminathan# 220dc2366fSVenugopal Iyer# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 23bafec742SSukumar Swaminathan# Use is subject to license terms. 24bafec742SSukumar Swaminathan# 25bafec742SSukumar Swaminathan# This makefile drives the production of the qlge driver kernel module. 26bafec742SSukumar Swaminathan# 27bafec742SSukumar Swaminathan# Path to the base of the uts directory tree (usually /usr/src/uts). 28bafec742SSukumar Swaminathan# 29bafec742SSukumar SwaminathanUTSBASE = ../.. 30bafec742SSukumar SwaminathanCOMMON_BASE = ../../../common 31bafec742SSukumar Swaminathan 32bafec742SSukumar Swaminathan 33bafec742SSukumar SwaminathanARCHDIR:sh = cd ..; basename `pwd` 34bafec742SSukumar Swaminathan 35bafec742SSukumar Swaminathan# 36bafec742SSukumar Swaminathan# Define the module and object file sets. 37bafec742SSukumar Swaminathan# 38bafec742SSukumar SwaminathanMODULE = qlge 39bafec742SSukumar SwaminathanOBJECTS = $(QLGE_OBJS:%=$(OBJS_DIR)/%) 40bafec742SSukumar SwaminathanLINTS = $(QLGE_OBJS:%.o=$(LINTS_DIR)/%.ln) 41bafec742SSukumar SwaminathanROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 42bafec742SSukumar Swaminathan 43bafec742SSukumar Swaminathan# 44bafec742SSukumar Swaminathan# Include common rules. 45bafec742SSukumar Swaminathan# 46bafec742SSukumar Swaminathaninclude ../Makefile.$(ARCHDIR) 47bafec742SSukumar Swaminathan 48bafec742SSukumar Swaminathan# 49bafec742SSukumar Swaminathan# Define targets 50bafec742SSukumar Swaminathan# 51bafec742SSukumar SwaminathanALL_TARGET = $(BINARY) 52bafec742SSukumar SwaminathanLINT_TARGET = $(MODULE).lint 53bafec742SSukumar SwaminathanINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 54bafec742SSukumar Swaminathan 55bafec742SSukumar Swaminathan# 56bafec742SSukumar Swaminathan# Overrides and depends_on 57bafec742SSukumar Swaminathan# 58bafec742SSukumar SwaminathanMODSTUBS_DIR = $(OBJS_DIR) 59bafec742SSukumar Swaminathan 60bafec742SSukumar SwaminathanINC_PATH += -I$(UTSBASE)/common/sys/fibre-channel/fca/qlge 61bafec742SSukumar Swaminathan 62bafec742SSukumar SwaminathanLDFLAGS += -dy -Nmisc/mac -Ndrv/ip 63bafec742SSukumar Swaminathan 64bafec742SSukumar SwaminathanC99MODE= -xc99=%all 65bafec742SSukumar SwaminathanC99LMODE= -Xc99=%all 66bafec742SSukumar Swaminathan 67*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 68*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 69*7014882cSRichard Lowe 70bafec742SSukumar Swaminathan# 71bafec742SSukumar Swaminathan# Default build targets. 72bafec742SSukumar Swaminathan# 73bafec742SSukumar Swaminathan.KEEP_STATE: 74bafec742SSukumar Swaminathan 75bafec742SSukumar Swaminathandef: $(DEF_DEPS) 76bafec742SSukumar Swaminathan 77bafec742SSukumar Swaminathanall: $(ALL_DEPS) 78bafec742SSukumar Swaminathan 79bafec742SSukumar Swaminathanclean: $(CLEAN_DEPS) 80bafec742SSukumar Swaminathan 81bafec742SSukumar Swaminathanclobber: $(CLOBBER_DEPS) 82bafec742SSukumar Swaminathan 83bafec742SSukumar Swaminathanlint: $(LINT_DEPS) 84bafec742SSukumar Swaminathan 85bafec742SSukumar Swaminathanmodlintlib: $(MODLINTLIB_DEPS) 86bafec742SSukumar Swaminathan 87bafec742SSukumar Swaminathanclean.lint: $(CLEAN_LINT_DEPS) 88bafec742SSukumar Swaminathan 89bafec742SSukumar Swaminathaninstall: $(INSTALL_DEPS) 90bafec742SSukumar Swaminathan 91bafec742SSukumar Swaminathan# 92bafec742SSukumar Swaminathan# Include common targets. 93bafec742SSukumar Swaminathan# 94bafec742SSukumar Swaminathaninclude ../Makefile.targ 95