Makefile revision fcf3ce441efd61da9bb2884968af01cb7c1452cc
407N/A#
407N/A# CDDL HEADER START
407N/A#
407N/A# The contents of this file are subject to the terms of the
407N/A# Common Development and Distribution License (the "License").
407N/A# You may not use this file except in compliance with the License.
407N/A#
407N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
407N/A# or http://www.opensolaris.org/os/licensing.
407N/A# See the License for the specific language governing permissions
407N/A# and limitations under the License.
407N/A#
407N/A# When distributing Covered Code, include this CDDL HEADER in each
407N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
407N/A# If applicable, add the following below this CDDL HEADER, with the
407N/A# fields enclosed by brackets "[]" replaced with your own identifying
407N/A# information: Portions Copyright [yyyy] [name of copyright owner]
407N/A#
407N/A# CDDL HEADER END
407N/A#
407N/A#
407N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
407N/A# Use is subject to license terms.
407N/A#
407N/A# This makefile drives the production of the qlt driver for
407N/A# COMSTAR.
407N/A
407N/A#
407N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
407N/A#
407N/AUTSBASE = ../..
407N/A
493N/AARCHDIR:sh = cd ..; basename `pwd`
407N/A
407N/A#
407N/A# Define the module and object file sets.
493N/A#
407N/AMODULE = qlt
407N/AOBJECTS = $(QLT_OBJS:%=$(OBJS_DIR)/%)
493N/ALINTS = $(QLT_OBJS:%.o=$(LINTS_DIR)/%.ln)
407N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
407N/ACONF_SRCDIR = $(UTSBASE)/common/io/comstar/port/qlt
414N/A
407N/A#
407N/A# Include common rules.
407N/A#
493N/Ainclude ../Makefile.$(ARCHDIR)
493N/A
407N/A#
407N/A# Define targets
#
ALL_TARGET = $(BINARY) $(SRC_CONFILE)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
#
# Overrides and depends_on
#
MODSTUBS_DIR = $(OBJS_DIR)
LDFLAGS += -dy -Ndrv/fct -Ndrv/stmf
CFLAGS += -DUNIQUE_FW_NAME
INC_PATH += -I$(UTSBASE)/common/io/comstar/port/qlt
INC_PATH += -I$(UTSBASE)/common/sys
C99MODE= -xc99=%all
C99LMODE= -Xc99=%all
#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
#
LINTTAGS += -DUNIQUE_FW_NAME
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_STATIC_UNUSED
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
#
# 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