Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User#
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# CDDL HEADER START
7a2a1b8b14fc804ac80612d7b98064095e445be5Automatic Updater#
7a42357217528037bdfedcb17eeebfe96ae4266aAutomatic Updater# The contents of this file are subject to the terms of the
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic Updater# Common Development and Distribution License, Version 1.0 only
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# (the "License"). You may not use this file except in compliance
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater# with the License.
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater#
fe84edc17e0d582cf7b4270f8df9d4742a107b1cAutomatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
79b273c187a4aa1016a62181983dfdd0521681aeMark Andrews# or http://www.opensolaris.org/os/licensing.
3349f0044fda807e1fd6681c833d3593a22dad86Tinderbox User# See the License for the specific language governing permissions
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# and limitations under the License.
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater#
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater# If applicable, add the following below this CDDL HEADER, with the
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater#
3cc98b8ecedcbc8465f1cf2740b966b315662430Automatic Updater# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
a01aa536188bb3535dfc1107a623e6355a8e6b7cMark Andrews# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
89623368b8f662d458d9964b923050f33c5f75b0Tinderbox User# Use is subject to license terms.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#ident "%Z%%M% %I% %E% SMI"
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# This makefile drives the production of the bofi driver
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# kernel module.
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Path to the base of the uts directory tree (usually /usr/src/uts).
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterUTSBASE = ../..
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Define the module and object file sets.
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterMODULE = bofi
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterOBJECTS = $(BOFI_OBJS:%=$(OBJS_DIR)/%)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterLINTS = $(BOFI_OBJS:%.o=$(LINTS_DIR)/%.ln)
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic UpdaterCONF_SRCDIR = $(UTSBASE)/common/io
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updater
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Include common rules.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterinclude $(UTSBASE)/intel/Makefile.intel
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater#
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater# Override defaults.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterFILEMODE = 644
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews# Define targets
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews#
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsALL_TARGET = $(BINARY) $(SRC_CONFILE)
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox UserLINT_TARGET = $(MODULE).lint
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic UpdaterINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater#
8e9f3b69914ee02a80b87c97b1f8093edb3e9ae0Automatic Updater# Override defaults to build a unique, local modstubs.o.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic UpdaterMODSTUBS_DIR = $(OBJS_DIR)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews$(MODSTUBS_O) := AS_CPPFLAGS += -DBOFI_MODULE
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic UpdaterCLEANFILES += $(MODSTUBS_O)
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCPPFLAGS += -I../../sun4
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
114f7780384371121918624ae2c80ecfce545683Tinderbox User# Default build targets.
693c4232dfdffaff672197d4b9fea944c64cf80aAutomatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews.KEEP_STATE:
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssondef: $(DEF_DEPS)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterall: $(ALL_DEPS)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterclean: $(CLEAN_DEPS)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterclobber: $(CLOBBER_DEPS)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonlint: $(LINT_DEPS)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox Usermodlintlib: $(MODLINTLIB_DEPS)
b871c7156eb037d41f53828c6fcb9cc876128962Mark Andrews
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrewsclean.lint: $(CLEAN_LINT_DEPS)
3349f0044fda807e1fd6681c833d3593a22dad86Tinderbox User
3349f0044fda807e1fd6681c833d3593a22dad86Tinderbox Userinstall: $(INSTALL_DEPS)
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
3349f0044fda807e1fd6681c833d3593a22dad86Tinderbox User# Include common targets.
3349f0044fda807e1fd6681c833d3593a22dad86Tinderbox User#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontinclude $(UTSBASE)/intel/Makefile.targ
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews