1eca2601cSRandy Fishel# 2eca2601cSRandy Fishel# CDDL HEADER START 3eca2601cSRandy Fishel# 4eca2601cSRandy Fishel# The contents of this file are subject to the terms of the 5eca2601cSRandy Fishel# Common Development and Distribution License (the "License"). 6eca2601cSRandy Fishel# You may not use this file except in compliance with the License. 7eca2601cSRandy Fishel# 8eca2601cSRandy Fishel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9eca2601cSRandy Fishel# or http://www.opensolaris.org/os/licensing. 10eca2601cSRandy Fishel# See the License for the specific language governing permissions 11eca2601cSRandy Fishel# and limitations under the License. 12eca2601cSRandy Fishel# 13eca2601cSRandy Fishel# When distributing Covered Code, include this CDDL HEADER in each 14eca2601cSRandy Fishel# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15eca2601cSRandy Fishel# If applicable, add the following below this CDDL HEADER, with the 16eca2601cSRandy Fishel# fields enclosed by brackets "[]" replaced with your own identifying 17eca2601cSRandy Fishel# information: Portions Copyright [yyyy] [name of copyright owner] 18eca2601cSRandy Fishel# 19eca2601cSRandy Fishel# CDDL HEADER END 20eca2601cSRandy Fishel# 21eca2601cSRandy Fishel# 22eca2601cSRandy Fishel# Copyright (c) 2009, Intel Corporation. 23eca2601cSRandy Fishel# All rights reserved. 24eca2601cSRandy Fishel# 25eca2601cSRandy Fishel 26eca2601cSRandy Fishel# This makefile drives the production of the fipe 27eca2601cSRandy Fishel# driver kernel module. 28eca2601cSRandy Fishel# 29eca2601cSRandy Fishel# i86pc architecture dependent 30eca2601cSRandy Fishel# 31eca2601cSRandy Fishel 32eca2601cSRandy Fishel# 33eca2601cSRandy Fishel# Path to the base of the uts directory tree (usually /usr/src/uts). 34eca2601cSRandy Fishel# 35eca2601cSRandy FishelUTSBASE = ../.. 36eca2601cSRandy Fishel 37eca2601cSRandy Fishel# 38eca2601cSRandy Fishel# Define the module and object file sets. 39eca2601cSRandy Fishel# 40eca2601cSRandy FishelMODULE = fipe 41eca2601cSRandy FishelOBJECTS = $(FIPE_OBJS:%=$(OBJS_DIR)/%) 42eca2601cSRandy FishelLINTS = $(FIPE_OBJS:%.o=$(LINTS_DIR)/%.ln) 43eca2601cSRandy FishelROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) 44eca2601cSRandy FishelCONF_SRCDIR = $(UTSBASE)/i86pc/io/fipe 45eca2601cSRandy Fishel 46eca2601cSRandy Fishel# 47eca2601cSRandy Fishel# Include common rules. 48eca2601cSRandy Fishel# 49eca2601cSRandy Fishelinclude $(UTSBASE)/i86pc/Makefile.i86pc 50eca2601cSRandy Fishel 51eca2601cSRandy Fishel# 52eca2601cSRandy Fishel# Define targets 53eca2601cSRandy Fishel# 54eca2601cSRandy FishelALL_TARGET = $(BINARY) $(SRC_CONFFILE) 55eca2601cSRandy FishelLINT_TARGET = $(MODULE).lint 56eca2601cSRandy FishelINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 57eca2601cSRandy Fishel 58eca2601cSRandy Fishel# 59eca2601cSRandy Fishel# For now, disable these lint checks; maintainers should endeavor 60eca2601cSRandy Fishel# to investigate and remove these for maximum lint coverage. 61eca2601cSRandy Fishel# Please do not carry these forward to new Makefiles. 62eca2601cSRandy Fishel# 63eca2601cSRandy FishelLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 64eca2601cSRandy Fishel 65*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-type-limits 66*7014882cSRichard Lowe 67eca2601cSRandy Fishel# 68eca2601cSRandy Fishel# Dependency 69eca2601cSRandy Fishel# 70eca2601cSRandy FishelLDFLAGS += -dy -Nmisc/dcopy 71eca2601cSRandy Fishel 72eca2601cSRandy Fishel# 73eca2601cSRandy Fishel# Default build targets. 74eca2601cSRandy Fishel# 75eca2601cSRandy Fishel.KEEP_STATE: 76eca2601cSRandy Fishel 77eca2601cSRandy Fisheldef: $(DEF_DEPS) 78eca2601cSRandy Fishel 79eca2601cSRandy Fishelall: $(ALL_DEPS) 80eca2601cSRandy Fishel 81eca2601cSRandy Fishelclean: $(CLEAN_DEPS) 82eca2601cSRandy Fishel 83eca2601cSRandy Fishelclobber: $(CLOBBER_DEPS) 84eca2601cSRandy Fishel 85eca2601cSRandy Fishellint: $(LINT_DEPS) 86eca2601cSRandy Fishel 87eca2601cSRandy Fishelmodlintlib: $(MODLINTLIB_DEPS) 88eca2601cSRandy Fishel 89eca2601cSRandy Fishelclean.lint: $(CLEAN_LINT_DEPS) 90eca2601cSRandy Fishel 91eca2601cSRandy Fishelinstall: $(INSTALL_DEPS) 92eca2601cSRandy Fishel 93eca2601cSRandy Fishel# 94eca2601cSRandy Fishel# Include common targets. 95eca2601cSRandy Fishel# 96eca2601cSRandy Fishelinclude $(UTSBASE)/i86pc/Makefile.targ 97