Makefile revision 0a0e9771ca0211c15f3ac4466b661c145feeb9e4
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox User# CDDL HEADER START
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# The contents of this file are subject to the terms of the
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Common Development and Distribution License (the "License").
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# You may not use this file except in compliance with the License.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# or http://www.opensolaris.org/os/licensing.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# See the License for the specific language governing permissions
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# and limitations under the License.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# When distributing Covered Code, include this CDDL HEADER in each
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# If applicable, add the following below this CDDL HEADER, with the
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# fields enclosed by brackets "[]" replaced with your own identifying
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# CDDL HEADER END
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# uts/intel/dev/Makefile
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Use is subject to license terms.
922312472e2e05ebc64993d465999c5351b83036Automatic Updater#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# This makefile drives the production of the dev file system
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# kernel module.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# intel architecture dependent
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Path to the base of the uts directory tree (usually /usr/src/uts).
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews#
2a31bd531072824ef252c18303859d6af7451b00Francis DupontUTSBASE = ../..
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Define the module and object file sets.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis DupontMODULE = dev
2a31bd531072824ef252c18303859d6af7451b00Francis DupontOBJECTS = $(DEV_OBJS:%=$(OBJS_DIR)/%)
2a31bd531072824ef252c18303859d6af7451b00Francis DupontLINTS = $(DEV_OBJS:%.o=$(LINTS_DIR)/%.ln)
2a31bd531072824ef252c18303859d6af7451b00Francis DupontROOTMODULE = $(ROOT_FS_DIR)/$(MODULE)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Include common rules.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontinclude $(UTSBASE)/intel/Makefile.intel
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
a3f8c8e20780e488141d200acdfea6c5f3303513Automatic Updater#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Define targets
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox UserALL_TARGET = $(BINARY)
2a31bd531072824ef252c18303859d6af7451b00Francis DupontLINT_TARGET = $(MODULE).lint
2a31bd531072824ef252c18303859d6af7451b00Francis DupontINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
28b3569d6248168e6c00caab951521cc8141a49dAutomatic Updater#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Override defaults to build a unique, local modstubs.o.
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater#
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic UpdaterMODSTUBS_DIR = $(OBJS_DIR)
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic UpdaterCFLAGS += $(CCVERBOSE)
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic UpdaterLDFLAGS += -dy -Nfs/devfs -Nmisc/dls
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic UpdaterINC_PATH += -I$(UTSBASE)/common/fs/zfs
2a31bd531072824ef252c18303859d6af7451b00Francis DupontINC_PATH += -I$(UTSBASE)/common/io/bpf
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Default build targets.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont.KEEP_STATE:
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
28b3569d6248168e6c00caab951521cc8141a49dAutomatic Updaterdef: $(DEF_DEPS)
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updater
cd791043c8a6edbcacc2392575a9816d19b8157cTinderbox Userall: $(ALL_DEPS)
cd791043c8a6edbcacc2392575a9816d19b8157cTinderbox User
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic Updaterclean: $(CLEAN_DEPS)
28b3569d6248168e6c00caab951521cc8141a49dAutomatic Updater
2a6d4c9948b3f4f31311bd799d114585a30419a9Automatic Updaterclobber: $(CLOBBER_DEPS)
2a6d4c9948b3f4f31311bd799d114585a30419a9Automatic Updater
2a6d4c9948b3f4f31311bd799d114585a30419a9Automatic Updaterlint: $(LINT_DEPS)
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updater
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updatermodlintlib: $(MODLINTLIB_DEPS)
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updater
2a6d4c9948b3f4f31311bd799d114585a30419a9Automatic Updaterclean.lint: $(CLEAN_LINT_DEPS)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontinstall: $(INSTALL_DEPS)
28b3569d6248168e6c00caab951521cc8141a49dAutomatic Updater
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Include common targets.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontinclude $(UTSBASE)/intel/Makefile.targ
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont