Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan Hunt#
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User# CDDL HEADER START
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater#
4f91bcae4368308b0bfd13769a059de222a3769dAutomatic Updater# The contents of this file are subject to the terms of the
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan Hunt# Common Development and Distribution License (the "License").
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan Hunt# You may not use this file except in compliance with the License.
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater#
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan Hunt# or http://www.opensolaris.org/os/licensing.
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater# See the License for the specific language governing permissions
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan Hunt# and limitations under the License.
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan Hunt#
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan Hunt#
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan Hunt# CDDL HEADER END
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan Hunt#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# uts/sparc/procfs/Makefile
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan Hunt# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Use is subject to license terms.
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan Hunt#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#ident "%Z%%M% %I% %E% SMI"
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan Hunt#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# This makefile drives the production of the procfs file system
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan Hunt# kernel module.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# sparc architecture dependent
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# Path to the base of the uts directory tree (usually /usr/src/uts).
e1263b4b9c16f5ecd7640be046b1e1a5c592c1e0Automatic Updater#
e1263b4b9c16f5ecd7640be046b1e1a5c592c1e0Automatic UpdaterUTSBASE = ../..
e1263b4b9c16f5ecd7640be046b1e1a5c592c1e0Automatic Updater
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan Hunt#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Define the module and object file sets.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserMODULE = procfs
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserOBJECTS = $(PROC_OBJS:%=$(OBJS_DIR)/%)
e1263b4b9c16f5ecd7640be046b1e1a5c592c1e0Automatic UpdaterLINTS = $(PROC_OBJS:%.o=$(LINTS_DIR)/%.ln)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserROOTMODULE = $(ROOT_FS_DIR)/$(MODULE)
e1263b4b9c16f5ecd7640be046b1e1a5c592c1e0Automatic Updater
e1263b4b9c16f5ecd7640be046b1e1a5c592c1e0Automatic Updater#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Include common rules.
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan Hunt#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userinclude $(UTSBASE)/sparc/Makefile.sparc
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan Hunt
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
cb3c295308f7a3acfc748e60231ca05183e4393cAutomatic Updater# Define targets
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan HuntALL_TARGET = $(BINARY)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserLINT_TARGET = $(MODULE).lint
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan HuntINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Overrides.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserMODSTUBS_DIR = $(OBJS_DIR)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User$(MODSTUBS_O) := AS_CPPFLAGS += -DPROC_MODULE
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan HuntCLEANFILES += $(MODSTUBS_O)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCFLAGS += $(CCVERBOSE)
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan Hunt
ca42dcc0686fefd3db202edab80e5adb09d6add5Evan Hunt#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/sparc/Makefile.targ