Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
2209N/A#
2209N/A# CDDL HEADER START
2209N/A#
2209N/A# The contents of this file are subject to the terms of the
2209N/A# Common Development and Distribution License (the "License").
2209N/A# You may not use this file except in compliance with the License.
2209N/A#
2209N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2209N/A# or http://www.opensolaris.org/os/licensing.
2209N/A# See the License for the specific language governing permissions
2209N/A# and limitations under the License.
2209N/A#
2209N/A# When distributing Covered Code, include this CDDL HEADER in each
2209N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2209N/A# If applicable, add the following below this CDDL HEADER, with the
2209N/A# fields enclosed by brackets "[]" replaced with your own identifying
2209N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2209N/A#
2209N/A# CDDL HEADER END
2209N/A#
3621N/A#
2209N/A# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
2209N/A#
2209N/A#
2209N/A
2209N/A#
3441N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
3441N/A#
3441N/AUTSBASE = ../..
2209N/A
2209N/A#
2209N/A# Define the module and object file sets.
2209N/A#
4820N/AMODULE = ibp
2316N/AOBJECTS = $(IBD_OBJS:%=$(OBJS_DIR)/%)
2209N/ALINTS = $(IBD_OBJS:%.o=$(LINTS_DIR)/%.ln)
2209N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
2209N/ACONF_SRCDIR = $(UTSBASE)/common/io/ib/clients/ibd
2209N/ALDFLAGS += -dy -Nmisc/mac -Nmisc/ibtl -Nmisc/ibcm -Nmisc/ibmf -Ndrv/ip \
2209N/A -Nmisc/dls -Ndrv/dld
4820N/AWARLOCK_OUT = $(IBD_OBJS:%.o=%.ll)
2209N/AWARLOCK_OK = $(MODULE).ok
2931N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
2209N/A#
4820N/A# Include common rules.
2899N/A#
4368N/Ainclude $(UTSBASE)/intel/Makefile.intel
4368N/A
4368N/A#
4368N/A# Define targets
4368N/A#
4368N/AALL_TARGET = $(BINARY) $(CONFMOD)
4368N/ALINT_TARGET = $(MODULE).lint
3062N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
2221N/A
2221N/A#
3817N/A# For now, disable these lint checks; maintainers should endeavor
3817N/A# to investigate and remove these for maximum lint coverage.
3817N/A# Please do not carry these forward to new Makefiles.
3817N/A#
2209N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
2209N/ALINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
2209N/A
2209N/ACERRWARN += -_gcc=-Wno-uninitialized
2209N/ACERRWARN += -_gcc=-Wno-switch
2209N/A
2209N/A#
2209N/A# Default build targets.
2209N/A#
2209N/A.KEEP_STATE:
2209N/A
2209N/Adef: $(DEF_DEPS)
2209N/A
4820N/Aall: $(ALL_DEPS)
2209N/A
4820N/Aclean: $(CLEAN_DEPS)
2209N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
2209N/A
2209N/Aclobber: $(CLOBBER_DEPS)
2209N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
2209N/A
2209N/Alint: $(LINT_DEPS)
2209N/A
2221N/Amodlintlib: $(MODLINTLIB_DEPS)
2209N/A
2209N/Aclean.lint: $(CLEAN_LINT_DEPS)
2209N/A
2209N/Ainstall: $(INSTALL_DEPS)
2209N/A
2209N/A#
2209N/A# Include common targets.
2209N/A#
2209N/Ainclude $(UTSBASE)/intel/Makefile.targ
2209N/A
2209N/A#
2209N/A# Defines for local commands.
2209N/A#
2209N/AWARLOCK = warlock
2209N/AWLCC = wlcc
2209N/ATOUCH = touch
2209N/ATEST = test
2221N/A
2221N/Awarlock: $(WARLOCK_OK)
2221N/A
2221N/A$(WARLOCK_OK): $(WARLOCK_OUT) $(WLCMD_DIR)/ibd.wlcmd warlock_ddi.files
2221N/A $(WARLOCK) -c $(WLCMD_DIR)/ibd.wlcmd $(WARLOCK_OUT) \
2221N/A -l ../warlock/ddi_dki_impl.ll
2221N/A $(TOUCH) $@
2209N/A
4371N/A%.ll: $(UTSBASE)/common/io/ib/clients/ibd/%.c \
4371N/A $(UTSBASE)/common/sys/ib/clients/ibd/ibd.h
4907N/A $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
4371N/A
2209N/Awarlock_ddi.files:
2209N/A @cd ../warlock; pwd; $(MAKE) warlock
2209N/A