Makefile revision 30167f6bf91aceed4d5132f297f652e9713513e7
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# CDDL HEADER START
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# The contents of this file are subject to the terms of the
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Common Development and Distribution License (the "License").
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# You may not use this file except in compliance with the License.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# or http://www.opensolaris.org/os/licensing.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# See the License for the specific language governing permissions
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# and limitations under the License.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# When distributing Covered Code, include this CDDL HEADER in each
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# If applicable, add the following below this CDDL HEADER, with the
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# fields enclosed by brackets "[]" replaced with your own identifying
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# information: Portions Copyright [yyyy] [name of copyright owner]
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# CDDL HEADER END
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# uts/sparc/smbfs/Makefile
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Use is subject to license terms.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#ident "%Z%%M% %I% %E% SMI"
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# This makefile drives the production of the smbfs (Server
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# message block file system) kernel module.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# sparc architecture dependent
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Path to the base of the uts directory tree (usually /usr/src/uts).
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlowUTSBASE = ../..
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Define the module and object file sets.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlowMODULE = smbfs
4bff34e37def8a90f9194d81bc345c52ba20086athurlowOBJECTS = $(SMBFS_OBJS:%=$(OBJS_DIR)/%)
4bff34e37def8a90f9194d81bc345c52ba20086athurlowLINTS = $(SMBFS_OBJS:%.o=$(LINTS_DIR)/%.ln)
4bff34e37def8a90f9194d81bc345c52ba20086athurlowROOTMODULE = $(USR_FS_DIR)/$(MODULE)
4bff34e37def8a90f9194d81bc345c52ba20086athurlowROOTLINK = $(USR_SYS_DIR)/$(MODULE)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Include common rules.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlowinclude $(UTSBASE)/sparc/Makefile.sparc
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Define targets
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlowALL_TARGET = $(BINARY)
4bff34e37def8a90f9194d81bc345c52ba20086athurlowLINT_TARGET = $(MODULE).lint
4bff34e37def8a90f9194d81bc345c52ba20086athurlowINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Overrides.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlowMODSTUBS_DIR = $(OBJS_DIR)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow$(MODSTUBS_O) := AS_CPPFLAGS += -DSMBFS_MODULE
4bff34e37def8a90f9194d81bc345c52ba20086athurlowCLEANFILES += $(MODSTUBS_O)
4bff34e37def8a90f9194d81bc345c52ba20086athurlowC99MODE = $(C99_ENABLE)
4bff34e37def8a90f9194d81bc345c52ba20086athurlowINC_PATH += -I$(UTSBASE)/common/fs/smbclnt
4bff34e37def8a90f9194d81bc345c52ba20086athurlowLDFLAGS += -dy -Ndrv/nsmb
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
30167f6bf91aceed4d5132f297f652e9713513e7gwr#
30167f6bf91aceed4d5132f297f652e9713513e7gwr# Default build targets.
30167f6bf91aceed4d5132f297f652e9713513e7gwr#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow.KEEP_STATE:
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
30167f6bf91aceed4d5132f297f652e9713513e7gwrdef: $(DEF_DEPS)
30167f6bf91aceed4d5132f297f652e9713513e7gwr
4bff34e37def8a90f9194d81bc345c52ba20086athurlowall: $(ALL_DEPS)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowclean: $(CLEAN_DEPS)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowclobber: $(CLOBBER_DEPS)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowlint: $(LINT_DEPS)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowmodlintlib: $(MODLINTLIB_DEPS)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowclean.lint: $(CLEAN_LINT_DEPS)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowinstall: $(INSTALL_DEPS)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow$(ROOTLINK): $(USR_SYS_DIR) $(ROOTMODULE)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow -$(RM) $@; ln $(ROOTMODULE) $@
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Include common targets.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlowinclude $(UTSBASE)/sparc/Makefile.targ