1cc8349502ad1442df2f77452ad813fc41433415Dav Glass#
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass# CDDL HEADER START
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass#
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass# The contents of this file are subject to the terms of the
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass# Common Development and Distribution License (the "License").
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass# You may not use this file except in compliance with the License.
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass#
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass# or http://www.opensolaris.org/os/licensing.
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass# See the License for the specific language governing permissions
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass# and limitations under the License.
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass#
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass# When distributing Covered Code, include this CDDL HEADER in each
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass# If applicable, add the following below this CDDL HEADER, with the
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass# fields enclosed by brackets "[]" replaced with your own identifying
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass# information: Portions Copyright [yyyy] [name of copyright owner]
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass#
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass# CDDL HEADER END
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass#
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass#
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass# uts/intel/hci1394/Makefile
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass#
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass# Use is subject to license terms.
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass#
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass#
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass# This makefile drives the production of the hci1394 OHCI HAL module.
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass#
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass# intel architecture dependent
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass#
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass#
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass# Path to the base of the uts directory tree (usually /usr/src/uts).
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass#
1cc8349502ad1442df2f77452ad813fc41433415Dav GlassUTSBASE = ../..
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass#
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass# Define the module and object file sets.
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass#
1cc8349502ad1442df2f77452ad813fc41433415Dav GlassMODULE = hci1394
1cc8349502ad1442df2f77452ad813fc41433415Dav GlassOBJECTS = $(HCI1394_OBJS:%=$(OBJS_DIR)/%)
1cc8349502ad1442df2f77452ad813fc41433415Dav GlassLINTS = $(HCI1394_OBJS:%.o=$(LINTS_DIR)/%.ln)
1cc8349502ad1442df2f77452ad813fc41433415Dav GlassROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
1cc8349502ad1442df2f77452ad813fc41433415Dav GlassCONF_SRCDIR = $(UTSBASE)/common/io/1394/adapters
1cc8349502ad1442df2f77452ad813fc41433415Dav GlassLDFLAGS += -dy -Nmisc/s1394
1cc8349502ad1442df2f77452ad813fc41433415Dav GlassWARLOCK_OUT = $(HCI1394_OBJS:%.o=%.ll)
1cc8349502ad1442df2f77452ad813fc41433415Dav GlassWARLOCK_OK = $(MODULE).ok
1cc8349502ad1442df2f77452ad813fc41433415Dav GlassWLCMD_DIR = $(UTSBASE)/common/io/warlock
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass#
1cc8349502ad1442df2f77452ad813fc41433415Dav Glass# Include common rules.
#
include $(UTSBASE)/intel/Makefile.intel
#
# Define targets
#
ALL_TARGET = $(BINARY) $(SRC_CONFILE)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
#
# Overrides
#
#ALL_BUILDS = $(ALL_BUILDSONLY64)
#DEF_BUILDS = $(DEF_BUILDSONLY64)
CLEANLINTFILES += $(LINT32_FILES)
DEBUG_DEFS_DBG32 += -DTNF_DEBUG
#DEBUG_DEFS_DBG64 += -DTNF_DEBUG
#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
#
LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
LINTTAGS += -erroff=E_STATIC_UNUSED
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-parentheses
#
# 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