Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
98N/A#
98N/A# CDDL HEADER START
109N/A#
98N/A# The contents of this file are subject to the terms of the
884N/A# Common Development and Distribution License (the "License").
851N/A# You may not use this file except in compliance with the License.
98N/A#
98N/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#
919N/A
98N/A#
98N/A# This makefile drives the production of the EoIB Nexus driver
98N/A#
98N/A# sparc architecture dependent
493N/A#
98N/A
98N/A#
884N/A# Path to the base of the uts directory tree (usually /usr/src/uts)
98N/A#
911N/AUTSBASE = ../..
911N/A
911N/A#
911N/A# Define the module and object file sets
98N/A#
851N/AMODULE = eibnx
98N/AOBJECTS = $(EIBNX_OBJS:%=$(OBJS_DIR)/%)
98N/ALINTS = $(EIBNX_OBJS:%.o=$(LINTS_DIR)/%.ln)
98N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
493N/ACONF_SRCDIR = $(UTSBASE)/common/io/ib/clients/eoib
493N/AWARLOCK_OUT = $(EIBNX_OBJS:%.o=%.ll)
98N/AWARLOCK_OK = $(MODULE).ok
705N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
705N/A
705N/A#
705N/A# Include common rules
98N/A#
493N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
493N/A
98N/A#
493N/A# Define targets
98N/A#
606N/AALL_TARGET = $(BINARY) $(SRC_CONFILE)
98N/ALINT_TARGET = $(MODULE).lint
98N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
#
# Overrides.
#
ALL_BUILDS = $(ALL_BUILDSONLY64)
DEF_BUILDS = $(DEF_BUILDSONLY64)
# Module specific debug flag
#
CPPFLAGS += -DENX_DEBUG
#
# Lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
#
# Depends on misc/ibtl
#
LDFLAGS += -dy -Nmisc/ibcm -Nmisc/ibtl
#
# The only lint flag we should need
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-uninitialized
#
# 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) lint32
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets
#
include $(UTSBASE)/sparc/Makefile.targ
#
# Defines for local commands
#
WARLOCK = warlock
WLCC = wlcc
TOUCH = touch
TEST = test
warlock: $(WARLOCK_OK)
$(WARLOCK_OK): $(WARLOCK_OUT) $(WLCMD_DIR)/eibnx.wlcmd warlock_ddi.files
$(WARLOCK) -c $(WLCMD_DIR)/eibnx.wlcmd $(WARLOCK_OUT) \
-l ../warlock/ddi_dki_impl.ll
$(TOUCH) $@
%.ll: $(UTSBASE)/common/io/ib/clients/eoib/enx_main.c \
$(UTSBASE)/common/io/ib/clients/eoib/enx_hdlrs.c \
$(UTSBASE)/common/io/ib/clients/eoib/enx_ibt.c \
$(UTSBASE)/common/io/ib/clients/eoib/enx_log.c \
$(UTSBASE)/common/io/ib/clients/eoib/enx_fip.c \
$(UTSBASE)/common/io/ib/clients/eoib/enx_misc.c \
$(UTSBASE)/common/io/ib/clients/eoib/enx_q.c \
$(UTSBASE)/common/io/ib/clients/eoib/enx_ctl.c \
$(UTSBASE)/common/sys/ib/clients/eoib/fip.h \
$(UTSBASE)/common/sys/ib/clients/eoib/eib.h \
$(UTSBASE)/common/sys/ib/clients/eoib/enx_impl.h
$(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
warlock_ddi.files:
@cd ../warlock; pwd; $(MAKE) warlock