Makefile revision bf56214c0556fa6864189c826d39dbe156bb22a0
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm# CDDL HEADER START
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm# The contents of this file are subject to the terms of the
6185db853e024a486ff8837e6784dd290d866112dougm# Common Development and Distribution License (the "License").
6185db853e024a486ff8837e6784dd290d866112dougm# You may not use this file except in compliance with the License.
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6185db853e024a486ff8837e6784dd290d866112dougm# or http://www.opensolaris.org/os/licensing.
6185db853e024a486ff8837e6784dd290d866112dougm# See the License for the specific language governing permissions
6185db853e024a486ff8837e6784dd290d866112dougm# and limitations under the License.
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm# When distributing Covered Code, include this CDDL HEADER in each
6185db853e024a486ff8837e6784dd290d866112dougm# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6185db853e024a486ff8837e6784dd290d866112dougm# If applicable, add the following below this CDDL HEADER, with the
6185db853e024a486ff8837e6784dd290d866112dougm# fields enclosed by brackets "[]" replaced with your own identifying
6185db853e024a486ff8837e6784dd290d866112dougm# information: Portions Copyright [yyyy] [name of copyright owner]
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm# CDDL HEADER END
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm# uts/intel/hci1394/Makefile
549ec3fff108310966327d1dc9004551b63210b7dougm#
6185db853e024a486ff8837e6784dd290d866112dougm# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
6185db853e024a486ff8837e6784dd290d866112dougm# Use is subject to license terms.
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm#ident "%Z%%M% %I% %E% SMI"
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm# This makefile drives the production of the hci1394 OHCI HAL module.
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm# intel architecture dependent
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm# Path to the base of the uts directory tree (usually /usr/src/uts).
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougmUTSBASE = ../..
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm# Define the module and object file sets.
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougmMODULE = hci1394
6185db853e024a486ff8837e6784dd290d866112dougmOBJECTS = $(HCI1394_OBJS:%=$(OBJS_DIR)/%)
6185db853e024a486ff8837e6784dd290d866112dougmLINTS = $(HCI1394_OBJS:%.o=$(LINTS_DIR)/%.ln)
6185db853e024a486ff8837e6784dd290d866112dougmROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
6185db853e024a486ff8837e6784dd290d866112dougmCONF_SRCDIR = $(UTSBASE)/common/io/1394/adapters
6185db853e024a486ff8837e6784dd290d866112dougmLDFLAGS += -dy -Nmisc/s1394
6185db853e024a486ff8837e6784dd290d866112dougmWARLOCK_OUT = $(HCI1394_OBJS:%.o=%.ll)
6185db853e024a486ff8837e6784dd290d866112dougmWARLOCK_OK = $(MODULE).ok
6185db853e024a486ff8837e6784dd290d866112dougmWLCMD_DIR = $(UTSBASE)/common/io/warlock
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm# Include common rules.
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougminclude $(UTSBASE)/intel/Makefile.intel
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougm#
549ec3fff108310966327d1dc9004551b63210b7dougm# Define targets
549ec3fff108310966327d1dc9004551b63210b7dougm#
6185db853e024a486ff8837e6784dd290d866112dougmALL_TARGET = $(BINARY) $(SRC_CONFILE)
6185db853e024a486ff8837e6784dd290d866112dougmLINT_TARGET = $(MODULE).lint
6185db853e024a486ff8837e6784dd290d866112dougmINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm# Overrides
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm#ALL_BUILDS = $(ALL_BUILDSONLY64)
6185db853e024a486ff8837e6784dd290d866112dougm#DEF_BUILDS = $(DEF_BUILDSONLY64)
6185db853e024a486ff8837e6784dd290d866112dougmCLEANLINTFILES += $(LINT32_FILES)
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougmDEBUG_DEFS_DBG32 += -DTNF_DEBUG
6185db853e024a486ff8837e6784dd290d866112dougm#DEBUG_DEFS_DBG64 += -DTNF_DEBUG
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm# For now, disable these lint checks; maintainers should endeavor
6185db853e024a486ff8837e6784dd290d866112dougm# to investigate and remove these for maximum lint coverage.
6185db853e024a486ff8837e6784dd290d866112dougm# Please do not carry these forward to new Makefiles.
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougmLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
6185db853e024a486ff8837e6784dd290d866112dougmLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
6185db853e024a486ff8837e6784dd290d866112dougmLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
6185db853e024a486ff8837e6784dd290d866112dougmLINTTAGS += -erroff=E_STATIC_UNUSED
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
#
# 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)
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 targets
#
S1394_FILES = $(S1394_OBJS:%.o= -l ../s1394/%.ll)
warlock: $(WARLOCK_OK)
$(WARLOCK_OK): $(WARLOCK_OUT) s1394.files warlock_ddi.files \
$(WLCMD_DIR)/hci1394.wlcmd
$(WARLOCK) -c $(WLCMD_DIR)/hci1394.wlcmd $(WARLOCK_OUT) $(S1394_FILES) \
-l ../warlock/ddi_dki_impl.ll
$(TOUCH) $@
%.ll: $(UTSBASE)/common/io/1394/adapters/%.c
$(WLCC) $(CPPFLAGS) -DNPROBE -DDEBUG -o $@ $<
warlock_ddi.files:
@cd ../warlock; pwd; $(MAKE) warlock
s1394.files:
@cd ../s1394; pwd; $(MAKE) warlock