Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
0N/A#
0N/A# CDDL HEADER START
1339N/A#
0N/A# The contents of this file are subject to the terms of the
1339N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/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#
919N/A# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
919N/A#
0N/A
0N/A#
0N/A# This makefile drives the production of the EoIB Nexus driver
156N/A#
493N/A# intel architecture dependent
0N/A#
1339N/A
1339N/A#
1339N/A# Path to the base of the uts directory tree (usually /usr/src/uts)
970N/A#
970N/AUTSBASE = ../..
970N/A
970N/A#
970N/A# Define the module and object file sets
970N/A#
970N/AMODULE = eoib
970N/AOBJECTS = $(EOIB_OBJS:%=$(OBJS_DIR)/%)
970N/ALINTS = $(EOIB_OBJS:%.o=$(LINTS_DIR)/%.ln)
970N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
970N/AWARLOCK_OUT = $(EOIB_OBJS:%.o=%.ll)
970N/AWARLOCK_OK = $(MODULE).ok
970N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
970N/A
970N/A#
970N/A# Include common rules
970N/A#
970N/Ainclude $(UTSBASE)/intel/Makefile.intel
970N/A
970N/A#
970N/A# Define targets
970N/A#
970N/AALL_TARGET = $(BINARY)
970N/ALINT_TARGET = $(MODULE).lint
1339N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
970N/A
0N/A# Module specific debug flag
950N/A#
0N/ACPPFLAGS += -DEIB_DEBUG
911N/A
950N/A#
950N/A# Lint pass one enforcement
911N/A#
0N/ACFLAGS += $(CCVERBOSE)
493N/A
493N/ACERRWARN += -_gcc=-Wno-switch
0N/ACERRWARN += -_gcc=-Wno-uninitialized
0N/A
156N/A#
156N/A# Depends on misc/ibtl
0N/A#
0N/ALDFLAGS += -dy -Nmisc/mac -Nmisc/ibtl -Nmisc/ibcm -Nmisc/ibmf
950N/A
950N/A#
950N/A# Default build targets
950N/A#
950N/A.KEEP_STATE:
950N/A
1102N/Adef: $(DEF_DEPS)
1160N/A
1160N/Aall: $(ALL_DEPS)
364N/A
156N/Aclean: $(CLEAN_DEPS)
156N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
0N/A
591N/Aclobber: $(CLOBBER_DEPS)
947N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
947N/A
591N/Alint: $(LINT_DEPS)
591N/A
591N/Amodlintlib: $(MODLINTLIB_DEPS)
947N/A
947N/Aclean.lint: $(CLEAN_LINT_DEPS)
947N/A
947N/Ainstall: $(INSTALL_DEPS)
947N/A
947N/A#
947N/A# Include common targets
947N/A#
947N/Ainclude $(UTSBASE)/intel/Makefile.targ
947N/A
947N/A#
947N/A# Defines for local commands
947N/A#
947N/AWARLOCK = warlock
947N/AWLCC = wlcc
947N/ATOUCH = touch
0N/ATEST = test
1446N/A
1446N/Awarlock: $(WARLOCK_OK)
156N/A
493N/A$(WARLOCK_OK): $(WARLOCK_OUT) $(WLCMD_DIR)/eoib.wlcmd warlock_ddi.files
493N/A $(WARLOCK) -c $(WLCMD_DIR)/eoib.wlcmd $(WARLOCK_OUT) \
837N/A -l ../warlock/ddi_dki_impl.ll
837N/A $(TOUCH) $@
846N/A
493N/A%.ll: $(UTSBASE)/common/io/ib/clients/eoib/eib_adm.c \
156N/A $(UTSBASE)/common/io/ib/clients/eoib/eib_chan.c \
493N/A $(UTSBASE)/common/io/ib/clients/eoib/eib_cmn.c \
493N/A $(UTSBASE)/common/io/ib/clients/eoib/eib_ctl.c \
493N/A $(UTSBASE)/common/io/ib/clients/eoib/eib_data.c \
364N/A $(UTSBASE)/common/io/ib/clients/eoib/eib_fip.c \
0N/A $(UTSBASE)/common/io/ib/clients/eoib/eib_ibt.c \
493N/A $(UTSBASE)/common/io/ib/clients/eoib/eib_log.c \
493N/A $(UTSBASE)/common/io/ib/clients/eoib/eib_mac.c \
156N/A $(UTSBASE)/common/io/ib/clients/eoib/eib_main.c \
493N/A $(UTSBASE)/common/io/ib/clients/eoib/eib_rsrc.c \
493N/A $(UTSBASE)/common/io/ib/clients/eoib/eib_svc.c \
0N/A $(UTSBASE)/common/io/ib/clients/eoib/eib_vnic.c \
1196N/A $(UTSBASE)/common/sys/ib/clients/eoib/fip.h \
1196N/A $(UTSBASE)/common/sys/ib/clients/eoib/eib.h \
1196N/A $(UTSBASE)/common/sys/ib/clients/eoib/eib_impl.h
1196N/A $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
1196N/A
967N/Awarlock_ddi.files:
967N/A @cd ../warlock; pwd; $(MAKE) warlock
967N/A