Makefile revision e7cbe64f7a72dae5cb44f100db60ca88f3313c65
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen#
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# CDDL HEADER START
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen#
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# The contents of this file are subject to the terms of the
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# Common Development and Distribution License (the "License").
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# You may not use this file except in compliance with the License.
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen#
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# or http://www.opensolaris.org/os/licensing.
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# See the License for the specific language governing permissions
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# and limitations under the License.
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen#
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# If applicable, add the following below this CDDL HEADER, with the
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen#
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# CDDL HEADER END
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen#
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen#
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# uts/sparc/specfs/Makefile
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# Use is subject to license terms.
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen#
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen#ident "%Z%%M% %I% %E% SMI"
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen#
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# This makefile drives the production of the specfs file system
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# kernel module.
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen#
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# sparc implementation architecture dependent
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen#
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen#
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# Path to the base of the uts directory tree (usually /usr/src/uts).
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen#
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo SirainenUTSBASE = ../..
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen#
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# Define the module and object file sets.
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen#
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo SirainenMODULE = specfs
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo SirainenOBJECTS = $(SPEC_OBJS:%=$(OBJS_DIR)/%)
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo SirainenLINTS = $(SPEC_OBJS:%.o=$(LINTS_DIR)/%.ln)
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo SirainenROOTMODULE = $(ROOT_FS_DIR)/$(MODULE)
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen#
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# Include common rules.
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen#
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Siraineninclude $(UTSBASE)/sparc/Makefile.sparc
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen#
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# Define targets
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen#
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo SirainenALL_TARGET = $(BINARY)
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo SirainenLINT_TARGET = $(MODULE).lint
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo SirainenINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen#
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# Overrides.
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen#
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo SirainenMODSTUBS_DIR = $(OBJS_DIR)
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen$(MODSTUBS_O) := AS_CPPFLAGS += -DSPEC_MODULE
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo SirainenCLEANFILES += $(MODSTUBS_O)
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo SirainenCFLAGS += $(CCVERBOSE)
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo SirainenLDFLAGS += -dy -Nfs/fifofs
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen#
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# Default build targets.
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen#
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen.KEEP_STATE:
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainendef: $(DEF_DEPS)
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainenall: $(ALL_DEPS)
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainenclean: $(CLEAN_DEPS)
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen
f8ead0942a9b7c8fcf91414ed1b534d5807ca555Timo Sirainenclobber: $(CLOBBER_DEPS)
f8ead0942a9b7c8fcf91414ed1b534d5807ca555Timo Sirainen
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainenlint: $(LINT_DEPS)
f8ead0942a9b7c8fcf91414ed1b534d5807ca555Timo Sirainen
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainenmodlintlib: $(MODLINTLIB_DEPS)
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainenclean.lint: $(CLEAN_LINT_DEPS)
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Siraineninstall: $(INSTALL_DEPS)
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen#
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen# Include common targets.
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen#
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Siraineninclude $(UTSBASE)/sparc/Makefile.targ
28c75d59f1d1a7caeb85635964f3881c0038eb23Timo Sirainen