Makefile revision 89b43686db1fe9681d80a7cf5662730cb9378cae
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# CDDL HEADER START
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# The contents of this file are subject to the terms of the
f808c858fa61e7769218966759510a8b1190dfcfraf# Common Development and Distribution License, Version 1.0 only
f808c858fa61e7769218966759510a8b1190dfcfraf# (the "License"). You may not use this file except in compliance
f808c858fa61e7769218966759510a8b1190dfcfraf# with the License.
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f808c858fa61e7769218966759510a8b1190dfcfraf# or http://www.opensolaris.org/os/licensing.
f808c858fa61e7769218966759510a8b1190dfcfraf# See the License for the specific language governing permissions
f808c858fa61e7769218966759510a8b1190dfcfraf# and limitations under the License.
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# When distributing Covered Code, include this CDDL HEADER in each
f808c858fa61e7769218966759510a8b1190dfcfraf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f808c858fa61e7769218966759510a8b1190dfcfraf# If applicable, add the following below this CDDL HEADER, with the
f808c858fa61e7769218966759510a8b1190dfcfraf# fields enclosed by brackets "[]" replaced with your own identifying
f808c858fa61e7769218966759510a8b1190dfcfraf# information: Portions Copyright [yyyy] [name of copyright owner]
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# CDDL HEADER END
f808c858fa61e7769218966759510a8b1190dfcfraf#
cd3e933325e68e23516a196a8fea7f49b1e497c3Ali Bahrami#
f808c858fa61e7769218966759510a8b1190dfcfraf# uts/sparc/pipe/Makefile
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# Use is subject to license terms.
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami#
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# This makefile drives the production of the pipe system call module.
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami#
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# sparc architecture dependent
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami#
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami#
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# Path to the base of the uts directory tree (usually /usr/src/uts).
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami#
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali BahramiUTSBASE = ../..
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf#
cd3e933325e68e23516a196a8fea7f49b1e497c3Ali Bahrami# Define the module and object file sets.
cd3e933325e68e23516a196a8fea7f49b1e497c3Ali Bahrami#
cd3e933325e68e23516a196a8fea7f49b1e497c3Ali BahramiMODULE = pipe
3ed623140e27064f81020d9d47f9fb17489d1190Ali BahramiOBJECTS = $(PIPE_OBJS:%=$(OBJS_DIR)/%)
3ed623140e27064f81020d9d47f9fb17489d1190Ali BahramiLINTS = $(PIPE_OBJS:%.o=$(LINTS_DIR)/%.ln)
3ed623140e27064f81020d9d47f9fb17489d1190Ali BahramiROOTMODULE = $(ROOT_SYS_DIR)/$(MODULE)
3ed623140e27064f81020d9d47f9fb17489d1190Ali Bahrami
3ed623140e27064f81020d9d47f9fb17489d1190Ali Bahrami#
3ed623140e27064f81020d9d47f9fb17489d1190Ali Bahrami# Include common rules.
3ed623140e27064f81020d9d47f9fb17489d1190Ali Bahrami#
3ed623140e27064f81020d9d47f9fb17489d1190Ali Bahramiinclude $(UTSBASE)/sparc/Makefile.sparc
3ed623140e27064f81020d9d47f9fb17489d1190Ali Bahrami
3ed623140e27064f81020d9d47f9fb17489d1190Ali Bahrami#
3ed623140e27064f81020d9d47f9fb17489d1190Ali Bahrami# Define targets
3ed623140e27064f81020d9d47f9fb17489d1190Ali Bahrami#
3ed623140e27064f81020d9d47f9fb17489d1190Ali BahramiALL_TARGET = $(BINARY)
3ed623140e27064f81020d9d47f9fb17489d1190Ali BahramiLINT_TARGET = $(MODULE).lint
3ed623140e27064f81020d9d47f9fb17489d1190Ali BahramiINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
3ed623140e27064f81020d9d47f9fb17489d1190Ali Bahrami
3ed623140e27064f81020d9d47f9fb17489d1190Ali Bahrami#
3ed623140e27064f81020d9d47f9fb17489d1190Ali Bahrami# Override defaults to build a unique, local modstubs.o.
3ed623140e27064f81020d9d47f9fb17489d1190Ali Bahrami#
3ed623140e27064f81020d9d47f9fb17489d1190Ali BahramiMODSTUBS_DIR = $(OBJS_DIR)
3ed623140e27064f81020d9d47f9fb17489d1190Ali Bahrami$(MODSTUBS_O) := AS_CPPFLAGS += -DPIPE_MODULE
3ed623140e27064f81020d9d47f9fb17489d1190Ali BahramiCLEANFILES += $(MODSTUBS_O)
3ed623140e27064f81020d9d47f9fb17489d1190Ali Bahrami
cd3e933325e68e23516a196a8fea7f49b1e497c3Ali Bahrami#
f808c858fa61e7769218966759510a8b1190dfcfraf# lint pass one enforcement
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfrafCFLAGS += $(CCVERBOSE)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# Define dependency on fifofs
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfrafLDFLAGS += -dy -N fs/fifofs
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# Default build targets.
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf.KEEP_STATE:
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafdef: $(DEF_DEPS)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafall: $(ALL_DEPS)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafclean: $(CLEAN_DEPS)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafclobber: $(CLOBBER_DEPS)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraflint: $(LINT_DEPS)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafmodlintlib: $(MODLINTLIB_DEPS)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafclean.lint: $(CLEAN_LINT_DEPS)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafinstall: $(INSTALL_DEPS)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# Include common targets.
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfrafinclude $(UTSBASE)/sparc/Makefile.targ
f808c858fa61e7769218966759510a8b1190dfcfraf