Makefile revision 3066:2a2af34f0642
1169691Skan# 2169691Skan# CDDL HEADER START 3169691Skan# 4169691Skan# The contents of this file are subject to the terms of the 5169691Skan# Common Development and Distribution License (the "License"). 6169691Skan# You may not use this file except in compliance with the License. 7169691Skan# 8169691Skan# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9169691Skan# or http://www.opensolaris.org/os/licensing. 10169691Skan# See the License for the specific language governing permissions 11169691Skan# and limitations under the License. 12169691Skan# 13169691Skan# When distributing Covered Code, include this CDDL HEADER in each 14169691Skan# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15169691Skan# If applicable, add the following below this CDDL HEADER, with the 16169691Skan# fields enclosed by brackets "[]" replaced with your own identifying 17169691Skan# information: Portions Copyright [yyyy] [name of copyright owner] 18169691Skan# 19169691Skan# CDDL HEADER END 20169691Skan# 21169691Skan# 22169691Skan# uts/intel/usbskel/Makefile 23169691Skan# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24169691Skan# Use is subject to license terms. 25169691Skan# 26169691Skan#ident "%Z%%M% %I% %E% SMI" 27169691Skan# 28169691Skan# This makefile drives the production of the usbskel driver kernel module. 29169691Skan# 30169691Skan 31169691Skan# 32169691Skan# Path to the base of the uts directory tree (usually /usr/src/uts). 33169691Skan# 34169691SkanUTSBASE = ../.. 35169691Skan 36169691Skan# 37169691Skan# Define the module and object file sets. 38169691Skan# 39169691SkanMODULE = usbskel 40169691SkanOBJECTS = $(USBSKEL_OBJS:%=$(OBJS_DIR)/%) 41169691SkanLINTS = $(USBSKEL_OBJS:%.o=$(LINTS_DIR)/%.ln) 42169691SkanROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 43169691SkanCONF_SRCDIR = $(UTSBASE)/common/io/usb/clients/usbskel 44169691Skan 45169691Skan# 46169691Skan# Include common rules. 47169691Skan# 48169691Skaninclude $(UTSBASE)/intel/Makefile.intel 49169691Skan 50169691Skan# 51169691Skan# Define targets 52169691Skan# 53169691SkanALL_TARGET = $(BINARY) $(SRC_CONFFILE) 54169691SkanLINT_TARGET = $(MODULE).lint 55169691SkanINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 56169691Skan 57169691Skan# 58169691Skan# Override defaults to build a unique, local modstubs.o. 59169691Skan# 60169691SkanMODSTUBS_DIR = $(OBJS_DIR) 61169691SkanCLEANFILES += $(MODSTUBS_O) 62169691Skan 63169691Skan# 64169691Skan# depends on misc/usba 65169691Skan# 66169691SkanLDFLAGS += -dy -Nmisc/usba 67169691Skan 68169691Skan# 69169691Skan# For now, disable these lint checks; maintainers should endeavor 70169691Skan# to investigate and remove these for maximum lint coverage. 71169691Skan# Please do not carry these forward to new Makefiles. 72169691Skan# 73169691SkanLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 74169691Skan 75169691Skan# 76169691Skan# Default build targets. 77169691Skan# 78169691Skan.KEEP_STATE: 79169691Skan 80169691Skandef: $(DEF_DEPS) 81169691Skan 82169691Skanall: $(ALL_DEPS) 83169691Skan 84169691Skanclean: $(CLEAN_DEPS) 85169691Skan 86169691Skanclobber: $(CLOBBER_DEPS) 87169691Skan 88169691Skanlint: $(LINT_DEPS) 89169691Skan 90169691Skanmodlintlib: $(MODLINTLIB_DEPS) 91169691Skan 92169691Skanclean.lint: $(CLEAN_LINT_DEPS) 93169691Skan 94169691Skaninstall: $(INSTALL_DEPS) 95169691Skan 96169691Skan# 97169691Skan# Include common targets. 98169691Skan# 99169691Skaninclude $(UTSBASE)/intel/Makefile.targ 100169691Skan