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