Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
126N/A#
126N/A# CDDL HEADER START
1276N/A#
126N/A# The contents of this file are subject to the terms of the
1345N/A# Common Development and Distribution License (the "License").
126N/A# You may not use this file except in compliance with the License.
126N/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 (c) 2010, Oracle and/or its affiliates. All rights reserved.
919N/A#
919N/A#
126N/A
126N/A#
126N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
126N/A#
493N/AUTSBASE = ../..
126N/A
126N/A#
1370N/A# Define the module and object file sets.
126N/A#
911N/AMODULE = sol_uverbs
1370N/AOBJECTS = $(SOL_UVERBS_OBJS:%=$(OBJS_DIR)/%)
1370N/ALINTS = $(SOL_UVERBS_OBJS:%.o=$(LINTS_DIR)/%.ln)
1370N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
911N/ALDFLAGS += -dy -Nmisc/ibtl -Nmisc/sol_ofs
126N/ACONF_SRCDIR = $(UTSBASE)/common/io/ib/clients/of/sol_uverbs
1370N/AWARLOCK_OUT = $(SOL_UVERBS:%.o=%.ll)
126N/AWARLOCK_OK = $(MODULE).ok
126N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
126N/A#
126N/A# Include common rules.
126N/A#
126N/Ainclude $(UTSBASE)/intel/Makefile.intel
493N/A
969N/A#
126N/A# Define targets
970N/A#
970N/AALL_TARGET = $(BINARY) $(SRC_CONFILE)
970N/ALINT_TARGET = $(MODULE).lint
126N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
126N/A
493N/A#
126N/A# For now, disable these lint checks; maintainers should endeavor
126N/A# to investigate and remove these for maximum lint coverage.
493N/A# Please do not carry these forward to new Makefiles.
126N/A#
126N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
126N/ALINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
126N/ALINTTAGS += -erroff=E_STATIC_UNUSED
970N/ALINTTAGS += -erroff=E_CONST_TRUNCATED_BY_ASSIGN
970N/A
970N/ACERRWARN += -_gcc=-Wno-type-limits
126N/ACERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-unused-label
#
# 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_uverbs.wlcmd warlock_ddi.files
$(WARLOCK) -c $(WLCMD_DIR)/sol_uverbs.wlcmd $(WARLOCK_OUT) \
-l ../warlock/ddi_dki_impl.ll
$(TOUCH) $@
%.ll: $(UTSBASE)/common/io/ib/clients/of/sol_uverbs/%.c \
$(UTSBASE)/common/sys/ib/clients/of/sol_uverbs/sol_uverbs.h
$(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
warlock_ddi.files:
@cd ../warlock; pwd; $(MAKE) warlock