Makefile revision 0dc2366f7b9f9f36e10909b1e95edbf2a261c2ac
186N/A#
186N/A# CDDL HEADER START
186N/A#
186N/A# The contents of this file are subject to the terms of the
910N/A# Common Development and Distribution License (the "License").
851N/A# You may not use this file except in compliance with the License.
186N/A#
186N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
186N/A# or http://www.opensolaris.org/os/licensing.
186N/A# See the License for the specific language governing permissions
186N/A# and limitations under the License.
186N/A#
186N/A# When distributing Covered Code, include this CDDL HEADER in each
186N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
186N/A# If applicable, add the following below this CDDL HEADER, with the
186N/A# fields enclosed by brackets "[]" replaced with your own identifying
186N/A# information: Portions Copyright [yyyy] [name of copyright owner]
186N/A#
186N/A# CDDL HEADER END
186N/A#
186N/A#
186N/A# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
186N/A# Use is subject to license terms.
186N/A#
186N/A# This makefile drives the production of the qlge driver kernel module.
186N/A#
186N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
186N/A#
186N/AUTSBASE = ../..
186N/ACOMMON_BASE = ../../../common
186N/A
186N/A
186N/AARCHDIR:sh = cd ..; basename `pwd`
186N/A
186N/A#
493N/A# Define the module and object file sets.
186N/A#
186N/AMODULE = qlge
851N/AOBJECTS = $(QLGE_OBJS:%=$(OBJS_DIR)/%)
186N/ALINTS = $(QLGE_OBJS:%.o=$(LINTS_DIR)/%.ln)
911N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
911N/A
911N/A#
911N/A# Include common rules.
186N/A#
186N/Ainclude ../Makefile.$(ARCHDIR)
186N/A
186N/A#
186N/A# Define targets
493N/A#
493N/AALL_TARGET = $(BINARY)
186N/ALINT_TARGET = $(MODULE).lint
186N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
493N/A
851N/A#
186N/A# Overrides and depends_on
186N/A#
851N/AMODSTUBS_DIR = $(OBJS_DIR)
851N/A
910N/AINC_PATH += -I$(UTSBASE)/common/sys/fibre-channel/fca/qlge
LDFLAGS += -dy -Nmisc/mac -Ndrv/ip
C99MODE= -xc99=%all
C99LMODE= -Xc99=%all
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include ../Makefile.targ