1*1341Sstevel# 2*1341Sstevel# CDDL HEADER START 3*1341Sstevel# 4*1341Sstevel# The contents of this file are subject to the terms of the 5*1341Sstevel# Common Development and Distribution License (the "License"). 6*1341Sstevel# You may not use this file except in compliance with the License. 7*1341Sstevel# 8*1341Sstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*1341Sstevel# or http://www.opensolaris.org/os/licensing. 10*1341Sstevel# See the License for the specific language governing permissions 11*1341Sstevel# and limitations under the License. 12*1341Sstevel# 13*1341Sstevel# When distributing Covered Code, include this CDDL HEADER in each 14*1341Sstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*1341Sstevel# If applicable, add the following below this CDDL HEADER, with the 16*1341Sstevel# fields enclosed by brackets "[]" replaced with your own identifying 17*1341Sstevel# information: Portions Copyright [yyyy] [name of copyright owner] 18*1341Sstevel# 19*1341Sstevel# CDDL HEADER END 20*1341Sstevel# 21*1341Sstevel 22*1341Sstevel# 23*1341Sstevel# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24*1341Sstevel# Use is subject to license terms. 25*1341Sstevel# 26*1341Sstevel#ident "%Z%%M% %I% %E% SMI" 27*1341Sstevel# 28*1341Sstevel# This makefile drives the production of the sysctrl driver 29*1341Sstevel# kernel module. 30*1341Sstevel# 31*1341Sstevel# sun4u implementation architecture dependent 32*1341Sstevel# 33*1341Sstevel 34*1341Sstevel# 35*1341Sstevel# Path to the base of the uts directory tree (usually /usr/src/uts). 36*1341Sstevel# 37*1341SstevelUTSBASE = ../../.. 38*1341Sstevel 39*1341Sstevel# 40*1341Sstevel# Define the module and object file sets. 41*1341Sstevel# 42*1341SstevelMODULE = sysctrl 43*1341SstevelOBJECTS = $(SYSCTRL_OBJS:%=$(OBJS_DIR)/%) 44*1341SstevelLINTS = $(SYSCTRL_OBJS:%.o=$(LINTS_DIR)/%.ln) 45*1341SstevelROOTMODULE = $(ROOT_SUNFIRE_DRV_DIR)/$(MODULE) 46*1341Sstevel 47*1341Sstevel# 48*1341Sstevel# Include common rules. 49*1341Sstevel# 50*1341Sstevelinclude $(UTSBASE)/sun4u/sunfire/Makefile.sunfire 51*1341Sstevel 52*1341Sstevel# 53*1341Sstevel# Define targets 54*1341Sstevel# 55*1341SstevelALL_TARGET = $(BINARY) 56*1341SstevelLINT_TARGET = $(MODULE).lint 57*1341SstevelINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 58*1341Sstevel 59*1341Sstevel# 60*1341Sstevel# lint pass one enforcement 61*1341Sstevel# 62*1341SstevelCFLAGS += $(CCVERBOSE) 63*1341Sstevel 64*1341Sstevel# 65*1341Sstevel# Turn on doubleword alignment for 64 bit registers 66*1341Sstevel# 67*1341SstevelCFLAGS += -dalign 68*1341Sstevel 69*1341Sstevel# 70*1341Sstevel# Default build targets. 71*1341Sstevel# 72*1341Sstevel.KEEP_STATE: 73*1341Sstevel 74*1341Ssteveldef: $(DEF_DEPS) 75*1341Sstevel 76*1341Sstevelall: $(ALL_DEPS) 77*1341Sstevel 78*1341Sstevelclean: $(CLEAN_DEPS) 79*1341Sstevel 80*1341Sstevelclobber: $(CLOBBER_DEPS) 81*1341Sstevel 82*1341Sstevellint: $(LINT_DEPS) 83*1341Sstevel 84*1341Sstevelmodlintlib: $(MODLINTLIB_DEPS) 85*1341Sstevel 86*1341Sstevelclean.lint: $(CLEAN_LINT_DEPS) 87*1341Sstevel 88*1341Sstevelinstall: $(INSTALL_DEPS) 89*1341Sstevel 90*1341Sstevel# 91*1341Sstevel# Include common targets. 92*1341Sstevel# 93*1341Sstevelinclude $(UTSBASE)/sun4u/sunfire/Makefile.targ 94