Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# CDDL HEADER START
a02a0a8a7eb461619931f4a0e896afa247b52c54Mark Andrews#
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# The contents of this file are subject to the terms of the
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# Common Development and Distribution License (the "License").
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# You may not use this file except in compliance with the License.
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# or http://www.opensolaris.org/os/licensing.
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# See the License for the specific language governing permissions
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# and limitations under the License.
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews#
0756445a735e2df39bf798d8de42ae5dd030aa3bMark Andrews# When distributing Covered Code, include this CDDL HEADER in each
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# If applicable, add the following below this CDDL HEADER, with the
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews#
a02a0a8a7eb461619931f4a0e896afa247b52c54Mark Andrews# CDDL HEADER END
0756445a735e2df39bf798d8de42ae5dd030aa3bMark Andrews#
0756445a735e2df39bf798d8de42ae5dd030aa3bMark Andrews#
a02a0a8a7eb461619931f4a0e896afa247b52c54Mark Andrews# uts/intel/specfs/Makefile
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# Use is subject to license terms.
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# This makefile drives the production of the specfs file system
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# kernel module.
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews#
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# intel architecture dependent
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews#
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews#
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# Path to the base of the uts directory tree (usually /usr/src/uts).
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews#
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsUTSBASE = ../..
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews#
a0624cf8d5711cca4e3907859fbc8062a7e460faMark Andrews# Define the module and object file sets.
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews#
a0624cf8d5711cca4e3907859fbc8062a7e460faMark AndrewsMODULE = specfs
a0624cf8d5711cca4e3907859fbc8062a7e460faMark AndrewsOBJECTS = $(SPEC_OBJS:%=$(OBJS_DIR)/%)
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsLINTS = $(SPEC_OBJS:%.o=$(LINTS_DIR)/%.ln)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonROOTMODULE = $(ROOT_FS_DIR)/$(MODULE)
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Include common rules.
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews#
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrewsinclude $(UTSBASE)/intel/Makefile.intel
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Define targets
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews#
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsALL_TARGET = $(BINARY)
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsLINT_TARGET = $(MODULE).lint
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews#
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# Override defaults to build a unique, local modstubs.o.
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews#
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsMODSTUBS_DIR = $(OBJS_DIR)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews$(MODSTUBS_O) := AS_CPPFLAGS += -DSPEC_MODULE
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsCLEANFILES += $(MODSTUBS_O)
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsLDFLAGS += -dy -Nfs/fifofs
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews#
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# For now, disable these lint checks; maintainers should endeavor
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# to investigate and remove these for maximum lint coverage.
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# Please do not carry these forward to new Makefiles.
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews#
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCERRWARN += -_gcc=-Wno-parentheses
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCERRWARN += -_gcc=-Wno-uninitialized
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Default build targets.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson.KEEP_STATE:
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssondef: $(DEF_DEPS)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonall: $(ALL_DEPS)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonclean: $(CLEAN_DEPS)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
c25080dc50542213058c240226c9f342186e6285Mark Andrewsclobber: $(CLOBBER_DEPS)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews
068a66979695c77359e7a9181bb3f831c965b21cMark Andrewslint: $(LINT_DEPS)
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews
0756445a735e2df39bf798d8de42ae5dd030aa3bMark Andrewsmodlintlib: $(MODLINTLIB_DEPS)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews
c25080dc50542213058c240226c9f342186e6285Mark Andrewsclean.lint: $(CLEAN_LINT_DEPS)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews
068a66979695c77359e7a9181bb3f831c965b21cMark Andrewsinstall: $(INSTALL_DEPS)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews#
c25080dc50542213058c240226c9f342186e6285Mark Andrews# Include common targets.
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews#
068a66979695c77359e7a9181bb3f831c965b21cMark Andrewsinclude $(UTSBASE)/intel/Makefile.targ
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews