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