129949e86Sstevel# 229949e86Sstevel# CDDL HEADER START 329949e86Sstevel# 429949e86Sstevel# The contents of this file are subject to the terms of the 529949e86Sstevel# Common Development and Distribution License (the "License"). 629949e86Sstevel# You may not use this file except in compliance with the License. 729949e86Sstevel# 829949e86Sstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 929949e86Sstevel# or http://www.opensolaris.org/os/licensing. 1029949e86Sstevel# See the License for the specific language governing permissions 1129949e86Sstevel# and limitations under the License. 1229949e86Sstevel# 1329949e86Sstevel# When distributing Covered Code, include this CDDL HEADER in each 1429949e86Sstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1529949e86Sstevel# If applicable, add the following below this CDDL HEADER, with the 1629949e86Sstevel# fields enclosed by brackets "[]" replaced with your own identifying 1729949e86Sstevel# information: Portions Copyright [yyyy] [name of copyright owner] 1829949e86Sstevel# 1929949e86Sstevel# CDDL HEADER END 2029949e86Sstevel# 2129949e86Sstevel 2229949e86Sstevel# 2329949e86Sstevel# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2429949e86Sstevel# Use is subject to license terms. 2589b43686SBayard Bell# Copyright (c) 2011 Bayard G. Bell. All rights reserved. 2629949e86Sstevel# 2729949e86Sstevel# This makefile drives the production of the sysctrl driver 2829949e86Sstevel# kernel module. 2929949e86Sstevel# 3029949e86Sstevel# sun4u implementation architecture dependent 3129949e86Sstevel# 3229949e86Sstevel 3329949e86Sstevel# 3429949e86Sstevel# Path to the base of the uts directory tree (usually /usr/src/uts). 3529949e86Sstevel# 3629949e86SstevelUTSBASE = ../../.. 3729949e86Sstevel 3829949e86Sstevel# 3929949e86Sstevel# Define the module and object file sets. 4029949e86Sstevel# 4129949e86SstevelMODULE = sysctrl 4229949e86SstevelOBJECTS = $(SYSCTRL_OBJS:%=$(OBJS_DIR)/%) 4329949e86SstevelLINTS = $(SYSCTRL_OBJS:%.o=$(LINTS_DIR)/%.ln) 4429949e86SstevelROOTMODULE = $(ROOT_SUNFIRE_DRV_DIR)/$(MODULE) 4529949e86Sstevel 4629949e86Sstevel# 4729949e86Sstevel# Include common rules. 4829949e86Sstevel# 4929949e86Sstevelinclude $(UTSBASE)/sun4u/sunfire/Makefile.sunfire 5029949e86Sstevel 5129949e86Sstevel# 5229949e86Sstevel# Define targets 5329949e86Sstevel# 5429949e86SstevelALL_TARGET = $(BINARY) 5529949e86SstevelLINT_TARGET = $(MODULE).lint 5629949e86SstevelINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 5729949e86Sstevel 5829949e86Sstevel# 5929949e86Sstevel# lint pass one enforcement 6029949e86Sstevel# 6129949e86SstevelCFLAGS += $(CCVERBOSE) 62*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 63*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 6429949e86Sstevel 6529949e86Sstevel# 6629949e86Sstevel# Turn on doubleword alignment for 64 bit registers 6729949e86Sstevel# 6829949e86SstevelCFLAGS += -dalign 6929949e86Sstevel 7029949e86Sstevel# 7189b43686SBayard Bell# Define dependency on fhc 7289b43686SBayard Bell# 7389b43686SBayard BellLDFLAGS += -dy -N drv/fhc 7489b43686SBayard Bell 7589b43686SBayard Bell# 7629949e86Sstevel# Default build targets. 7729949e86Sstevel# 7829949e86Sstevel.KEEP_STATE: 7929949e86Sstevel 8029949e86Ssteveldef: $(DEF_DEPS) 8129949e86Sstevel 8229949e86Sstevelall: $(ALL_DEPS) 8329949e86Sstevel 8429949e86Sstevelclean: $(CLEAN_DEPS) 8529949e86Sstevel 8629949e86Sstevelclobber: $(CLOBBER_DEPS) 8729949e86Sstevel 8829949e86Sstevellint: $(LINT_DEPS) 8929949e86Sstevel 9029949e86Sstevelmodlintlib: $(MODLINTLIB_DEPS) 9129949e86Sstevel 9229949e86Sstevelclean.lint: $(CLEAN_LINT_DEPS) 9329949e86Sstevel 9429949e86Sstevelinstall: $(INSTALL_DEPS) 9529949e86Sstevel 9629949e86Sstevel# 9729949e86Sstevel# Include common targets. 9829949e86Sstevel# 9929949e86Sstevelinclude $(UTSBASE)/sun4u/sunfire/Makefile.targ 100