Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync#
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync# CDDL HEADER START
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync#
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync# The contents of this file are subject to the terms of the
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync# Common Development and Distribution License (the "License").
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync# You may not use this file except in compliance with the License.
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync#
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync# or http://www.opensolaris.org/os/licensing.
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync# See the License for the specific language governing permissions
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync# and limitations under the License.
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync#
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync# When distributing Covered Code, include this CDDL HEADER in each
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync# If applicable, add the following below this CDDL HEADER, with the
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync# fields enclosed by brackets "[]" replaced with your own identifying
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync#
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync# CDDL HEADER END
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync#
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync
ab7d85351856745f1953770699c3276f0b17703evboxsync#
ab7d85351856745f1953770699c3276f0b17703evboxsync# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
ab7d85351856745f1953770699c3276f0b17703evboxsync#
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync#
3ab0a0f1596a83e60894b6d28661f82901dcfc20vboxsync# This makefile drives the production of the EoIB Nexus driver
ab7d85351856745f1953770699c3276f0b17703evboxsync#
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync# intel architecture dependent
ab7d85351856745f1953770699c3276f0b17703evboxsync#
ab7d85351856745f1953770699c3276f0b17703evboxsync
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync#
ab7d85351856745f1953770699c3276f0b17703evboxsync# Path to the base of the uts directory tree (usually /usr/src/uts)
ab7d85351856745f1953770699c3276f0b17703evboxsync#
3ab0a0f1596a83e60894b6d28661f82901dcfc20vboxsyncUTSBASE = ../..
3ab0a0f1596a83e60894b6d28661f82901dcfc20vboxsync
3ab0a0f1596a83e60894b6d28661f82901dcfc20vboxsync#
3ab0a0f1596a83e60894b6d28661f82901dcfc20vboxsync# Define the module and object file sets
3ab0a0f1596a83e60894b6d28661f82901dcfc20vboxsync#
3ab0a0f1596a83e60894b6d28661f82901dcfc20vboxsyncMODULE = eoib
ab7d85351856745f1953770699c3276f0b17703evboxsyncOBJECTS = $(EOIB_OBJS:%=$(OBJS_DIR)/%)
ab7d85351856745f1953770699c3276f0b17703evboxsyncLINTS = $(EOIB_OBJS:%.o=$(LINTS_DIR)/%.ln)
ab7d85351856745f1953770699c3276f0b17703evboxsyncROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
ab7d85351856745f1953770699c3276f0b17703evboxsyncWARLOCK_OUT = $(EOIB_OBJS:%.o=%.ll)
ab7d85351856745f1953770699c3276f0b17703evboxsyncWARLOCK_OK = $(MODULE).ok
ab7d85351856745f1953770699c3276f0b17703evboxsyncWLCMD_DIR = $(UTSBASE)/common/io/warlock
ab7d85351856745f1953770699c3276f0b17703evboxsync
ab7d85351856745f1953770699c3276f0b17703evboxsync#
ab7d85351856745f1953770699c3276f0b17703evboxsync# Include common rules
ab7d85351856745f1953770699c3276f0b17703evboxsync#
ab7d85351856745f1953770699c3276f0b17703evboxsyncinclude $(UTSBASE)/intel/Makefile.intel
ab7d85351856745f1953770699c3276f0b17703evboxsync
ab7d85351856745f1953770699c3276f0b17703evboxsync#
ab7d85351856745f1953770699c3276f0b17703evboxsync# Define targets
ab7d85351856745f1953770699c3276f0b17703evboxsync#
ab7d85351856745f1953770699c3276f0b17703evboxsyncALL_TARGET = $(BINARY)
ab7d85351856745f1953770699c3276f0b17703evboxsyncLINT_TARGET = $(MODULE).lint
ab7d85351856745f1953770699c3276f0b17703evboxsyncINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
ab7d85351856745f1953770699c3276f0b17703evboxsync
ab7d85351856745f1953770699c3276f0b17703evboxsync# Module specific debug flag
ab7d85351856745f1953770699c3276f0b17703evboxsync#
ab7d85351856745f1953770699c3276f0b17703evboxsyncCPPFLAGS += -DEIB_DEBUG
ab7d85351856745f1953770699c3276f0b17703evboxsync
ab7d85351856745f1953770699c3276f0b17703evboxsync#
ab7d85351856745f1953770699c3276f0b17703evboxsync# Lint pass one enforcement
ab7d85351856745f1953770699c3276f0b17703evboxsync#
ab7d85351856745f1953770699c3276f0b17703evboxsyncCFLAGS += $(CCVERBOSE)
ab7d85351856745f1953770699c3276f0b17703evboxsync
ab7d85351856745f1953770699c3276f0b17703evboxsyncCERRWARN += -_gcc=-Wno-switch
ab7d85351856745f1953770699c3276f0b17703evboxsyncCERRWARN += -_gcc=-Wno-uninitialized
ab7d85351856745f1953770699c3276f0b17703evboxsync
ab7d85351856745f1953770699c3276f0b17703evboxsync#
ab7d85351856745f1953770699c3276f0b17703evboxsync# Depends on misc/ibtl
ab7d85351856745f1953770699c3276f0b17703evboxsync#
ab7d85351856745f1953770699c3276f0b17703evboxsyncLDFLAGS += -dy -Nmisc/mac -Nmisc/ibtl -Nmisc/ibcm -Nmisc/ibmf
3ab0a0f1596a83e60894b6d28661f82901dcfc20vboxsync
3ab0a0f1596a83e60894b6d28661f82901dcfc20vboxsync#
ab7d85351856745f1953770699c3276f0b17703evboxsync# Default build targets
ab7d85351856745f1953770699c3276f0b17703evboxsync#
ab7d85351856745f1953770699c3276f0b17703evboxsync.KEEP_STATE:
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync
102134b06c34f94c14f0665843f050c26f4b21f3vboxsyncdef: $(DEF_DEPS)
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync
102134b06c34f94c14f0665843f050c26f4b21f3vboxsyncall: $(ALL_DEPS)
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync
102134b06c34f94c14f0665843f050c26f4b21f3vboxsyncclean: $(CLEAN_DEPS)
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync
102134b06c34f94c14f0665843f050c26f4b21f3vboxsyncclobber: $(CLOBBER_DEPS)
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync
102134b06c34f94c14f0665843f050c26f4b21f3vboxsynclint: $(LINT_DEPS)
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync
102134b06c34f94c14f0665843f050c26f4b21f3vboxsyncmodlintlib: $(MODLINTLIB_DEPS)
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync
102134b06c34f94c14f0665843f050c26f4b21f3vboxsyncclean.lint: $(CLEAN_LINT_DEPS)
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync
102134b06c34f94c14f0665843f050c26f4b21f3vboxsyncinstall: $(INSTALL_DEPS)
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync#
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync# Include common targets
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync#
102134b06c34f94c14f0665843f050c26f4b21f3vboxsyncinclude $(UTSBASE)/intel/Makefile.targ
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync#
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync# Defines for local commands
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync#
102134b06c34f94c14f0665843f050c26f4b21f3vboxsyncWARLOCK = warlock
102134b06c34f94c14f0665843f050c26f4b21f3vboxsyncWLCC = wlcc
102134b06c34f94c14f0665843f050c26f4b21f3vboxsyncTOUCH = touch
102134b06c34f94c14f0665843f050c26f4b21f3vboxsyncTEST = test
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync
102134b06c34f94c14f0665843f050c26f4b21f3vboxsyncwarlock: $(WARLOCK_OK)
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync$(WARLOCK_OK): $(WARLOCK_OUT) $(WLCMD_DIR)/eoib.wlcmd warlock_ddi.files
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync $(WARLOCK) -c $(WLCMD_DIR)/eoib.wlcmd $(WARLOCK_OUT) \
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync -l ../warlock/ddi_dki_impl.ll
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync $(TOUCH) $@
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync%.ll: $(UTSBASE)/common/io/ib/clients/eoib/eib_adm.c \
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync $(UTSBASE)/common/io/ib/clients/eoib/eib_chan.c \
$(UTSBASE)/common/io/ib/clients/eoib/eib_cmn.c \
$(UTSBASE)/common/io/ib/clients/eoib/eib_ctl.c \
$(UTSBASE)/common/io/ib/clients/eoib/eib_data.c \
$(UTSBASE)/common/io/ib/clients/eoib/eib_fip.c \
$(UTSBASE)/common/io/ib/clients/eoib/eib_ibt.c \
$(UTSBASE)/common/io/ib/clients/eoib/eib_log.c \
$(UTSBASE)/common/io/ib/clients/eoib/eib_mac.c \
$(UTSBASE)/common/io/ib/clients/eoib/eib_main.c \
$(UTSBASE)/common/io/ib/clients/eoib/eib_rsrc.c \
$(UTSBASE)/common/io/ib/clients/eoib/eib_svc.c \
$(UTSBASE)/common/io/ib/clients/eoib/eib_vnic.c \
$(UTSBASE)/common/sys/ib/clients/eoib/fip.h \
$(UTSBASE)/common/sys/ib/clients/eoib/eib.h \
$(UTSBASE)/common/sys/ib/clients/eoib/eib_impl.h
$(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
warlock_ddi.files:
@cd ../warlock; pwd; $(MAKE) warlock