Makefile revision d291d9f21e8c0417aec99de243dd48bc400002d0
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# CDDL HEADER START
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# The contents of this file are subject to the terms of the
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# Common Development and Distribution License, Version 1.0 only
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# (the "License"). You may not use this file except in compliance
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# with the License.
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# or http://www.opensolaris.org/os/licensing.
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# See the License for the specific language governing permissions
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# and limitations under the License.
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# When distributing Covered Code, include this CDDL HEADER in each
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# If applicable, add the following below this CDDL HEADER, with the
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# fields enclosed by brackets "[]" replaced with your own identifying
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# information: Portions Copyright [yyyy] [name of copyright owner]
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# CDDL HEADER END
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
4a44f0a129f99893a7aef6325037c5e1fa702a0fAnurag S. Maskey# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# Use is subject to license terms.
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# ident "%Z%%M% %I% %E% SMI"
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# This makefile drives the production of the ibmf kernel module.
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# sparc architecture dependent
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# Path to the base of the uts directory tree (usually /usr/src/uts).
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. MaskeyUTSBASE = ../..
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# Define the module and object file sets.
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. MaskeyMODULE = ibmf
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. MaskeyOBJECTS = $(IBMF_OBJS:%=$(OBJS_DIR)/%)
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. MaskeyLINTS = $(IBMF_OBJS:%.o=$(LINTS_DIR)/%.ln)
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. MaskeyROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. MaskeyLDFLAGS += -dy -Nmisc/ibtl
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. MaskeyWARLOCK_OUT = $(IBMF_OBJS:%.o=%.ll)
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. MaskeyWARLOCK_OK = $(MODULE).ok
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# Include common rules.
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskeyinclude $(UTSBASE)/sparc/Makefile.sparc
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# Define targets
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. MaskeyALL_TARGET = $(BINARY)
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. MaskeyLINT_TARGET = $(MODULE).lint
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. MaskeyINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# Overrides
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#DEBUG_DEFS_DBG64 += -DTNF_DEBUG
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. MaskeyALL_BUILDS = $(ALL_BUILDSONLY64)
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. MaskeyDEF_BUILDS = $(DEF_BUILDSONLY64)
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# lint pass one enforcement
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. MaskeyCFLAGS += $(CCVERBOSE)
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# Default build targets.
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey.KEEP_STATE:
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskeydef: $(DEF_DEPS)
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskeyall: $(ALL_DEPS)
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskeyclean: $(CLEAN_DEPS); \
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey
03e9aa6d0661fbdf89669b14e801767d7e504fe8Renee Danson Sommerfeldclobber: $(CLOBBER_DEPS); \
03e9aa6d0661fbdf89669b14e801767d7e504fe8Renee Danson Sommerfeld $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
03e9aa6d0661fbdf89669b14e801767d7e504fe8Renee Danson Sommerfeld
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskeylint: $(LINT_DEPS)
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskeymodlintlib: $(MODLINTLIB_DEPS) lint32
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskeyclean.lint: $(CLEAN_LINT_DEPS)
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskeyinstall: $(INSTALL_DEPS)
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# Include common targets.
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskeyinclude $(UTSBASE)/sparc/Makefile.targ
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# Defines for local commands.
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. MaskeyWLCC = wlcc
03e9aa6d0661fbdf89669b14e801767d7e504fe8Renee Danson SommerfeldTOUCH = touch
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. MaskeyWARLOCK = warlock
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. MaskeySCS = sccs
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. MaskeyTEST = test
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# Warlock targets
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey#
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. MaskeyWARLOCK_OBJECTS = $(IBMF_OBJS:%.o=%.ll)
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. MaskeyIBMF_FILES = $(IBMF_OBJS:%.o= -l ../ibmf/%.ll)
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskeywarlock: $(MODULE).ok
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey%.wlcmd:
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey $(TEST) -f $@ || @$(SCCS) get $@
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey$(MODULE).ok: $(WARLOCK_OBJECTS) warlock_ddi.files ibmf.wlcmd
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey $(WARLOCK) -c ibmf.wlcmd $(WARLOCK_OBJECTS) $(IBMF_FILES) \
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey -l ../warlock/ddi_dki_impl.ll
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey $(TOUCH) $@
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey%.ll: $(UTSBASE)/common/io/ib/mgt/ibmf/%.c
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey $(WLCC) $(CPPFLAGS) -DNPROBE -DDEBUG -o $@ $<
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskeywarlock_ddi.files:
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey @cd ../warlock; pwd; $(MAKE) warlock
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey