1facf4a8dSllai1# 2facf4a8dSllai1# CDDL HEADER START 3facf4a8dSllai1# 4facf4a8dSllai1# The contents of this file are subject to the terms of the 5facf4a8dSllai1# Common Development and Distribution License (the "License"). 6facf4a8dSllai1# You may not use this file except in compliance with the License. 7facf4a8dSllai1# 8facf4a8dSllai1# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9facf4a8dSllai1# or http://www.opensolaris.org/os/licensing. 10facf4a8dSllai1# See the License for the specific language governing permissions 11facf4a8dSllai1# and limitations under the License. 12facf4a8dSllai1# 13facf4a8dSllai1# When distributing Covered Code, include this CDDL HEADER in each 14facf4a8dSllai1# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15facf4a8dSllai1# If applicable, add the following below this CDDL HEADER, with the 16facf4a8dSllai1# fields enclosed by brackets "[]" replaced with your own identifying 17facf4a8dSllai1# information: Portions Copyright [yyyy] [name of copyright owner] 18facf4a8dSllai1# 19facf4a8dSllai1# CDDL HEADER END 20facf4a8dSllai1# 21*d62bc4baSyz147064# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 22facf4a8dSllai1# Use is subject to license terms. 23facf4a8dSllai1# 24facf4a8dSllai1#ident "%Z%%M% %I% %E% SMI" 25facf4a8dSllai1# 26facf4a8dSllai1# uts/sparc/dev/Makefile 27facf4a8dSllai1# This makefile drives the production of the /dev file system 28facf4a8dSllai1# kernel module. 29facf4a8dSllai1# 30facf4a8dSllai1# sparc implementation architecture dependent 31facf4a8dSllai1# 32facf4a8dSllai1 33facf4a8dSllai1# 34facf4a8dSllai1# Path to the base of the uts directory tree (usually /usr/src/uts). 35facf4a8dSllai1# 36facf4a8dSllai1UTSBASE = ../.. 37facf4a8dSllai1 38facf4a8dSllai1# 39facf4a8dSllai1# Define the module and object file sets. 40facf4a8dSllai1# 41facf4a8dSllai1MODULE = dev 42facf4a8dSllai1OBJECTS = $(DEV_OBJS:%=$(OBJS_DIR)/%) 43facf4a8dSllai1LINTS = $(DEV_OBJS:%.o=$(LINTS_DIR)/%.ln) 44facf4a8dSllai1ROOTMODULE = $(ROOT_FS_DIR)/$(MODULE) 45facf4a8dSllai1 46facf4a8dSllai1# 47facf4a8dSllai1# Include common rules. 48facf4a8dSllai1# 49facf4a8dSllai1include $(UTSBASE)/sparc/Makefile.sparc 50facf4a8dSllai1 51facf4a8dSllai1# 52facf4a8dSllai1# Define targets 53facf4a8dSllai1# 54facf4a8dSllai1ALL_TARGET = $(BINARY) 55facf4a8dSllai1LINT_TARGET = $(MODULE).lint 56facf4a8dSllai1INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 57facf4a8dSllai1 58facf4a8dSllai1# 59facf4a8dSllai1# Overrides. 60facf4a8dSllai1# 61facf4a8dSllai1MODSTUBS_DIR = $(OBJS_DIR) 62facf4a8dSllai1# $(MODSTUBS_O) := AS_CPPFLAGS += -DDEVFS_MODULE 63facf4a8dSllai1# CLEANFILES += $(MODSTUBS_O) 64bb25c06cSjgCFLAGS += $(CCVERBOSE) 65*d62bc4baSyz147064LDFLAGS += -dy -Nfs/devfs -Nmisc/dls 66facf4a8dSllai1 67facf4a8dSllai1# 68facf4a8dSllai1# Default build targets. 69facf4a8dSllai1# 70facf4a8dSllai1.KEEP_STATE: 71facf4a8dSllai1 72facf4a8dSllai1def: $(DEF_DEPS) 73facf4a8dSllai1 74facf4a8dSllai1all: $(ALL_DEPS) 75facf4a8dSllai1 76facf4a8dSllai1clean: $(CLEAN_DEPS) 77facf4a8dSllai1 78facf4a8dSllai1clobber: $(CLOBBER_DEPS) 79facf4a8dSllai1 80facf4a8dSllai1lint: $(LINT_DEPS) 81facf4a8dSllai1 82facf4a8dSllai1modlintlib: $(MODLINTLIB_DEPS) 83facf4a8dSllai1 84facf4a8dSllai1clean.lint: $(CLEAN_LINT_DEPS) 85facf4a8dSllai1 86facf4a8dSllai1install: $(INSTALL_DEPS) 87facf4a8dSllai1 88facf4a8dSllai1# 89facf4a8dSllai1# Include common targets. 90facf4a8dSllai1# 91facf4a8dSllai1include $(UTSBASE)/sparc/Makefile.targ 92