Makefile revision 9e39c5ba00a55fa05777cc94b148296af305e135
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# CDDL HEADER START
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# The contents of this file are subject to the terms of the
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# Common Development and Distribution License (the "License").
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# You may not use this file except in compliance with the License.
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# or http://www.opensolaris.org/os/licensing.
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# See the License for the specific language governing permissions
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# and limitations under the License.
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# When distributing Covered Code, include this CDDL HEADER in each
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# If applicable, add the following below this CDDL HEADER, with the
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# fields enclosed by brackets "[]" replaced with your own identifying
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# information: Portions Copyright [yyyy] [name of copyright owner]
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# CDDL HEADER END
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# Use is subject to license terms.
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# Paths to the base of the uts directory trees
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanUTSBASE = ../..
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# Define the module and object file sets.
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanMODULE = daplt
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanOBJECTS = $(DAPLT_OBJS:%=$(OBJS_DIR)/%)
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanLINTS = $(DAPLT_OBJS:%.o=$(LINTS_DIR)/%.ln)
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanCONF_SRCDIR = $(UTSBASE)/common/io/ib/clients/daplt
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanLDFLAGS += -dy -Nmisc/ibtl -Nmisc/ibcm
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanWARLOCK_OUT = $(DAPLT_OBJS:%.o=%.ll)
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanWARLOCK_OK = $(MODULE).ok
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanWLCMD_DIR = $(UTSBASE)/common/io/warlock
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# Include common rules.
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathaninclude $(UTSBASE)/intel/Makefile.intel
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# Define targets
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanALL_TARGET = $(BINARY) $(SRC_CONFILE)
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanLINT_TARGET = $(MODULE).lint
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# path for header files
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweINCLUDE_PATH += -I$(UTSBASE)/common/sys/ib/clients/daplt
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe#
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe# Overrides.
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# For now, disable these lint checks; maintainers should endeavor
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# to investigate and remove these for maximum lint coverage.
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# Please do not carry these forward to new Makefiles.
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar SwaminathanLINTTAGS += -erroff=E_STATIC_UNUSED
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan# Default build targets.
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan#
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan.KEEP_STATE:
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathandef: $(DEF_DEPS)
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathanall: $(ALL_DEPS)
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathanclean: $(CLEAN_DEPS)
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathanclobber: $(CLOBBER_DEPS)
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
4d0e50075058332ce0cd62bc2669a8a4dea45da0Sukumar Swaminathan
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)/daplt.wlcmd warlock_ddi.files
$(WARLOCK) -c $(WLCMD_DIR)/daplt.wlcmd $(WARLOCK_OUT) \
-l $(UTSBASE)/intel/warlock/ddi_dki_impl.ll
$(TOUCH) $@
%.ll: $(UTSBASE)/common/io/ib/clients/daplt/%.c \
$(UTSBASE)/common/sys/ib/clients/daplt/daplt.h \
$(UTSBASE)/common/sys/ib/clients/daplt/daplt_if.h
$(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
warlock_ddi.files:
@cd $(UTSBASE)/intel/warlock; pwd; $(MAKE) warlock