Makefile revision bf56214c0556fa6864189c826d39dbe156bb22a0
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# CDDL HEADER START
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# The contents of this file are subject to the terms of the
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Common Development and Distribution License (the "License").
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# You may not use this file except in compliance with the License.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# or http://www.opensolaris.org/os/licensing.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# See the License for the specific language governing permissions
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# and limitations under the License.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# When distributing Covered Code, include this CDDL HEADER in each
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# If applicable, add the following below this CDDL HEADER, with the
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# fields enclosed by brackets "[]" replaced with your own identifying
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# information: Portions Copyright [yyyy] [name of copyright owner]
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# CDDL HEADER END
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# Use is subject to license terms.
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# ident "%Z%%M% %I% %E% SMI"
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Path to the base of the uts directory tree.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesUTSBASE = ../..
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Define the module and object file sets.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesMODULE = av1394
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesOBJECTS = $(AV1394_OBJS:%=$(OBJS_DIR)/%)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLINTS = $(AV1394_OBJS:%.o=$(LINTS_DIR)/%.ln)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesWARLOCK_OUT = $(AV1394_OBJS:%.o=%.ll)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesWARLOCK_OK = $(MODULE).ok
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesWLCMD_DIR = $(UTSBASE)/common/io/warlock
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Include common rules.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesinclude $(UTSBASE)/intel/Makefile.intel
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Define targets
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesALL_TARGET = $(BINARY)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLINT_TARGET = $(MODULE).lint
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Overrides
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesDEBUG_DEFS_DBG32 += -DTNF_DEBUG
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# lint pass one enforcement
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCFLAGS += $(CCVERBOSE)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# For now, disable these lint checks; maintainers should endeavor
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# to investigate and remove these for maximum lint coverage.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Please do not carry these forward to new Makefiles.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLINTTAGS += -erroff=E_STATIC_UNUSED
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# depends on misc/s1394
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLDFLAGS += -dy -Nmisc/s1394
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Default build targets.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes.KEEP_STATE:
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesdef: $(DEF_DEPS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesall: $(ALL_DEPS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesclean: $(CLEAN_DEPS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesclobber: $(CLOBBER_DEPS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholeslint: $(LINT_DEPS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesmodlintlib: $(MODLINTLIB_DEPS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesclean.lint: $(CLEAN_LINT_DEPS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesinstall: $(INSTALL_DEPS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
0a39e7683f6611d66c55712f50bb240428d832a1bnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Include common targets.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesinclude $(UTSBASE)/intel/Makefile.targ
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Defines for local commands.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesWARLOCK = warlock
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesWLCC = wlcc
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesTOUCH = touch
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesTEST = test
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Warlock targets
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholeswarlock: $(WARLOCK_OK)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes$(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files $(WLCMD_DIR)/av1394.wlcmd
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(WARLOCK) -c $(WLCMD_DIR)/av1394.wlcmd $(WARLOCK_OUT) \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes -l ../warlock/ddi_dki_impl.ll
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(TOUCH) $@
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes%.ll: $(UTSBASE)/common/io/1394/targets/av1394/%.c
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(WLCC) $(CPPFLAGS) -DNPROBE -DDEBUG -o $@ $<
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholeswarlock_ddi.files:
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes @cd ../warlock; pwd; $(MAKE) warlock
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes