Makefile revision ff0e937b36dcde1a47ff7b00aa76a491c0dc07a8
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER START
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License (the "License").
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# You may not use this file except in compliance with the License.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews# or http://www.opensolaris.org/os/licensing.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# See the License for the specific language governing permissions
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# and limitations under the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# If applicable, add the following below this CDDL HEADER, with the
0c6ada0a814f3c5417daa1654129bc2af56ed504Automatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER END
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# uts/intel/uwba/Makefile
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Use is subject to license terms.
0c6ada0a814f3c5417daa1654129bc2af56ed504Automatic Updater#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# This makefile drives the production of the uwba kernel module.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Path to the base of the uts directory tree (usually /usr/src/uts).
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserUTSBASE = ../..
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Define the module and object file sets.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE = uwba
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserOBJECTS = $(UWBA_OBJS:%=$(OBJS_DIR)/%)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsLINTS = $(UWBA_OBJS:%.o=$(LINTS_DIR)/%.ln)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserWARLOCK_OUT = $(UWBA_OBJS:%.o=%.ll)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserWARLOCK_OK = $(MODULE).ok
7e71f05d8643aca84914437c900cb716444507e4Tinderbox UserWLCMD_DIR = $(UTSBASE)/common/io/warlock
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Include common rules.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntinclude $(UTSBASE)/intel/Makefile.intel
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Define targets
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserALL_TARGET = $(BINARY)
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox UserLINT_TARGET = $(MODULE).lint
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox UserINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User# For now, disable these lint checks; maintainers should endeavor
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User# to investigate and remove these for maximum lint coverage.
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User# Please do not carry these forward to new Makefiles.
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsLINTTAGS += -erroff=E_STATIC_UNUSED
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Default build targets.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews.KEEP_STATE:
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userdef: $(DEF_DEPS)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
7e71f05d8643aca84914437c900cb716444507e4Tinderbox Userall: $(ALL_DEPS)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsclean: $(CLEAN_DEPS)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox User
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox Userclobber: $(CLOBBER_DEPS)
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox User $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userlint: $(LINT_DEPS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Usermodlintlib: $(MODLINTLIB_DEPS)
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox User
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox Userclean.lint: $(CLEAN_LINT_DEPS)
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userinstall: $(INSTALL_DEPS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox User# Include common targets.
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox User#
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox Userinclude $(UTSBASE)/intel/Makefile.targ
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox User
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox User#
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox User# Defines for local commands.
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserWLCC = wlcc
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsTOUCH = touch
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserWARLOCK = warlock
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox User
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox User#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Warlock targets
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox User#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntwarlock: $(WARLOCK_OK)
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User$(WARLOCK_OK): $(WARLOCK_OUT)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(WARLOCK) -c $(WLCMD_DIR)/uwba.wlcmd $(WARLOCK_OUT) \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User -l ../warlock/ddi_dki_impl.ll
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox User $(TOUCH) $@
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox User
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox User%.ll: $(UTSBASE)/common/io/uwb/uwba/%.c \
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox User $(UTSBASE)/common/sys/uwb/uwba/uwba.h \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User $(UTSBASE)/common/sys/uwb/uwbai.h
d3ddafd7469d1f3430ccd1b0fe0d13ccbbaf5debTinderbox User $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User