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