Makefile revision 0a0e9771ca0211c15f3ac4466b661c145feeb9e4
4d237bbe075b1d2c19428cd954d721d65b31f67cwrowe#
ec79b29695b183f794264bbb578c51e93d1f9b1emartin# CDDL HEADER START
1a5f954324f2584984fc9cee7a7a8ebe8ef39aeajim#
b39ba1ea90cd1940dcd9e8d0f18c1ff02c187ac1jim# The contents of this file are subject to the terms of the
723f9f463f1922eaef3d24d00cb289e10daa73ffminfrin# Common Development and Distribution License (the "License").
723f9f463f1922eaef3d24d00cb289e10daa73ffminfrin# You may not use this file except in compliance with the License.
723f9f463f1922eaef3d24d00cb289e10daa73ffminfrin#
723f9f463f1922eaef3d24d00cb289e10daa73ffminfrin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c2213b3a46a2666e2e7606ceec509cc4978f187fminfrin# or http://www.opensolaris.org/os/licensing.
c2213b3a46a2666e2e7606ceec509cc4978f187fminfrin# See the License for the specific language governing permissions
c2213b3a46a2666e2e7606ceec509cc4978f187fminfrin# and limitations under the License.
c2213b3a46a2666e2e7606ceec509cc4978f187fminfrin#
d4562e99f620170ce0bedddc16887b900b34913bminfrin# When distributing Covered Code, include this CDDL HEADER in each
d4562e99f620170ce0bedddc16887b900b34913bminfrin# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d4562e99f620170ce0bedddc16887b900b34913bminfrin# If applicable, add the following below this CDDL HEADER, with the
fd279fe992f7171dc3f6d4d40d6db5bb74f2d96eminfrin# fields enclosed by brackets "[]" replaced with your own identifying
fd279fe992f7171dc3f6d4d40d6db5bb74f2d96eminfrin# information: Portions Copyright [yyyy] [name of copyright owner]
fd279fe992f7171dc3f6d4d40d6db5bb74f2d96eminfrin#
fd279fe992f7171dc3f6d4d40d6db5bb74f2d96eminfrin# CDDL HEADER END
fed63d1b62cc7e56aad77b70ee5b5cc7f5c6aademinfrin#
fed63d1b62cc7e56aad77b70ee5b5cc7f5c6aademinfrin# uts/intel/dev/Makefile
fed63d1b62cc7e56aad77b70ee5b5cc7f5c6aademinfrin#
fed63d1b62cc7e56aad77b70ee5b5cc7f5c6aademinfrin# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
fed63d1b62cc7e56aad77b70ee5b5cc7f5c6aademinfrin# Use is subject to license terms.
abe0d0e38b9705f21a13ac8748bce1e3ed35e488minfrin#
abe0d0e38b9705f21a13ac8748bce1e3ed35e488minfrin# This makefile drives the production of the dev file system
abe0d0e38b9705f21a13ac8748bce1e3ed35e488minfrin# kernel module.
abe0d0e38b9705f21a13ac8748bce1e3ed35e488minfrin#
abe0d0e38b9705f21a13ac8748bce1e3ed35e488minfrin# intel architecture dependent
fb8ee8b7a3a2503b95bf47685f9083e0b9834e6fminfrin#
fb8ee8b7a3a2503b95bf47685f9083e0b9834e6fminfrin
fb8ee8b7a3a2503b95bf47685f9083e0b9834e6fminfrin#
fb8ee8b7a3a2503b95bf47685f9083e0b9834e6fminfrin# Path to the base of the uts directory tree (usually /usr/src/uts).
a72211e92bab814bfa28ee086ca9b2a1a6095c92chrisd#
a72211e92bab814bfa28ee086ca9b2a1a6095c92chrisdUTSBASE = ../..
a72211e92bab814bfa28ee086ca9b2a1a6095c92chrisd
a72211e92bab814bfa28ee086ca9b2a1a6095c92chrisd#
a72211e92bab814bfa28ee086ca9b2a1a6095c92chrisd# Define the module and object file sets.
a72211e92bab814bfa28ee086ca9b2a1a6095c92chrisd#
a72211e92bab814bfa28ee086ca9b2a1a6095c92chrisdMODULE = dev
a72211e92bab814bfa28ee086ca9b2a1a6095c92chrisdOBJECTS = $(DEV_OBJS:%=$(OBJS_DIR)/%)
5c5e7695fc1e44bebba6b339494a2df4e69b86fcjimLINTS = $(DEV_OBJS:%.o=$(LINTS_DIR)/%.ln)
5c5e7695fc1e44bebba6b339494a2df4e69b86fcjimROOTMODULE = $(ROOT_FS_DIR)/$(MODULE)
5c5e7695fc1e44bebba6b339494a2df4e69b86fcjim
4228aba3de67f3d9cce68f7a915d5435faa43adarpluem#
4228aba3de67f3d9cce68f7a915d5435faa43adarpluem# Include common rules.
4228aba3de67f3d9cce68f7a915d5435faa43adarpluem#
78a20a6e7ad3a0229900ee54c7d11a65f647b663niqinclude $(UTSBASE)/intel/Makefile.intel
9582ad6e149d28b118d4e8571101ecb6f85e0191niq
9582ad6e149d28b118d4e8571101ecb6f85e0191niq#
9582ad6e149d28b118d4e8571101ecb6f85e0191niq# Define targets
78a20a6e7ad3a0229900ee54c7d11a65f647b663niq#
d56bacbfefa5aa883ce5162a115747372fc38d13chrisdALL_TARGET = $(BINARY)
d56bacbfefa5aa883ce5162a115747372fc38d13chrisdLINT_TARGET = $(MODULE).lint
d56bacbfefa5aa883ce5162a115747372fc38d13chrisdINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
d56bacbfefa5aa883ce5162a115747372fc38d13chrisd
d56bacbfefa5aa883ce5162a115747372fc38d13chrisd#
e1a26e8050bf62459a7ef1c5064b714811767417rpluem# Override defaults to build a unique, local modstubs.o.
e1a26e8050bf62459a7ef1c5064b714811767417rpluem#
e1a26e8050bf62459a7ef1c5064b714811767417rpluemMODSTUBS_DIR = $(OBJS_DIR)
fcee7ee83b1e48f2655c79f176d1ea7627e19937chrisdCFLAGS += $(CCVERBOSE)
fcee7ee83b1e48f2655c79f176d1ea7627e19937chrisdLDFLAGS += -dy -Nfs/devfs -Nmisc/dls
fcee7ee83b1e48f2655c79f176d1ea7627e19937chrisdINC_PATH += -I$(UTSBASE)/common/fs/zfs
fcee7ee83b1e48f2655c79f176d1ea7627e19937chrisdINC_PATH += -I$(UTSBASE)/common/io/bpf
53feccc94b923e12db1df6f7069676590097ba2frpluem
53feccc94b923e12db1df6f7069676590097ba2frpluem#
53feccc94b923e12db1df6f7069676590097ba2frpluem# Default build targets.
b39ba1ea90cd1940dcd9e8d0f18c1ff02c187ac1jim#
b39ba1ea90cd1940dcd9e8d0f18c1ff02c187ac1jim.KEEP_STATE:
b39ba1ea90cd1940dcd9e8d0f18c1ff02c187ac1jim
b39ba1ea90cd1940dcd9e8d0f18c1ff02c187ac1jimdef: $(DEF_DEPS)
d64dd2fd4516c2b1b664c5e59c0628d9aff26984covener
d64dd2fd4516c2b1b664c5e59c0628d9aff26984covenerall: $(ALL_DEPS)
d64dd2fd4516c2b1b664c5e59c0628d9aff26984covener
ed0d39878e79220baaa50c15b79b1fdf877cb919niqclean: $(CLEAN_DEPS)
1e911973bcb9df6701a4c16c037771ecf25ade13niq
1e911973bcb9df6701a4c16c037771ecf25ade13niqclobber: $(CLOBBER_DEPS)
1e911973bcb9df6701a4c16c037771ecf25ade13niq
1e911973bcb9df6701a4c16c037771ecf25ade13niqlint: $(LINT_DEPS)
1e911973bcb9df6701a4c16c037771ecf25ade13niq
1e911973bcb9df6701a4c16c037771ecf25ade13niqmodlintlib: $(MODLINTLIB_DEPS)
a55905a382027bdcc3a29248db4176527d36aa9ajim
a55905a382027bdcc3a29248db4176527d36aa9ajimclean.lint: $(CLEAN_LINT_DEPS)
a55905a382027bdcc3a29248db4176527d36aa9ajim
a55905a382027bdcc3a29248db4176527d36aa9ajiminstall: $(INSTALL_DEPS)
5fbd1e97905738791e7359ccbc9b02e913948d2erpluem
5fbd1e97905738791e7359ccbc9b02e913948d2erpluem#
5fbd1e97905738791e7359ccbc9b02e913948d2erpluem# Include common targets.
5fbd1e97905738791e7359ccbc9b02e913948d2erpluem#
ca33b922ae8ad1b24a8235b656b0ac6f82915355jiminclude $(UTSBASE)/intel/Makefile.targ
e74519466f1905e7a1b3d34396fbb82717153c90jim