Makefile revision 4ebb14b236958cfe1ef4ff3b7a50216d9e51f997
418N/A#
418N/A# CDDL HEADER START
1356N/A#
418N/A# The contents of this file are subject to the terms of the
1607N/A# Common Development and Distribution License (the "License").
418N/A# You may not use this file except in compliance with the License.
418N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
919N/A#
418N/A#ident "%Z%%M% %I% %E% SMI"
418N/A#
418N/A# This makefile drives the production of the ibmf kernel module.
418N/A#
493N/A# intel architecture dependent
418N/A#
970N/A
970N/A#
970N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
970N/A#
1143N/AUTSBASE = ../..
1143N/A
1143N/A#
1143N/A# Define the module and object file sets.
970N/A#
970N/AMODULE = ibmf
970N/AOBJECTS = $(IBMF_OBJS:%=$(OBJS_DIR)/%)
970N/ALINTS = $(IBMF_OBJS:%.o=$(LINTS_DIR)/%.ln)
1590N/AROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
1590N/ALDFLAGS += -dy -Nmisc/ibtl
1590N/AWARLOCK_OUT = $(IBMF_OBJS:%.o=%.ll)
1590N/AWARLOCK_OK = $(MODULE).ok
970N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
970N/A#
970N/A# Include common rules.
970N/A#
1356N/Ainclude $(UTSBASE)/intel/Makefile.intel
1590N/A
970N/A#
418N/A# Define targets
1590N/A#
418N/AALL_TARGET = $(BINARY)
911N/ALINT_TARGET = $(MODULE).lint
1590N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
1590N/A
1590N/A#
911N/A# Overrides
418N/A#
553N/A
418N/A#DEBUG_DEFS_DBG32 += -DTNF_DEBUG
553N/A
553N/A#
553N/A# lint pass one enforcement
553N/A#
418N/ACFLAGS += $(CCVERBOSE)
418N/A
1231N/A#
1621N/A# For now, disable these lint checks; maintainers should endeavor
1641N/A# to investigate and remove these for maximum lint coverage.
418N/A# Please do not carry these forward to new Makefiles.
418N/A#
1143N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
493N/ALINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
418N/A
1143N/A#
1143N/A# Default build targets.
1143N/A#
1143N/A.KEEP_STATE:
1143N/A
1143N/Adef: $(DEF_DEPS)
1143N/A
1143N/Aall: $(ALL_DEPS)
1143N/A
1143N/Aclean: $(CLEAN_DEPS)
1143N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
1607N/A
1607N/Aclobber: $(CLOBBER_DEPS)
1607N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
1607N/A
418N/Alint: $(LINT_DEPS)
418N/A
851N/Amodlintlib: $(MODLINTLIB_DEPS)
1610N/A
418N/Aclean.lint: $(CLEAN_LINT_DEPS)
1196N/A
1196N/Ainstall: $(INSTALL_DEPS)
1196N/A
1196N/A#
1196N/A# Include common targets.
418N/A#
493N/Ainclude $(UTSBASE)/intel/Makefile.targ
418N/A
857N/A#
851N/A# Defines for local commands.
851N/A#
672N/AWLCC = wlcc
418N/ATOUCH = touch
857N/AWARLOCK = warlock
857N/ASCS = sccs
857N/ATEST = test
857N/A
857N/A#
857N/A# Warlock targets
857N/A#
418N/Awarlock: $(WARLOCK_OK)
851N/A
418N/A%.wlcmd:
1607N/A cd $(WLCMD_DIR); $(TEST) -f $@ || $(SCCS) get $@
1607N/A
1607N/A$(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files ibmf.wlcmd
1607N/A $(WARLOCK) -c $(WLCMD_DIR)/ibmf.wlcmd $(WARLOCK_OUT) \
1607N/A -l ../warlock/ddi_dki_impl.ll
1607N/A $(TOUCH) $@
1607N/A
1607N/A%.ll: $(UTSBASE)/common/io/ib/mgt/ibmf/%.c
970N/A $(WLCC) $(CPPFLAGS) -DNPROBE -DDEBUG -o $@ $<
970N/A
970N/Awarlock_ddi.files:
1167N/A @cd ../warlock; pwd; $(MAKE) warlock
1167N/A