Makefile revision 3066:2a2af34f0642
10Sduke# 213744Sdarcy# CDDL HEADER START 30Sduke# 40Sduke# The contents of this file are subject to the terms of the 50Sduke# Common Development and Distribution License (the "License"). 60Sduke# You may not use this file except in compliance with the License. 70Sduke# 80Sduke# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sduke# or http://www.opensolaris.org/os/licensing. 100Sduke# See the License for the specific language governing permissions 110Sduke# and limitations under the License. 120Sduke# 130Sduke# When distributing Covered Code, include this CDDL HEADER in each 140Sduke# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sduke# If applicable, add the following below this CDDL HEADER, with the 160Sduke# fields enclosed by brackets "[]" replaced with your own identifying 170Sduke# information: Portions Copyright [yyyy] [name of copyright owner] 180Sduke# 192362Sohair# CDDL HEADER END 202362Sohair# 212362Sohair# 220Sduke# uts/intel/hid/Makefile 230Sduke# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 240Sduke# Use is subject to license terms. 250Sduke# 260Sduke#ident "%Z%%M% %I% %E% SMI" 270Sduke# 280Sduke# This makefile drives the production of the hid driver kernel module. 290Sduke# 300Sduke 310Sduke# 320Sduke# Path to the base of the uts directory tree (usually /usr/src/uts). 330Sduke# 340SdukeUTSBASE = ../.. 350Sduke 360Sduke# 370Sduke# Define the module and object file sets. 380Sduke# 390SdukeMODULE = hid 400SdukeOBJECTS = $(HID_OBJS:%=$(OBJS_DIR)/%) 410SdukeLINTS = $(HID_OBJS:%.o=$(LINTS_DIR)/%.ln) 420SdukeROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 430Sduke 440Sduke# 450Sduke# Include common rules. 460Sduke# 470Sdukeinclude $(UTSBASE)/intel/Makefile.intel 480Sduke 490Sduke# 500Sduke# Define targets 5110979Sredestad# 5210979SredestadALL_TARGET = $(BINARY) 5310979SredestadLINT_TARGET = $(MODULE).lint 5410979SredestadINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 550Sduke 560Sduke# 570Sduke# Override defaults to build a unique, local modstubs.o. 580Sduke# 590SdukeMODSTUBS_DIR = $(OBJS_DIR) 600SdukeCLEANFILES += $(MODSTUBS_O) 610Sduke 6210979Sredestad# 6310979Sredestad# depends on misc/usba 6410979Sredestad# 6510979SredestadLDFLAGS += -dy -Nmisc/usba -Nmisc/hidparser -Ndacf/consconfig_dacf 660Sduke 670Sduke# 680Sduke# For now, disable these lint checks; maintainers should endeavor 690Sduke# to investigate and remove these for maximum lint coverage. 700Sduke# Please do not carry these forward to new Makefiles. 710Sduke# 720SdukeLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED 730SdukeLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 740SdukeLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 750Sduke 760Sduke# 770Sduke# Default build targets. 780Sduke# 790Sduke.KEEP_STATE: 800Sduke 810Sdukedef: $(DEF_DEPS) 820Sduke 830Sdukeall: $(ALL_DEPS) 840Sduke 850Sdukeclean: $(CLEAN_DEPS) 860Sduke 870Sdukeclobber: $(CLOBBER_DEPS) 880Sduke 890Sdukelint: $(LINT_DEPS) 900Sduke 910Sdukemodlintlib: $(MODLINTLIB_DEPS) 920Sduke 930Sdukeclean.lint: $(CLEAN_LINT_DEPS) 940Sduke 950Sdukeinstall: $(INSTALL_DEPS) 960Sduke 970Sduke# 980Sduke# Include common targets. 990Sduke# 1000Sdukeinclude $(UTSBASE)/intel/Makefile.targ 1010Sduke 1020Sduke