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# 25*b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 26*b6b206fcSJohn Levon 27bafec742SSukumar Swaminathan# 28bafec742SSukumar Swaminathan# Path to the base of the uts directory tree (usually /usr/src/uts). 29bafec742SSukumar Swaminathan# 30bafec742SSukumar SwaminathanUTSBASE = ../.. 31bafec742SSukumar SwaminathanCOMMON_BASE = ../../../common 32bafec742SSukumar Swaminathan 33bafec742SSukumar Swaminathan 34bafec742SSukumar SwaminathanARCHDIR:sh = cd ..; basename `pwd` 35bafec742SSukumar Swaminathan 36bafec742SSukumar Swaminathan# 37bafec742SSukumar Swaminathan# Define the module and object file sets. 38bafec742SSukumar Swaminathan# 39bafec742SSukumar SwaminathanMODULE = qlge 40bafec742SSukumar SwaminathanOBJECTS = $(QLGE_OBJS:%=$(OBJS_DIR)/%) 41bafec742SSukumar SwaminathanLINTS = $(QLGE_OBJS:%.o=$(LINTS_DIR)/%.ln) 42bafec742SSukumar SwaminathanROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 43bafec742SSukumar Swaminathan 44bafec742SSukumar Swaminathan# 45bafec742SSukumar Swaminathan# Include common rules. 46bafec742SSukumar Swaminathan# 47bafec742SSukumar Swaminathaninclude ../Makefile.$(ARCHDIR) 48bafec742SSukumar Swaminathan 49bafec742SSukumar Swaminathan# 50bafec742SSukumar Swaminathan# Define targets 51bafec742SSukumar Swaminathan# 52bafec742SSukumar SwaminathanALL_TARGET = $(BINARY) 53bafec742SSukumar SwaminathanLINT_TARGET = $(MODULE).lint 54bafec742SSukumar SwaminathanINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 55bafec742SSukumar Swaminathan 56bafec742SSukumar Swaminathan# 57bafec742SSukumar Swaminathan# Overrides and depends_on 58bafec742SSukumar Swaminathan# 59bafec742SSukumar SwaminathanMODSTUBS_DIR = $(OBJS_DIR) 60bafec742SSukumar Swaminathan 61bafec742SSukumar SwaminathanINC_PATH += -I$(UTSBASE)/common/sys/fibre-channel/fca/qlge 62bafec742SSukumar Swaminathan 63bafec742SSukumar SwaminathanLDFLAGS += -dy -Nmisc/mac -Ndrv/ip 64bafec742SSukumar Swaminathan 65bafec742SSukumar SwaminathanC99LMODE= -Xc99=%all 66bafec742SSukumar Swaminathan 677014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 687014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 697014882cSRichard Lowe 70*b6b206fcSJohn Levon# needs work 71*b6b206fcSJohn Levon$(OBJS_DIR)/qlge.o := SMOFF += deref_check 72*b6b206fcSJohn Levon 73bafec742SSukumar Swaminathan# 74bafec742SSukumar Swaminathan# Default build targets. 75bafec742SSukumar Swaminathan# 76bafec742SSukumar Swaminathan.KEEP_STATE: 77bafec742SSukumar Swaminathan 78bafec742SSukumar Swaminathandef: $(DEF_DEPS) 79bafec742SSukumar Swaminathan 80bafec742SSukumar Swaminathanall: $(ALL_DEPS) 81bafec742SSukumar Swaminathan 82bafec742SSukumar Swaminathanclean: $(CLEAN_DEPS) 83bafec742SSukumar Swaminathan 84bafec742SSukumar Swaminathanclobber: $(CLOBBER_DEPS) 85bafec742SSukumar Swaminathan 86bafec742SSukumar Swaminathanlint: $(LINT_DEPS) 87bafec742SSukumar Swaminathan 88bafec742SSukumar Swaminathanmodlintlib: $(MODLINTLIB_DEPS) 89bafec742SSukumar Swaminathan 90bafec742SSukumar Swaminathanclean.lint: $(CLEAN_LINT_DEPS) 91bafec742SSukumar Swaminathan 92bafec742SSukumar Swaminathaninstall: $(INSTALL_DEPS) 93bafec742SSukumar Swaminathan 94bafec742SSukumar Swaminathan# 95bafec742SSukumar Swaminathan# Include common targets. 96bafec742SSukumar Swaminathan# 97bafec742SSukumar Swaminathaninclude ../Makefile.targ 98