1b65731f1Skini# 2b65731f1Skini# CDDL HEADER START 3b65731f1Skini# 4b65731f1Skini# The contents of this file are subject to the terms of the 57aadd8d4Skini# Common Development and Distribution License (the "License"). 67aadd8d4Skini# You may not use this file except in compliance with the License. 7b65731f1Skini# 8b65731f1Skini# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9b65731f1Skini# or http://www.opensolaris.org/os/licensing. 10b65731f1Skini# See the License for the specific language governing permissions 11b65731f1Skini# and limitations under the License. 12b65731f1Skini# 13b65731f1Skini# When distributing Covered Code, include this CDDL HEADER in each 14b65731f1Skini# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15b65731f1Skini# If applicable, add the following below this CDDL HEADER, with the 16b65731f1Skini# fields enclosed by brackets "[]" replaced with your own identifying 17b65731f1Skini# information: Portions Copyright [yyyy] [name of copyright owner] 18b65731f1Skini# 19b65731f1Skini# CDDL HEADER END 20b65731f1Skini# 21b65731f1Skini# 22b65731f1Skini# uts/sparc/fcpci/Makefile 23b65731f1Skini# 24b65731f1Skini# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 25b65731f1Skini# Use is subject to license terms. 2689b43686SBayard Bell# Copyright (c) 2011 Bayard G. Bell. All rights reserved. 27b65731f1Skini# 28b65731f1Skini# This makefile drives the production of the fcpci kernel misc module 29b65731f1Skini# 30b65731f1Skini# sparc implementation architecture dependent 31b65731f1Skini# 32b65731f1Skini# 33b65731f1Skini# Path to the base of the uts directory tree (usually /usr/src/uts). 34b65731f1Skini# 35b65731f1SkiniUTSBASE = ../.. 36b65731f1Skini 37b65731f1Skini# 38b65731f1Skini# Define the module and object file sets. 39b65731f1Skini# 40b65731f1SkiniMODULE = fcpci 41b65731f1SkiniOBJECTS = $(FCPCI_OBJS:%=$(OBJS_DIR)/%) 42b65731f1SkiniLINTS = $(FCPCI_OBJS:%.o=$(LINTS_DIR)/%.ln) 43b65731f1SkiniROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE) 44b65731f1Skini 45b65731f1Skini# 46b65731f1Skini# Include common rules. 47b65731f1Skini# 48b65731f1Skiniinclude $(UTSBASE)/sparc/Makefile.sparc 49b65731f1Skini 50b65731f1Skini# 51b65731f1Skini# Define targets 52b65731f1Skini# 53b65731f1SkiniALL_TARGET = $(BINARY) 54b65731f1SkiniLINT_TARGET = $(MODULE).lint 55b65731f1SkiniINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 56b65731f1Skini 57b65731f1Skini# 58b65731f1Skini# Include sun4 specific headers files 59b65731f1Skini# 60b65731f1SkiniINC_PATH += -I$(UTSBASE)/sun4 61b65731f1Skini 62b65731f1Skini# Turn this on once compiler understands v9 in it's backend 63b65731f1Skini#INLINES += $(UTSBASE)/sun4/io/fcode.il 64b65731f1Skini 65b65731f1Skini# 66b65731f1Skini# lint pass one enforcement 67b65731f1Skini# 68b65731f1SkiniCFLAGS += $(CCVERBOSE) 69b65731f1Skini 70b65731f1Skini# 71b65731f1Skini# Turn on doubleword alignment for 64 bit registers 72b65731f1Skini# 73b65731f1SkiniCFLAGS += -dalign 74b65731f1Skini 75b65731f1Skini# 7689b43686SBayard Bell# Define dependency on fcodem and busra 7789b43686SBayard Bell# 7889b43686SBayard BellLDFLAGS += -dy -N misc/fcodem -N misc/busra 7989b43686SBayard Bell 8089b43686SBayard Bell# 81bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor 82bb25c06cSjg# to investigate and remove these for maximum lint coverage. 83bb25c06cSjg# Please do not carry these forward to new Makefiles. 84bb25c06cSjg# 85bb25c06cSjgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 86bb25c06cSjgLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 87bb25c06cSjgLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON 88bb25c06cSjg 89*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 90*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 91*7014882cSRichard Lowe 92bb25c06cSjg# 93b65731f1Skini# Default build targets. 94b65731f1Skini# 95b65731f1Skini.KEEP_STATE: 96b65731f1Skini 97b65731f1Skinidef: $(DEF_DEPS) 98b65731f1Skini 99b65731f1Skiniall: $(ALL_DEPS) 100b65731f1Skini 101b65731f1Skiniclean: $(CLEAN_DEPS) 102b65731f1Skini 103b65731f1Skiniclobber: $(CLOBBER_DEPS) 104b65731f1Skini 105b65731f1Skinilint: $(LINT_DEPS) 106b65731f1Skini 107b65731f1Skinimodlintlib: $(MODLINTLIB_DEPS) 108b65731f1Skini 109b65731f1Skiniclean.lint: $(CLEAN_LINT_DEPS) 110b65731f1Skini 111b65731f1Skiniinstall: $(INSTALL_DEPS) 112b65731f1Skini 113b65731f1Skini# 114b65731f1Skini# Include common targets. 115b65731f1Skini# 116b65731f1Skiniinclude $(UTSBASE)/sparc/Makefile.targ 117